MCPcopy Create free account
hub / github.com/ActiveState/code / split

Method split

recipes/Python/578879_Highly_branched_Trees/recipe-578879.py:39–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 self.key = childs[0].key
38
39 def split(self):
40 l = self.data
41 if len(l)<nmax:
42 return (self,)
43 n = nmax/2
44 r = []
45 while l:
46 r.append(Node(l[:n]))
47 l = l[n:]
48 return tuple(r)
49
50 def insert(self, key, value):
51 last = None

Callers 15

recipe-578851.pyFile · 0.45
cheap_dateFunction · 0.45
cheaper_dateFunction · 0.45
find_replaceFunction · 0.45
str_to_keyFunction · 0.45
get_mimetypeFunction · 0.45
reevaluateMethod · 0.45
recipe-578062.pyFile · 0.45
coordinateFunction · 0.45
recipe-578465.pyFile · 0.45
SqlExecuteFunction · 0.45
testFunction · 0.45

Calls 2

NodeClass · 0.70
appendMethod · 0.45

Tested by 1

test_psomeFunction · 0.36