Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/zai-org/CodeGeeX
/ chunks
Function
chunks
codegeex/mindspore/src/preprocess.py:32–35 ·
view source on GitHub ↗
yield n sized chunks from list
(lst, n)
Source
from the content-addressed store, hash-verified
30
31
32
def
chunks(lst, n):
33
""
"yield n sized chunks from list"
""
34
for
i in range(0, len(lst), n):
35
yield
lst[i: i + n]
36
37
38
def
package_file(it, n):
Callers
3
tokenize_openwebtext
Function · 0.85
tokenize_wiki
Function · 0.85
tokenize_lambada
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected