Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenBitSys/BitDistiller
/ count_bytes
Method
count_bytes
test/general/lm_eval/base.py:852–853 ·
view source on GitHub ↗
(cls, doc)
Source
from the content-addressed store, hash-verified
850
851
@classmethod
852
def
count_bytes(cls, doc):
853
return
len(doc.encode(
"utf-8"
))
854
855
@classmethod
856
def
count_words(cls, doc):
Callers
1
process_results
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected