Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/debjitpaul/refiner
/ write_json
Function
write_json
data_preprocessing/utils.py:53–55 ·
view source on GitHub ↗
(obj, filepath, indent=2)
Source
from the content-addressed store, hash-verified
51
return
json.load(f)
52
53
def
write_json(obj, filepath, indent=2):
54
with
open(filepath,
"w"
)
as
f:
55
json.dump(obj, f, indent=indent)
56
57
def
read_jsonl(filepath):
58
data = []
Callers
3
main
Function · 0.90
main
Function · 0.90
main
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected