def _ProcessNumberFacet(self, facet):
    facet_value = float(facet.value().string_value())

    if facet.name() in self._manual_facet_map:
      manual_facet_req = self._manual_facet_map[facet.name()]
      facet_obj = self._manual_facets[facet.name()]
      if manual_facet_req.range_list():
        for range_request in manual_facet_req.range_list():
          range_pair = (
              float(range_request.start())
              if range_request.has_start() else None,
              float(range_request.end())
              if range_request.has_end() else None)
          if ((range_pair[0] is None or facet_value >= range_pair[0]) and
              (range_pair[1] is None or facet_value < range_pair[1])):
            facet_obj.AddValue(self._GetFacetLabel(range_request),
                               refinement=range_pair)
      elif manual_facet_req.value_constraint_list():
        for constraint in manual_facet_req.value_constraint_list():
          if facet_value == float(constraint):
            facet_obj.AddValue(constraint)
      else:
        facet_obj.AddNumericValue(facet_value)
    elif self._params.auto_discover_facet_count():
      if facet.name() in self._discovered_facets:
        facet_obj = self._discovered_facets[facet.name()]
      else:
        facet_obj = self._discovered_facets[facet.name()] = _Facet(
            facet.name(),
            self._params.facet_auto_detect_param().value_limit())
      facet_obj.AddNumericValue(facet_value)
Return C{True} if the connection currently has an active
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/search/stub/simple_facet.py/SimpleFacet._ProcessNumberFacet--crossover with--dataset/ETHPy150Open sassoftware/conary/conary/dbstore/base_drv.py/BaseDatabase.inTransaction