Datasets:

Languages:
code
ArXiv:
License:
Muennighoff commited on
Commit
b345642
1 Parent(s): 49bece4

Update commitpack.py

Browse files
Files changed (1) hide show
  1. commitpack.py +14 -3
commitpack.py CHANGED
@@ -58,8 +58,8 @@ class CommitPack(datasets.GeneratorBasedBuilder):
58
  "lang": datasets.Value("string"),
59
  "license": datasets.Value("string"),
60
  "repos": datasets.Value("string"),
61
- "returncode": datasets.Value("int64"),
62
- "stderr": datasets.Value("string"),
63
  }
64
  ),
65
  supervised_keys=None,
@@ -89,5 +89,16 @@ class CommitPack(datasets.GeneratorBasedBuilder):
89
  with open(p, "r") as f:
90
  for row in f:
91
  data = json.loads(row)
92
- yield id_, data
 
 
 
 
 
 
 
 
 
 
 
93
  id_ += 1
 
58
  "lang": datasets.Value("string"),
59
  "license": datasets.Value("string"),
60
  "repos": datasets.Value("string"),
61
+ # "returncode": datasets.Value("int64"),
62
+ # "stderr": datasets.Value("string"),
63
  }
64
  ),
65
  supervised_keys=None,
 
89
  with open(p, "r") as f:
90
  for row in f:
91
  data = json.loads(row)
92
+ yield id_, {
93
+ "commit": data["commit"],
94
+ "old_file": data["old_file"],
95
+ "new_file": data["new_file"],
96
+ "old_contents": data["old_contents"],
97
+ "new_contents": data["new_contents"],
98
+ "subject": data["subject"],
99
+ "message": data["message"],
100
+ "lang": data["lang"],
101
+ "license": data["license"],
102
+ "repos": data["repos"],
103
+ }
104
  id_ += 1