def api_vendor_xmpp_receive(request):
  if not settings.IM_ENABLED:
    raise http.Http404()
  xmpp_message = xmpp.XmppMessage.from_request(request)
  if (settings.IM_TEST_ONLY and 
      xmpp_message.sender.base() not in settings.IM_TEST_JIDS):

    raise http.Http404()

  im_service = im.ImService(xmpp.XmppConnection())
  im_service.init_handlers()
  rv = im_service.handle_message(xmpp_message.sender,
                                 xmpp_message.target,
                                 xmpp_message.message)
  return http.HttpResponse(rv)
Compute a sparse distance matrix
dataset/ETHPy150Open CollabQ/CollabQ/api/views.py/api_vendor_xmpp_receive--crossover with--dataset/ETHPy150Open scipy/scipy/scipy/spatial/kdtree.py/KDTree.sparse_distance_matrix