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

All Samples(68)  |  Call(33)  |  Derive(0)  |  Import(35)

src/p/r/Products.ZCTextIndex-2.13.5/src/Products/ZCTextIndex/BaseIndex.py   Products.ZCTextIndex(Download)
 
from BTrees.IOBTree import IOBTree
from BTrees.IIBTree import IIBTree
from BTrees.IIBTree import IITreeSet
from BTrees.IIBTree import difference
        # expect each indexer to use ._docweight to map docids to its
        # notion of what a doc weight is.
        self._docweight = IIBTree()
 
        # docid -> WidCode'd list of wids
        if len(wids) != len(cleaned_wids):
            # At least one wid was OOV:  can't possibly find it.
            return IIBTree()
        scores = self._search_wids(wids)
        hits = mass_weightedIntersection(scores)
        if not hits:
            return hits
        code = WidCode.encode(wids)
        result = IIBTree()
            if (isinstance(doc2score, type({})) and
                len(doc2score) == self.DICT_CUTOFF):
                doc2score = IIBTree(doc2score)
        doc2score[docid] = f
        self._wordinfo[wid] = doc2score # not redundant:  Persistency!

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.ZCatalog-3.0.2/src/Products/PluginIndexes/BooleanIndex/BooleanIndex.py   Products.ZCatalog(Download)
 
from App.special_dtml import DTMLFile
from BTrees.IIBTree import IIBTree, IITreeSet, IISet
from BTrees.IIBTree import union, intersection, difference
import BTrees.Length
    def clear(self):
        self._index = IITreeSet()
        self._index_length = BTrees.Length.Length()
        self._index_value = 1
        self._unindex = IIBTree()

src/p/r/Products.ZCatalog-3.0.2/src/Products/PluginIndexes/DateIndex/DateIndex.py   Products.ZCatalog(Download)
 
from App.special_dtml import DTMLFile
from BTrees.IIBTree import IIBTree
from BTrees.IIBTree import IISet
from BTrees.IIBTree import union
    def clear(self):
        """ Complete reset """
        self._index = IOBTree()
        self._unindex = IIBTree()
        self._length = Length()

src/p/r/Products.BooleanIndex-1.0.2/Products/BooleanIndex/BooleanIndex.py   Products.BooleanIndex(Download)
    VALUETYPES = []
 
from BTrees.IIBTree import IIBTree, IITreeSet, IISet
from BTrees.IIBTree import union, intersection, difference
import BTrees.Length
    def clear(self):
        self._length = BTrees.Length.Length()
        self._index = IITreeSet()
        self._unindex = IIBTree()
 

src/z/o/zopyx.txng3.core-3.6.1.1/zopyx/txng3/core/storage.py   zopyx.txng3.core(Download)
from compatible import Persistent
from BTrees.IOBTree import IOBTree
from BTrees.IIBTree import IITreeSet, IIBTree, union, IISet, difference
import BTrees.Length 
 
    def clear(self):
        self._doc2wid = IOBTree()   # docid -> [wordids]
        self._wid2doc = IOBTree()   # wordid -> [docids]
        self._docweight = IIBTree() # docid -> (# terms in document)
        self._length = BTrees.Length.Length()
                occurences[wid] += 1
 
        self._frequencies[docid] = IIBTree()
        tree = self._frequencies[docid]
        for wid,num in occurences.items():

src/d/e/dewey-0.3.0/src/dewey/indices.py   dewey(Download)
 
import persistent
from BTrees.IIBTree import IIBTree, IISet, IITreeSet
from BTrees.IIBTree import difference, intersection, multiunion
from BTrees.IOBTree import IOBTree

src/z/e/zettwerk.clickmap-1.0/zettwerk/clickmap/ClickmapTool.py   zettwerk.clickmap(Download)
from BTrees.IOBTree import IOBTree
from BTrees.OOBTree import OOBTree
from BTrees.IIBTree import IIBTree
 
from time import time
            x += (self.output_width - w)
 
        log_data = IIBTree([(0, x),
                            (1, y)])
        self._store_request(uid,

src/u/n/unimr.compositeindex-0.1rc1-r84937/unimr/compositeindex/CompositeIndex.py   unimr.compositeindex(Download)
from time import time
 
from BTrees.IIBTree import IIBTree, IITreeSet, IISet, union, intersection, difference
from BTrees.OOBTree import OOBTree
from BTrees.IOBTree import IOBTree

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

  1 | 2 | 3  Next