code
stringlengths
1
1.49M
file_id
stringlengths
42
46
node_count
int64
0
7.38k
total_lines
int64
1
20.9k
vector_dim
int64
15
15
vector_labels
stringclasses
1 value
nodes
stringlengths
2
3.75M
connections
stringlengths
2
964k
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_87296
25
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87296:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2826, 0.087, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87296:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87296:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87296:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87296:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_87297
24
67
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87297:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2761, 0.0597, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87297:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87297:Expr_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87297:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87297:Assign_L40_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_87298
21
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87298:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.319, 0.069, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87298:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87298:Expr_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87298:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87298:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_87300
30
80
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87300:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2437, 0.075, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87300:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87300:Expr_L52_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87300:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87300:Assign_L53_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_87301
24
67
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87301:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.291, 0.0896, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87301:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87301:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87301:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87301:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_87303
47
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87303:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1698, 0.0094, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87303:ClassDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87303:Assign_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87303:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87303:FunctionDef_L55_C2"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_87304
16
46
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87304:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.4022, 0.087, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87304:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87304:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87304:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87304:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_87305
20
51
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87305:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.3627, 0.0784, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87305:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87305:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87305:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87305:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_87306
26
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87306:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2681, 0.058, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87306:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87306:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87306:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87306:Assign_L48_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_87307
27
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87307:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2372, 0.0513, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87307:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87307:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87307:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87307:Assign_L48_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_87308
24
64
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87308:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2891, 0.0625, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87308:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87308:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87308:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87308:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_87316
34
81
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87316:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 25], "level": 0, "parent": null, "vector": [8, 0, 0.2593, 0.1111, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87316:ClassDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87316:FunctionDef_L51_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87316:FunctionDef_L51_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_87316:Assign_L52_C4"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with ranked results against the shopping search API""" from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get and prin...
ajibawa-2023/Python-Code-Large/train/row_87325
21
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87325:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1111, 0.0185, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87325:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87325:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87325:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87325:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Full text search query against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """...
ajibawa-2023/Python-Code-Large/train/row_87327
14
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87327:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.15, 0.025, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87327:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87327:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87327:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87327:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Basic query against the public shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get ...
ajibawa-2023/Python-Code-Large/train/row_87328
14
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87328:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1875, 0.0312, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87328:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87328:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87328:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87328:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query that is restricted by a parameter against the public shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfI...
ajibawa-2023/Python-Code-Large/train/row_87329
14
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87329:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1477, 0.0455, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87329:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87329:Expr_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87329:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87329:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Queries with paginated results against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(...
ajibawa-2023/Python-Code-Large/train/row_87330
21
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87330:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1277, 0.0213, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87330:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87330:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87330:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87330:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with grouping against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get...
ajibawa-2023/Python-Code-Large/train/row_87331
14
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87331:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.125, 0.0208, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87331:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87331:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87331:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87331:Assign_L37_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with ranked results against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): ...
ajibawa-2023/Python-Code-Large/train/row_87332
14
46
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87332:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1304, 0.0217, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87332:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87332:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87332:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87332:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_87333
81
165
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87333:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1212, 0.0424, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87333:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87333:Assign_L50_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87333:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87333:Assign_L51_C2"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_87334
61
169
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87334:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1272, 0.0592, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87334:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87334:Expr_L64_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87334:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87334:Assign_L74_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_87335
36
97
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87335:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 34], "level": 0, "parent": null, "vector": [8, 0, 0.2629, 0.1856, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87335:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87335:FunctionDef_L62_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87335:FunctionDef_L62_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_87335:Try_L63_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_87337
37
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87337:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1818, 0.0636, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87337:ClassDef_L72_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87337:FunctionDef_L75_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87337:FunctionDef_L75_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_87337:Assign_L76_C4"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("""Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things. You'll have to run...
ajibawa-2023/Python-Code-Large/train/row_87339
8
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87339:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1333, 0.0667, 0, 0.66, 0.0, 879, 0, 1, 0, 0, 879, 0, 0], "semantic": {"name": "django.core.management"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87339:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87339:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87339:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87339:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
import pickle import base64 from django.contrib import admin from django.contrib.auth.models import User from django.db import models from oauth2client.django_orm import FlowField from oauth2client.django_orm import CredentialsField # The Flow could also be stored in memcache since it is short lived. class FlowMod...
ajibawa-2023/Python-Code-Large/train/row_87340
17
33
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87340:Import_L1_C0", "label": "pickle import pickle", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0303, 0, 0.66, 0.0, 848, 0, 1, 0, 0, 848, 0, 0], "semantic": {"name": "pickle", "arg_names": [], "import_names": ["pickle"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87340:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87340:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87340:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87340:Assign_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): ""...
ajibawa-2023/Python-Code-Large/train/row_87341
7
24
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87341:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1458, 0.25, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87341:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87341:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87341:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87341:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Co...
import os import logging import httplib2 from django.http import HttpResponse from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from oauth2client.django_orm import Storage from oauth2client.client import OAuth2WebServerFlow from django_sample.plus.models import Cre...
ajibawa-2023/Python-Code-Large/train/row_87342
38
61
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87342:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0164, 0.0164, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87342:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87342:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87342:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87342:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Co...
import os from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: (r'^$', 'django_sample.plus.views.index'), (r'^oauth2callback', 'django_sample.plus.views.auth_return'), # ...
ajibawa-2023/Python-Code-Large/train/row_87343
5
25
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87343:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.04, 0.04, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "a...
[]
# Django settings for django_sample project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = 'database.sqlite3' DATABASE_USER = '' DATABASE_PASSWORD = '' DATABASE_HOST = '' DATABASE_PORT = '' # Lo...
ajibawa-2023/Python-Code-Large/train/row_87344
24
84
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87344:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0238, 0.0119, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[]
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
ajibawa-2023/Python-Code-Large/train/row_87345
10
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87345:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 21], "level": 0, "parent": null, "vector": [8, 0, 0.4432, 0.0909, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87345:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87345:Assign_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87345:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87345:Assign_L37_C2"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
ajibawa-2023/Python-Code-Large/train/row_87346
16
57
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87346:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.2982, 0.0175, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87346:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87346:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87346:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87346:FunctionDef_L35_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
ajibawa-2023/Python-Code-Large/train/row_87347
18
53
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87347:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 18], "level": 0, "parent": null, "vector": [8, 0, 0.3396, 0.0189, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87347:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87347:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87347:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87347:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
ajibawa-2023/Python-Code-Large/train/row_87348
17
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87348:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.3148, 0.0185, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87348:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87348:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87348:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87348:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
ajibawa-2023/Python-Code-Large/train/row_87350
83
211
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87350:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0853, 0.0047, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87350:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87350:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87350:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87350:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
ajibawa-2023/Python-Code-Large/train/row_87351
56
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87351:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 20], "level": 0, "parent": null, "vector": [8, 0, 0.1535, 0.0526, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87351:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87351:If_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87351:If_L43_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87351:Expr_L44_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
#!/usr/bin/env python # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
ajibawa-2023/Python-Code-Large/train/row_87355
11
53
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87355:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.3208, 0.0189, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87355:Try_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87355:ImportFrom_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87355:Try_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87355:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
ajibawa-2023/Python-Code-Large/train/row_87356
19
65
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87356:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 28], "level": 0, "parent": null, "vector": [8, 0, 0.3538, 0.1692, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87356:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87356:Assign_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87356:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87356:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Co...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
ajibawa-2023/Python-Code-Large/train/row_87357
26
57
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87357:ImportFrom_L15_C0", "label": "from google.appengine.dist import use_library", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2632, 0.0175, 0, 0.66, 0.0, 813, 0, 1, 0, 0, 813, 0, 0], "semantic": {"name": "google.appengine.dist", "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87357:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87357:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87357:FunctionDef_L34_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_87357:If_L35_C4"}, {"f": "ajibawa-2023/Python-Code...
# Set up the system so that this development # version of google-api-python-client is run, even if # an older version is installed on the system. # # To make this totally automatic add the following to # your ~/.bash_profile: # # export PYTHONPATH=/path/to/where/you/checked/out/apiclient import sys import os sys.path....
ajibawa-2023/Python-Code-Large/train/row_87358
3
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87358:Import_L9_C0", "label": "sys import sys", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.75, 0.0833, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": ...
[]
#!/usr/bin/env python # # Repeats a command for each demo and reports the status. # The command is executed from the root directory of the demo. # # Example: # python demos.py "ant install" # python demos.py "android update project -p ." # import os import sys def demos(command): tools_directory, script = os.path.s...
ajibawa-2023/Python-Code-Large/train/row_87359
28
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87359:Import_L11_C0", "label": "os import os", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 0.2558, 0.0233, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87359:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87359:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87359:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87359:Assign_L16_C2"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # # Updates the JARs in the demo libs/ directories # with the current build output found in bin/. # import os import shutil import sys def listdir(path): """List files at the specified path excluding hidden files""" return filter(lambda x: not x.startswith('.'), os.listdir(path)) def libs()...
ajibawa-2023/Python-Code-Large/train/row_87360
25
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87360:Import_L7_C0", "label": "os import os", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1892, 0.027, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87360:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87360:Expr_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87360:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87360:Return_L13_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # # Builds archives for SDK releases. # # Usage: # python tools/sdk.py <version> # import os import shutil import sys import tempfile def execute(command): status = os.system(command) if status != 0: raise Exception('unexpected result: %d' % status) def sdk(version, output): # Find th...
ajibawa-2023/Python-Code-Large/train/row_87361
36
68
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87361:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.1324, 0.0147, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87361:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87361:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87361:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87361:If_L16_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python import codecs import re import jinja2 import markdown def process_slides(): with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile: md = codecs.open('slides.md', encoding='utf8').read() md_slides = md.split('\n---\n') print 'Compiled %s slides.' % len(m...
ajibawa-2023/Python-Code-Large/train/row_87362
41
57
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87362:Import_L3_C0", "label": "codecs import codecs", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0175, 0, 0.66, 0.0, 220, 0, 1, 0, 0, 220, 0, 0], "semantic": {"name": "codecs", "arg_names": [], "import_names": ["codecs"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87362:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87362:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87362:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87362:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest import _TDDConfigure import numpy class GroundReactionWrenchFilterTest(unittest.TestCase): def test_FileSample10Type4a(self): reader = btk.btkAcquisitionFileReader() reader.SetFilename(_TDDConfigure.C3DFilePathIN + "sample10/type-4a.c3d") pfe = btk.btkForcePlatfor...
ajibawa-2023/Python-Code-Large/train/row_87363
17
18
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87363:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0556, 0.0556, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87363:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87363:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87363:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87363:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest class PointCollectionTest(unittest.TestCase): def test_Constructor(self): test = btk.btkPointCollection() self.assertEqual(test.GetItemNumber(), 0) def test_InsertItem(self): test = btk.btkPointCollection() m = btk.btkPoint("HEEL_R", 10) s...
ajibawa-2023/Python-Code-Large/train/row_87364
13
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87364:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0667, 0.0667, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87364:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87364:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87364:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87364:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest import _TDDConfigure import numpy class AnalogOffsetRemoverTest(unittest.TestCase): def test_Test0(self): acq = btk.btkAcquisition() acq.Init(0,25,1,1) data = numpy.empty([25,1]); data.fill(5.0) acq.GetAnalog(0).SetValues(data) remover = btk.btkAnalogOffsetRemover()...
ajibawa-2023/Python-Code-Large/train/row_87365
158
165
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87365:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0061, 0.0061, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87365:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87365:FunctionDef_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87365:FunctionDef_L7_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_87365:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest import _TDDConfigure import numpy class ForcePlatformsExtractorTest(unittest.TestCase): def test_FileSample01Eb015pi(self): reader = btk.btkAcquisitionFileReader() reader.SetFilename(_TDDConfigure.C3DFilePathIN + "sample01/Eb015pi.c3d") acq = reader.GetOutput() ...
ajibawa-2023/Python-Code-Large/train/row_87366
123
132
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87366:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0076, 0.0076, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87366:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87366:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87366:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87366:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest import _TDDConfigure class MergeAcquisitionFilterTest(unittest.TestCase): def test_NoInput(self): merger = btk.btkMergeAcquisitionFilter() merger.Update() output = merger.GetOutput() self.assertEqual(output.GetPointFrameNumber(), 0) self.assertEqual(output.GetAnalogFram...
ajibawa-2023/Python-Code-Large/train/row_87367
214
224
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87367:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0045, 0.0045, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87367:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87367:FunctionDef_L6_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87367:FunctionDef_L6_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_87367:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest class DownsampleFilterTest(unittest.TestCase): def test_wrench_case1(self): wrench = btk.btkWrench(100) wdf = btk.btkWrenchDownsampleFilter(); wdf.SetInput(wrench) wdf.SetUpDownRatio(10) wdf.Update() self.assertEqual(wdf.GetOutput().GetComponent(0).Get...
ajibawa-2023/Python-Code-Large/train/row_87368
39
42
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87368:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0238, 0.0238, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87368:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87368:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87368:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87368:Assign_L6_C6"}, {"f": "ajibawa-2023/Python-Code...
import unittest import AcquisitionUnitConverterTest import AnalogOffsetRemoverTest import DownsampleFilterTest import ForcePlatformsExtractorTest import GroundReactionWrenchFilterTest import IMUsExtractorTest import MergeAcquisitionFilterTest import SeparateKnownVirtualMarkersFilterTest import SubAcquisitionFilterTest...
ajibawa-2023/Python-Code-Large/train/row_87369
24
26
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87369:Import_L1_C0", "label": "unittest import unittest", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0385, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87369:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87369:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87369:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87369:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest import numpy class PointTest(unittest.TestCase): def test_Constructor(self): test = btk.btkPoint("HEEL_R", 200) self.assertEqual(test.GetLabel(), "HEEL_R") self.assertEqual(test.GetDescription(), "") self.assertEqual(test.GetValues().shape[0], 200) ...
ajibawa-2023/Python-Code-Large/train/row_87370
26
29
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87370:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0345, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87370:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87370:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87370:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87370:Assign_L7_C8"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest import _TDDConfigure class IMUsExtractorTest(unittest.TestCase): def test_NoAcquisition(self): imuse = btk.btkIMUsExtractor() output = imuse.GetOutput() output.Update() self.assertEqual(output.GetItemNumber(), 0) def test_NoIMU(self): imuse = btk.btkIMUsExtractor() ...
ajibawa-2023/Python-Code-Large/train/row_87371
264
211
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87371:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0047, 0.0047, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87371:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87371:FunctionDef_L6_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87371:FunctionDef_L6_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_87371:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code...
import unittest import EventTest import AnalogTest import PointTest import ForcePlatformTypesTest import EventCollectionTest import PointCollectionTest import MetaDataInfoTest import MetaDataTest import AcquisitionTest import WrenchTest import IMUTypesTest def suite(): suite = unittest.TestSuite() suite.addTe...
ajibawa-2023/Python-Code-Large/train/row_87372
26
28
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87372:Import_L1_C0", "label": "unittest import unittest", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0357, 0.0357, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87372:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87372:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87372:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87372:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest class MetaDataTest(unittest.TestCase): def test_SimpleCtor(self): test = btk.btkMetaData('POINT') self.assertEqual(test.GetLabel(), 'POINT') self.assertEqual(test.GetDescription(), '') self.assertEqual(test.GetUnlockState(), True) self.assertEqual(...
ajibawa-2023/Python-Code-Large/train/row_87373
194
213
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87373:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0047, 0.0047, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87373:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87373:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87373:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87373:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest import _TDDConfigure class SubAcquisitionFilterTest(unittest.TestCase): def test_TestAllNoEffect(self): acq = btk.btkAcquisition() acq.Init(10,25,5,2) acq.AppendEvent(btk.btkEvent()) acq.SetFirstFrame(10) acq.SetPointFrequency(25.0) sub = btk.btkSubAcquisitionFilter...
ajibawa-2023/Python-Code-Large/train/row_87374
211
232
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87374:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0043, 0.0043, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87374:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87374:FunctionDef_L6_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87374:FunctionDef_L6_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_87374:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest class MetaDataInfoTest(unittest.TestCase): def test_ctor_int(self): i = btk.btkMetaDataInfo(5) self.assertEqual(i.GetFormat(), btk.btkMetaDataInfo.Integer) self.assertEqual(len(i.GetDimensions()), 0) self.assertEqual(i.GetDimensionsProduct(), 1) se...
ajibawa-2023/Python-Code-Large/train/row_87375
737
841
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87375:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0012, 0.0012, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87375:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87375:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87375:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87375:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- import btk import unittest import _TDDConfigure class C3DFileWriterTest(unittest.TestCase): def test_NoFileNoInput(self): writer = btk.btkAcquisitionFileWriter() self.assertRaises(RuntimeError, writer.Update) # self.assertRaisesRegexp(RuntimeError, 'Filename must be specified',...
ajibawa-2023/Python-Code-Large/train/row_87376
1,081
1,182
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87376:Import_L3_C0", "label": "btk import btk", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0025, 0.0008, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87376:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87376:FunctionDef_L8_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87376:FunctionDef_L8_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_87376:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest import _TDDConfigure import numpy class SeparateKnownVirtualMarkersFilterTest(unittest.TestCase): def test_Constructor(self): skvm = btk.btkSeparateKnownVirtualMarkersFilter() labels = skvm.GetVirtualReferenceFrames() num = 19 self.assertEqual(labels.size(...
ajibawa-2023/Python-Code-Large/train/row_87377
301
338
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87377:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.003, 0.003, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87377:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87377:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87377:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87377:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest import _TDDConfigure class C3DFileIOTest(unittest.TestCase): def test_CanReadFileEmpty(self): pt = btk.btkC3DFileIO() self.assertEqual(pt.CanReadFile(''), False); def test_CanReadFileEmptyFile(self): pt = btk.btkC3DFileIO() self.assertEqual(pt.Can...
ajibawa-2023/Python-Code-Large/train/row_87378
25
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87378:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0312, 0.0312, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87378:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87378:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87378:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87378:Assign_L7_C8"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest import _TDDConfigure class AcquisitionUnitConverterTest(unittest.TestCase): def test_NoInputNoConversion(self): uc = btk.btkAcquisitionUnitConverter() uc.Update() output = uc.GetOutput() self.assertEqual(output.GetPointUnit(btk.btkPoint.Marker), 'mm') ...
ajibawa-2023/Python-Code-Large/train/row_87379
153
157
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87379:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0064, 0.0064, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87379:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87379:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87379:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87379:Assign_L7_C8"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest class WrenchTest(unittest.TestCase): def test_Constructor_default(self): test = btk.btkWrench() self.assertEqual(test.GetPosition().GetLabel(), "") self.assertEqual(test.GetPosition().GetType(), btk.btkPoint.Marker) self.assertEqual(test.GetForce().GetLabe...
ajibawa-2023/Python-Code-Large/train/row_87380
73
80
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87380:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0125, 0.0125, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87380:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87380:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87380:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87380:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
import unittest import C3DFileIOTest import C3DFileReaderTest import C3DFileWriterTest def suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(C3DFileIOTest.C3DFileIOTest)) suite.addTest(unittest.makeSuite(C3DFileReaderTest.C3DFileReaderTest)) suite.addTest(unittest.makeSuite(C3DFil...
ajibawa-2023/Python-Code-Large/train/row_87381
10
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87381:Import_L1_C0", "label": "unittest import unittest", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0833, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87381:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87381:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87381:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87381:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import btk import unittest class AcquisitionTest(unittest.TestCase): def test_Constructor(self): test = btk.btkAcquisition() self.assertEqual(test.GetPointFrameNumber(), 0) self.assertEqual(test.GetAnalogFrameNumber(), 0) self.assertEqual(test.GetPointNumber(), 0) self.asser...
ajibawa-2023/Python-Code-Large/train/row_87382
108
118
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87382:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0085, 0.0085, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87382:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87382:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87382:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87382:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest class AnalogTest(unittest.TestCase): def test_default_ctor(self): a = btk.btkAnalog() self.assertEqual(a.GetLabel(), '') self.assertEqual(a.GetDescription(), '') self.assertEqual(a.GetFrameNumber(), 0) self.assertEqual(a.GetUnit(), 'V') sel...
ajibawa-2023/Python-Code-Large/train/row_87383
188
204
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87383:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0049, 0.0049, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87383:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87383:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87383:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87383:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- import btk import unittest import platform import _TDDConfigure class C3DFileReaderTest(unittest.TestCase): def test_NoFile(self): reader = btk.btkAcquisitionFileReader() self.assertRaises(RuntimeError, reader.Update) # self.assertRaisesRegexp(RuntimeError, 'Filen...
ajibawa-2023/Python-Code-Large/train/row_87384
462
547
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87384:Import_L3_C0", "label": "btk import btk", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0055, 0.0018, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87384:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87384:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87384:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87384:Assign_L10_C8"}, {"f": "ajibawa-2023/Python-Cod...
import btk import unittest import numpy class IMUTypesTest(unittest.TestCase): def test_IMUType1(self): imu = btk.btkIMUType1() self.assertEqual(imu.GetLabel(), 'IMU') self.assertEqual(imu.GetDescription(), '') self.assertEqual(imu.GetType(), 1) self.assertEqual(imu.GetFrequ...
ajibawa-2023/Python-Code-Large/train/row_87385
85
92
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87385:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0109, 0.0109, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87385:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87385:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87385:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87385:Assign_L7_C8"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest import numpy class ForcePlatformTypesTest(unittest.TestCase): def test_ForcePlatformType1(self): pf = btk.btkForcePlatformType1() self.assertEqual(pf.GetType(), 1) self.assertEqual(numpy.all(pf.GetOrigin() == numpy.zeros((3,1))), True) self.assertEqual(pf....
ajibawa-2023/Python-Code-Large/train/row_87386
48
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87386:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0185, 0.0185, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87386:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87386:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87386:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87386:Assign_L7_C8"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest class EventTest(unittest.TestCase): def test_default_ctor(self): e = btk.btkEvent() self.assertEqual(e.GetLabel(), '') self.assertEqual(e.GetTime(), -1.0) self.assertEqual(e.GetFrame(), -1) self.assertEqual(e.GetContext(), '') self.assertEq...
ajibawa-2023/Python-Code-Large/train/row_87387
123
130
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87387:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0077, 0.0077, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87387:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87387:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87387:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87387:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest import _TDDConfigure class VerticalGroundReactionForceGaitEventDetectorTest(unittest.TestCase): def test_NoWrench(self): vgrfged = btk.btkVerticalGroundReactionForceGaitEventDetector() output = vgrfged.GetOutput() output.Update() self.assertEqual(output.GetItemNumber(), 0) ...
ajibawa-2023/Python-Code-Large/train/row_87388
233
239
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87388:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0042, 0.0042, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87388:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87388:FunctionDef_L6_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87388:FunctionDef_L6_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_87388:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code...
import btk import unittest class EventCollectionTest(unittest.TestCase): def test_default_ctor(self): ec = btk.btkEventCollection() self.assertEqual(ec.GetItemNumber(), 0) def test_item_number(self): ec = btk.btkEventCollection() ec.SetItemNumber(5) self.assertE...
ajibawa-2023/Python-Code-Large/train/row_87389
407
425
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87389:Import_L1_C0", "label": "btk import btk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0024, 0.0024, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "btk", "arg_names": [], "import_names": ["btk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87389:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87389:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87389:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87389:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87390
857
1,661
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87390:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 33], "level": 0, "parent": null, "vector": [8, 0, 0.0151, 0.0102, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87390:ClassDef_L146_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87390:FunctionDef_L148_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87390:FunctionDef_L148_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87390:Assign_L149_C8"}, {"f": "ajibawa-2023/Pyt...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87391
88
155
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87391:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0968, 0.0065, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87391:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87391:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87391:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87391:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87392
43
163
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87392:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1104, 0.0429, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87392:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87392:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87392:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87392:Assign_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87393
66
145
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87393:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1034, 0.0069, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87393:If_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87393:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87393:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87393:Expr_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87395
37
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87395:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.2027, 0.0135, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87395:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87395:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87395:FunctionDef_L31_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87395:Expr_L32_C8"}, {"f": "ajibawa-2023/Python-Co...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87396
154
505
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87396:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0297, 0.002, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87396:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87396:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87396:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87396:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87397
181
445
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87397:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0337, 0.0022, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87397:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87397:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87397:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87397:Assign_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87398
82
224
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87398:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.067, 0.0045, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87398:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87398:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87398:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87398:Assign_L38_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87399
136
320
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87399:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0469, 0.0031, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87399:FunctionDef_L64_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87399:If_L70_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87399:If_L70_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87399:Expr_L71_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87400
6
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87400:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.0133, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87401
237
410
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87401:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0366, 0.0024, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87401:ClassDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87401:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87401:ClassDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87401:FunctionDef_L51_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87403
403
796
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87403:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0188, 0.0013, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87403:ClassDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87403:Expr_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87403:ClassDef_L58_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87403:Expr_L59_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87404
22
66
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87404:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 26], "level": 0, "parent": null, "vector": [8, 0, 0.3106, 0.1818, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87404:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87404:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87404:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87404:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87405
249
507
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87405:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0296, 0.002, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87405:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87405:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87405:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87405:FunctionDef_L38_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87406
167
381
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87406:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0394, 0.0026, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87406:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87406:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87406:FunctionDef_L32_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87406:Return_L33_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87407
204
460
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87407:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 34], "level": 0, "parent": null, "vector": [8, 0, 0.0533, 0.0435, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87407:FunctionDef_L80_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87407:Return_L84_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87407:ClassDef_L88_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87407:FunctionDef_L91_C4"}, {"f": "ajibawa-2023/Python-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87408
150
304
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87408:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0493, 0.0033, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87408:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87408:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87408:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87408:Try_L57_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87409
127
332
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87409:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0452, 0.003, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87409:ClassDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87409:Expr_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87409:ClassDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87409:Assign_L62_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87410
29
86
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87410:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1744, 0.0116, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87410:ClassDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87410:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87410:ClassDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87410:FunctionDef_L48_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87411
198
295
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87411:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0508, 0.0034, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87411:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87411:Expr_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87411:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87411:FunctionDef_L48_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87413
14
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87413:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.3409, 0.0227, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87413:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87413:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87413:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87413:If_L24_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87414
415
812
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87414:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0185, 0.0012, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87414:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87414:Expr_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87414:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87414:If_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87415
206
413
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87415:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0363, 0.0024, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87415:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87415:Expr_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87415:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87415:FunctionDef_L64_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87417
137
319
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87417:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.047, 0.0031, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87417:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87417:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87417:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87417:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87418
62
213
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87418:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 66], "level": 0, "parent": null, "vector": [8, 0, 0.1901, 0.2441, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87418:ClassDef_L90_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87418:Expr_L91_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87418:ClassDef_L90_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87418:FunctionDef_L98_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87419
64
134
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87419:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1119, 0.0075, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87419:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87419:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87419:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87419:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87420
49
122
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87420:Assign_L15_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [15, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1352, 0.0328, 0, 0.66, 0.0, 777, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87420:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87420:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87420:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87420:Assign_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87422
45
112
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87422:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1339, 0.0089, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87422:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87422:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87422:FunctionDef_L31_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87422:Return_L32_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87423
44
108
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87423:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1389, 0.0093, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87423:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87423:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87423:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87423:FunctionDef_L44_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_87424
128
262
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87424:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0573, 0.0038, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87424:ClassDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87424:Expr_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87424:ClassDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87424:Expr_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...