Samip Dahal
commited on
Commit
·
e4b5e70
1
Parent(s):
1048ab3
changes
Browse files
func.py
CHANGED
@@ -69,7 +69,7 @@ class FundDefDataset(datasets.GeneratorBasedBuilder):
|
|
69 |
"function_path": datasets.Value("string"),
|
70 |
"function_identifier": datasets.Value("string"),
|
71 |
"language": datasets.Value("string"),
|
72 |
-
"function": datasets.
|
73 |
"docstring": datasets.Value("string"),
|
74 |
"function_url": datasets.Value("string"),
|
75 |
"license":datasets.Value("string"),
|
@@ -129,13 +129,13 @@ class FundDefDataset(datasets.GeneratorBasedBuilder):
|
|
129 |
for j, func in enumerate(loaded_f):
|
130 |
count+=1
|
131 |
yield count,{
|
132 |
-
"repository_name": func['nwo'],
|
133 |
-
"function_path":func['path'],
|
134 |
-
"function_identifier": func['identifier'],
|
135 |
-
"language": func['language'],
|
136 |
-
"function": func['function'],
|
137 |
-
"docstring": func['docstring'],
|
138 |
-
"function_url": func['url'],
|
139 |
-
"license":func['license'],
|
140 |
}
|
141 |
|
|
|
69 |
"function_path": datasets.Value("string"),
|
70 |
"function_identifier": datasets.Value("string"),
|
71 |
"language": datasets.Value("string"),
|
72 |
+
"function": datasets.Value("string"),
|
73 |
"docstring": datasets.Value("string"),
|
74 |
"function_url": datasets.Value("string"),
|
75 |
"license":datasets.Value("string"),
|
|
|
129 |
for j, func in enumerate(loaded_f):
|
130 |
count+=1
|
131 |
yield count,{
|
132 |
+
"repository_name": str(func['nwo']),
|
133 |
+
"function_path":str(func['path']),
|
134 |
+
"function_identifier": str(func['identifier']),
|
135 |
+
"language": str(func['language']),
|
136 |
+
"function": str(func['function']),
|
137 |
+
"docstring": str(func['docstring']),
|
138 |
+
"function_url": str(func['url']),
|
139 |
+
"license":str(func['license']),
|
140 |
}
|
141 |
|