Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
4d2e469c
Commit
4d2e469c
authored
May 18, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ba3b3860
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
wcfs/internal/xbtree.py
wcfs/internal/xbtree.py
+4
-6
No files found.
wcfs/internal/xbtree.py
View file @
4d2e469c
...
@@ -498,21 +498,19 @@ def AllStructs(keys, maxdepth, maxsplit, allowEmptyBuckets=False): # -> i[] of T
...
@@ -498,21 +498,19 @@ def AllStructs(keys, maxdepth, maxsplit, allowEmptyBuckets=False): # -> i[] of T
keyv
.
sort
()
keyv
.
sort
()
# initial [lo, hi) covering keys and such that split points will be there withing +-1 of min/max key
# initial [lo, hi) covering keys and such that split points will be there withing +-1 of min/max key
#klo = -inf
#khi = +inf
if
len
(
keyv
)
>
0
:
if
len
(
keyv
)
>
0
:
klo
=
keyv
[
0
]
-
1
-
1
klo
=
keyv
[
0
]
-
1
-
1
khi
=
keyv
[
-
1
]
+
1
+
1
# hi is ")", not "]"
khi
=
keyv
[
-
1
]
+
1
+
1
# hi is ")", not "]"
else
:
else
:
# XXX ok? (should be -inf,+inf)
klo
=
0
khi
=
0
# the only possible case for empty tree is T/B
# the only possible case for empty tree is T/B
if
not
allowEmptyBuckets
:
if
not
allowEmptyBuckets
:
yield
Tree
([],
Bucket
())
yield
Tree
([],
Bucket
())
return
return
# XXX ok? (should be -inf,+inf)
klo
=
0
khi
=
0
for
tree
in
_allStructs
(
klo
,
khi
,
keyv
,
maxdepth
,
maxsplit
,
allowEmptyBuckets
):
for
tree
in
_allStructs
(
klo
,
khi
,
keyv
,
maxdepth
,
maxsplit
,
allowEmptyBuckets
):
yield
tree
yield
tree
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment