Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(47)  |  Call(23)  |  Derive(0)  |  Import(24)

src/p/r/Products.ZCatalog-3.0.2/src/Products/PluginIndexes/common/ResultList.py   Products.ZCatalog(Download)
 
from BTrees.IIBTree import difference
from BTrees.IIBTree import IIBucket
from BTrees.IIBTree import weightedIntersection
from BTrees.IIBTree import weightedUnion
 
        if (type(d) is tuple):
            d = IIBucket((d,))
        elif type(d) is not IIBucket:
            d = IIBucket(d)
    def near(self, x):
        result = IIBucket()
        dict = self._dict
        xdict = x._dict
        xhas = xdict.has_key

src/b/t/BTrees-4.0.8/BTrees/check.py   BTrees(Download)
from BTrees.IFBTree import IFBTree, IFBucket, IFSet, IFTreeSet
from BTrees.IFBTree import IFBTreePy, IFBucketPy, IFSetPy, IFTreeSetPy
from BTrees.IIBTree import IIBTree, IIBucket, IISet, IITreeSet
from BTrees.IIBTree import IIBTreePy, IIBucketPy, IISetPy, IITreeSetPy
from BTrees.IOBTree import IOBTree, IOBucket, IOSet, IOTreeSet

src/p/r/Products.ZCTextIndex-2.13.5/src/Products/ZCTextIndex/CosineIndex.py   Products.ZCTextIndex(Download)
import math
 
from BTrees.IIBTree import IIBucket
from zope.interface import implements
 
            #print "idf = %.3f" % idf
            if isinstance(d2w, DictType):
                d2w = IIBucket(d2w)
            L.append((d2w, scaled_int(idf)))
        return L

src/e/x/experimental.catalogqueryplan-3.2.8/experimental/catalogqueryplan/catalog.py   experimental.catalogqueryplan(Download)
 
from BTrees.IIBTree import intersection, weightedIntersection
from BTrees.IIBTree import IIBucket, IIBTree, IISet
 
from experimental.catalogqueryplan.config import LOG_SLOW_QUERIES

src/p/r/Products.ZCTextIndex-2.13.5/src/Products/ZCTextIndex/SetOps.py   Products.ZCTextIndex(Download)
"""SetOps -- Weighted intersections and unions applied to many inputs."""
 
from BTrees.IIBTree import IIBucket
from BTrees.IIBTree import weightedIntersection
from BTrees.IIBTree import weightedUnion
    assert len(L) <= 1
    if len(L) == 0:
        return IIBucket()
    [(result, weight)] = L
    if weight != 1:
        dummy, result = weightedUnion(IIBucket(), result, 0, weight)

src/z/o/zopyx.txng3.core-3.6.1.1/zopyx/txng3/core/resultset.py   zopyx.txng3.core(Download)
 
from zope.interface import implements
from BTrees.IIBTree import IIBucket, intersection, union, difference
 
from docidlist import DocidList
    def items(self):
        d = IIBucket()
        if self.ranked_results:
            max = self.ranked_results[0][1]
            for k,v in self.ranked_results:

src/d/m/dm.incrementalsearch-2.0/dm/incrementalsearch/__init__.py   dm.incrementalsearch(Download)
from BTrees.IOBTree import IOBTree, IOBucket, IOSet, IOTreeSet
from BTrees.OIBTree import OIBTree, OIBucket, OISet, OITreeSet
from BTrees.IIBTree import IIBTree, IIBucket, IISet, IITreeSet
from BTrees.IFBTree import IFBTree, IFBucket, IFSet, IFTreeSet
from BTrees.LOBTree import LOBTree, LOBucket, LOSet, LOTreeSet
  type(IOBucket()) : (0, 0, INT,),
  type(OIBucket()) : (0, 0, OBJECT,),
  type(IIBucket()) : (0, 0, INT,),
  type(IFBucket()) : (0, 0, INT,),
  type(LOBucket()) : (0, 0, LONG,),

src/a/c/AccessControl-3.0.8/src/AccessControl/SimpleObjectPolicies.py   AccessControl(Download)
from BTrees.OIBTree import OIBTree, OIBucket, OISet
from BTrees.IOBTree import IOBTree, IOBucket, IOSet
from BTrees.IIBTree import IIBTree, IIBucket, IISet
 
for tree_type, has_values in [(OOBTree, 1),

src/e/e/eea.facetednavigation-6.7/eea/facetednavigation/search/catalog.py   eea.facetednavigation(Download)
from zope.interface import implements
from Products.CMFCore.utils import getToolByName
from BTrees.IIBTree import IIBucket
from eea.facetednavigation.search.interfaces import IFacetedCatalog
logger = logging.getLogger('eea.facetednavigation.search.catalog')
        apply_index = getattr(index, '_apply_index', None)
        if not apply_index:
            return IIBucket(), (index_id,)
 
        rset = apply_index({index_id: value})
 
        if not rset:
            return IIBucket(), (index_id,)

src/e/e/eea.facetednavigation-HEAD/eea/facetednavigation/search/catalog.py   eea.facetednavigation(Download)
from zope.interface import implements
from Products.CMFCore.utils import getToolByName
from BTrees.IIBTree import IIBucket
from eea.facetednavigation.search.interfaces import IFacetedCatalog
logger = logging.getLogger('eea.facetednavigation.search.catalog')
        apply_index = getattr(index, '_apply_index', None)
        if not apply_index:
            return IIBucket(), (index_id,)
 
        rset = apply_index({index_id: value})
 
        if not rset:
            return IIBucket(), (index_id,)

  1 | 2  Next