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/env python # # Copyright 2008 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 ...
ajibawa-2023/Python-Code-Large/train/row_96706
95
231
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_96706:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 19], "level": 0, "parent": null, "vector": [8, 0, 0.0779, 0.013, 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_96706:ClassDef_L83_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96706:Expr_L85_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96706:ClassDef_L83_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96706:FunctionDef_L89_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python # # Copyright 2008 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 ...
ajibawa-2023/Python-Code-Large/train/row_96707
95
231
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_96707:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 19], "level": 0, "parent": null, "vector": [8, 0, 0.0779, 0.013, 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_96707:ClassDef_L83_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96707:Expr_L85_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96707:ClassDef_L83_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96707:FunctionDef_L89_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python # # Copyright 2008 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 ...
ajibawa-2023/Python-Code-Large/train/row_96708
257
430
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_96708:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 19], "level": 0, "parent": null, "vector": [8, 0, 0.0419, 0.007, 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_96708:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96708:Expr_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96708:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96708:FunctionDef_L44_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python # # Copyright 2008 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 ...
ajibawa-2023/Python-Code-Large/train/row_96709
16
50
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_96709:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.34, 0.02, 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_96709:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96709:Expr_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96709:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96709:FunctionDef_L30_C2"}, {"f": "ajibawa-2023/Python...
#!/usr/bin/env python
ajibawa-2023/Python-Code-Large/train/row_96710
0
1
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"]
[]
[]
#!/usr/bin/env python
ajibawa-2023/Python-Code-Large/train/row_96711
0
1
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"]
[]
[]
#!/usr/bin/env python __version__='1.0'
ajibawa-2023/Python-Code-Large/train/row_96712
1
2
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_96712:Assign_L2_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [2, 2], "level": 0, "parent": null, "vector": [14, 0, 1.0, 0.5, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
#!/usr/bin/env python # # Copyright 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 law o...
ajibawa-2023/Python-Code-Large/train/row_96713
0
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"]
[]
[]
#!/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_96714
3,517
4,744
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_96714:ImportFrom_L20_C0", "label": "from google.net.proto import ProtocolBuffer", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.0042, 0.0002, 0, 0.66, 0.0, 141, 0, 1, 0, 0, 141, 0, 0], "semantic": {"name": "google.net.proto", "arg_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96714:If_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96714:Assign_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96714:If_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96714:Assign_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/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_96716
5
27
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_96716:Expr_L21_C0", "label": "expression", "type": "expression", "loc": [21, 21], "level": 0, "parent": null, "vector": [8, 0, 0.7778, 0.037, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[]
#!/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_96717
3,517
4,744
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_96717:ImportFrom_L20_C0", "label": "from google.net.proto import ProtocolBuffer", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.0042, 0.0002, 0, 0.66, 0.0, 141, 0, 1, 0, 0, 141, 0, 0], "semantic": {"name": "google.net.proto", "arg_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96717:If_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96717:Assign_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96717:If_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96717:Assign_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/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_96718
22
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_96718:Expr_L21_C0", "label": "expression", "type": "expression", "loc": [21, 21], "level": 0, "parent": null, "vector": [8, 0, 0.3281, 0.0156, 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_96718:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96718:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96718:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96718:FunctionDef_L39_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_96720
58
170
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_96720:Expr_L21_C0", "label": "expression", "type": "expression", "loc": [21, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1235, 0.0059, 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_96720:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96720:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96720:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96720:If_L57_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/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_96722
22
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_96722:Expr_L21_C0", "label": "expression", "type": "expression", "loc": [21, 21], "level": 0, "parent": null, "vector": [8, 0, 0.3281, 0.0156, 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_96722:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96722:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96722:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96722:FunctionDef_L39_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_96723
58
170
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_96723:Expr_L21_C0", "label": "expression", "type": "expression", "loc": [21, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1235, 0.0059, 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_96723:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96723:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96723:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96723:If_L57_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/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_96725
5
27
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_96725:Expr_L21_C0", "label": "expression", "type": "expression", "loc": [21, 21], "level": 0, "parent": null, "vector": [8, 0, 0.7778, 0.037, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[]
#!/usr/bin/env python # # Copyright 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 law o...
ajibawa-2023/Python-Code-Large/train/row_96726
311
861
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_96726:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0226, 0.007, 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_96726:ClassDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96726:Expr_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96726:ClassDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96726:FunctionDef_L68_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python # # Copyright 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 law o...
ajibawa-2023/Python-Code-Large/train/row_96727
15
94
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_96727:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1809, 0.0106, 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_96727:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96727:Expr_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96727:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96727:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-...
webapp2_config = {} webapp2_config['webapp2_extras.sessions'] = { 'secret_key': '5023a64-ea7-463-wc1-8b04387a51a', } FACEBOOK_APP_ID = '16435577607006' MONTAO_FACEBOOK_APP_ID = '18798577897046' FACEBOOK_APP_SECRET = '64234409f1eb45661e1049d5b139cb0' MONTAO_FACEBOOK_APP_SECRET = '512a7e72503093d59ff965ababd42c' ...
ajibawa-2023/Python-Code-Large/train/row_96728
14
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_96728:Assign_L1_C0", "label": "webapp2_config =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0303, 0.0303, 0, 0.66, 0.0, 866, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "webapp2_config", "arg_names": [], "import_names": [...
[]
#!/usr/bin/python # -*- coding: utf-8 -*- # Facebook Application ID and Secret. FACEBOOK_APP_ID = '164355773607006' MONTAO_FACEBOOK_APP_ID = '187978577897046' FACEBOOK_APP_SECRET = '64234409f15eb45661e1049d5b139cb0' MONTAO_FACEBOOK_APP_SECRET = '512a97e72503093d5c9ff965ababd42c' CAPTCHA_PUB_KEY = '6LckUsMSAAAAAGcZR3...
ajibawa-2023/Python-Code-Large/train/row_96729
12
30
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_96729:Assign_L5_C0", "label": "FACEBOOK_APP_ID =", "type": "assigned_variable", "loc": [5, 5], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0333, 0, 0.66, 0.0, 591, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "FACEBOOK_APP_ID", "arg_names": [], "import_names":...
[]
#!/usr/bin/python # -*- coding: utf-8 -* location_map_india = { 101: { 'name': 'Andaman & Nicobar Islands', 'lat': 11.96, 'long': 92.69, 'radius': 294200, }, 108: { 'name': 'Andhra Pradesh', 'lat': 17.04, 'long': 80.09, 'radius': 294200, ...
ajibawa-2023/Python-Code-Large/train/row_96731
1
214
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_96731:Assign_L3_C0", "label": "location_map_india =", "type": "assigned_variable", "loc": [3, 214], "level": 0, "parent": null, "vector": [14, 0, 0.507, 0.9907, 0, 0.66, 0.0, 181, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "location_map_india", "arg_names": [], "import_...
[]
#!/usr/bin/env python # -*- coding: utf-8 -*- # r""" A JSON data encoder and decoder. This Python module implements the JSON (http://json.org/) data encoding format; a subset of ECMAScript (aka JavaScript) for encoding primitive data types (numbers, strings, booleans, lists, and associative arrays) in a language-n...
ajibawa-2023/Python-Code-Large/train/row_96732
1,122
2,139
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_96732:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 114], "level": 0, "parent": null, "vector": [8, 0, 0.0276, 0.0519, 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_96732:Try_L158_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96732:Import_L160_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96732:Try_L158_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96732:Assign_L162_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- coding: utf-8 -*- import logging import os import cgi import util from main import Ad from google.appengine.ext import webapp from google.appengine.ext.webapp import template from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.ext import db from google.appengine.api import u...
ajibawa-2023/Python-Code-Large/train/row_96733
42
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_96733:Import_L2_C0", "label": "logging import logging", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0417, 0.0208, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96733:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96733:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96733:FunctionDef_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_96733:Assign_L18_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: utf-8 -*- import webapp2 from webapp2_extras import jinja2 from engineauth import models import ndb class Jinja2Handler(webapp2.RequestHandler): """ BaseHandler for all requests all other handlers will extend this handler """ @webapp2.cached_property def jinja2(self): ...
ajibawa-2023/Python-Code-Large/train/row_96734
46
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_96734:Import_L2_C0", "label": "webapp2 import webapp2", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.027, 0.0135, 0, 0.66, 0.0, 123, 0, 1, 0, 0, 123, 0, 0], "semantic": {"name": "webapp2", "arg_names": [], "import_names": ["webapp2"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96734:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96734:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96734:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96734:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import decimal import logging import urllib import urllib2 from google.appengine.api import urlfetch # hack to enable urllib to work with Python import os os.environ['foo_proxy'] = 'bar' import json import settings class Pay( object ): def __init__( self, amount, return_url, cancel_url, remote_address, secondary...
ajibawa-2023/Python-Code-Large/train/row_96735
77
152
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_96735:Import_L1_C0", "label": "decimal import decimal", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0066, 0.0066, 0, 0.66, 0.0, 349, 0, 1, 0, 0, 349, 0, 0], "semantic": {"name": "decimal", "arg_names": [], "import_names": ["decimal"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96735:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96735:FunctionDef_L17_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96735:FunctionDef_L17_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_96735:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python2.5 # # Copyright 2009 Roman Nurik # # 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_96737
43
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_96737:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1753, 0.0103, 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_96737:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96737:FunctionDef_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96737:FunctionDef_L28_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_96737:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python2.5 # # Copyright 2009 Roman Nurik # # 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_96738
10
41
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_96738:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.4146, 0.0244, 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_96738:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96738:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96738:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96738:Assign_L38_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python2.5 # # Copyright 2009 Roman Nurik # # 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_96739
30
117
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_96739:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1453, 0.0085, 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_96739:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96739:Expr_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96739:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96739:Assign_L46_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python2.5 # # Copyright 2009 Roman Nurik # # 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_96740
12
39
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_96740:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.4359, 0.0256, 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_96740:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96740:FunctionDef_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96740:FunctionDef_L28_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_96740:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python2.5 # # Copyright 2009 Roman Nurik # # 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_96741
28
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_96741:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.2537, 0.0149, 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_96741:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96741:FunctionDef_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96741:FunctionDef_L27_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_96741:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python2.5 # # Copyright 2009 Roman Nurik # # 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_96742
156
467
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_96742:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 66], "level": 0, "parent": null, "vector": [8, 0, 0.0889, 0.1071, 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_96742:FunctionDef_L97_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96742:Expr_L98_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96742:FunctionDef_L97_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96742:Assign_L114_C2"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/python2.5 # # Copyright 2009 Roman Nurik # # 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_96743
41
100
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_96743:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.17, 0.01, 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_96743:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96743:Expr_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96743:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96743:FunctionDef_L30_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python2.5 # # Copyright 2009 Roman Nurik # # 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_96744
17
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_96744:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.3617, 0.0213, 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_96744:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96744:FunctionDef_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96744:FunctionDef_L27_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_96744:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python2.5 # # Copyright 2009 Roman Nurik # # 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_96745
106
306
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_96745:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.0621, 0.0163, 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_96745:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96745:Expr_L41_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96745:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96745:Return_L42_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # -*- coding: utf-8 -* location_map_br_11 = { 2: { 'name': '- Zona Centro', 'lat': -22.90, 'long': -43.21, 'radius': 294200, }, 1: { 'name': '- Zona Norte', 'lat': -23.55, 'long': -46.64, 'radius': 294200, }, 1...
ajibawa-2023/Python-Code-Large/train/row_96747
1
184
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_96747:Assign_L3_C0", "label": "location_map_br_11 =", "type": "assigned_variable", "loc": [3, 184], "level": 0, "parent": null, "vector": [14, 0, 0.5082, 0.9891, 0, 0.66, 0.0, 927, 0, 0, 0, 0, 0, 6, 10], "semantic": {"name": "location_map_br_11", "arg_names": [], "impor...
[]
import decimal from google.appengine.ext import db class Profile(db.Model): '''extra user details''' owner = db.UserProperty() paypal_email = db.EmailProperty() # for payment @staticmethod def from_user( u ): return Profile.all().filter( "owner = ", u ).get() class Item(db.Model): '''an item for sa...
ajibawa-2023/Python-Code-Large/train/row_96748
35
45
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_96748:Import_L1_C0", "label": "decimal import decimal", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0222, 0.0222, 0, 0.66, 0.0, 349, 0, 1, 0, 0, 349, 0, 0], "semantic": {"name": "decimal", "arg_names": [], "import_names": ["decimal"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96748:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96748:Expr_L6_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96748:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96748:Assign_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
import base64 import quopri from webob import multidict def from_fieldstorage(cls, fs): obj = cls() if fs.list: # fs.list can be None when there's nothing to parse for field in fs.list: if field.filename: obj.add(field.name, field) else: ...
ajibawa-2023/Python-Code-Large/train/row_96749
39
104
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_96749:Import_L1_C0", "label": "base64 import base64", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0096, 0.0096, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96749:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96749:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96749:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96749:If_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python # -*- coding: utf-8 -* location_map_india_municipality = { 1: { 'name': 'Adilabad', 'lat': -23.55, 'long': -46.64, 'radius': 294200, }, 2: { 'name': 'Anantapur', 'lat': -22.90, 'long': -43.21, 'radius': 294200, }, ...
ajibawa-2023/Python-Code-Large/train/row_96750
1
101
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_96750:Assign_L3_C0", "label": "location_map_india_municipality =", "type": "assigned_variable", "loc": [3, 100], "level": 0, "parent": null, "vector": [14, 0, 0.5099, 0.9703, 0, 0.66, 0.0, 410, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "location_map_india_municipality"...
[]
from math import ceil class InvalidPage(Exception): pass class PageNotAnInteger(InvalidPage): pass class EmptyPage(InvalidPage): pass class Paginator(object): def __init__(self, object_list, per_page, orphans=0, allow_empty_first_page=True): self.object_list = object_list self.per_pa...
ajibawa-2023/Python-Code-Large/train/row_96751
98
159
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_96751:ImportFrom_L1_C0", "label": "from math import ceil", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0063, 0.0063, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["ceil"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96751:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96751:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96751:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_96751:Assign_L14_C8"}, {"f": "ajibawa-2023/Python-...
__all__ = ( 'BaseForm', 'Form', ) class BaseForm(object): """ Base Form Class. Provides core behaviour like field construction, validation, and data and error proxying. """ def __init__(self, fields, prefix=''): """ :param fields: A dict or sequence of 2-tuples...
ajibawa-2023/Python-Code-Large/train/row_96753
132
288
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_96753:Assign_L1_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [1, 4], "level": 0, "parent": null, "vector": [14, 0, 0.0087, 0.0139, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 8, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96753:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96753:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96753:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96753:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
from cgi import escape __all__ = ( 'CheckboxInput', 'FileInput', 'HiddenInput', 'ListWidget', 'PasswordInput', 'RadioInput', 'Select', 'SubmitInput', 'TableWidget', 'TextArea', 'TextInput', 'Option' ) def html_params(**kwargs): """ Generate HTML parameters from inputted keyword arguments. T...
ajibawa-2023/Python-Code-Large/train/row_96754
130
265
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_96754:ImportFrom_L1_C0", "label": "from cgi import escape", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0038, 0.0038, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["escape"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96754:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96754:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96754:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96754:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code...
from wtforms.widgets.core import * # Compatibility imports from wtforms.widgets.core import html_params, Input, HTMLString
ajibawa-2023/Python-Code-Large/train/row_96755
2
4
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_96755:ImportFrom_L1_C0", "label": "from wtforms.widgets.core import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.25, 0, 0.66, 0.0, 163, 0, 1, 0, 0, 163, 0, 0], "semantic": {"name": "wtforms.widgets.core", "arg_names": [], "im...
[]
from .. import widgets from .core import StringField, BooleanField __all__ = ( 'BooleanField', 'TextAreaField', 'PasswordField', 'FileField', 'HiddenField', 'SubmitField', 'TextField' ) class TextField(StringField): """ Legacy alias for StringField """ class TextAreaField(TextField): """ ...
ajibawa-2023/Python-Code-Large/train/row_96756
20
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_96756:ImportFrom_L1_C0", "label": "from import widgets", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0185, 0.0185, 0, 0.66, 0.0, 0, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": ["widgets"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96756:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96756:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96756:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96756:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from wtforms.fields.core import * from wtforms.fields.simple import * # Compatibility imports from wtforms.fields.core import Label, Field, _unset_value, SelectFieldBase, Flags
ajibawa-2023/Python-Code-Large/train/row_96758
3
6
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_96758:ImportFrom_L1_C0", "label": "from wtforms.fields.core import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.1667, 0, 0.66, 0.0, 746, 0, 1, 0, 0, 746, 0, 0], "semantic": {"name": "wtforms.fields.core", "arg_names": [], "...
[]
""" A provided CSRF implementation which puts CSRF data in a session. This can be used fairly comfortably with many `request.session` type objects, including the Werkzeug/Flask session store, Django sessions, and potentially other similar objects which use a dict-like API for storing session keys. The basic concept i...
ajibawa-2023/Python-Code-Large/train/row_96759
35
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_96759:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 14], "level": 0, "parent": null, "vector": [8, 0, 0.1087, 0.2029, 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_96759:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96759:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96759:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96759:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
from wtforms.form import Form from wtforms.validators import ValidationError from .fields import CSRFTokenField class SecureForm(Form): """ Form that enables CSRF processing via subclassing hooks. """ csrf_token = CSRFTokenField() def __init__(self, formdata=None, obj=None, prefix='', csrf_conte...
ajibawa-2023/Python-Code-Large/train/row_96760
19
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_96760:ImportFrom_L1_C0", "label": "from wtforms.form import Form", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0196, 0.0196, 0, 0.66, 0.0, 719, 0, 1, 0, 0, 719, 0, 0], "semantic": {"name": "wtforms.form", "arg_names": [], "import_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96760:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96760:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96760:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96760:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
from wtforms.fields import HiddenField class CSRFTokenField(HiddenField): current_token = None def _value(self): """ We want to always return the current token on render, regardless of whether a good or bad token was passed. """ return self.current_token def popul...
ajibawa-2023/Python-Code-Large/train/row_96761
8
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_96761:ImportFrom_L1_C0", "label": "from wtforms.fields import HiddenField", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0556, 0.0556, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "wtforms.fields", "arg_names": [], "im...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96761:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96761:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96761:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96761:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-La...
from wtforms.ext.csrf.form import SecureForm
ajibawa-2023/Python-Code-Large/train/row_96762
1
1
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_96762:ImportFrom_L1_C0", "label": "from wtforms.ext.csrf.form import SecureForm", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 1.0, 1.0, 0, 0.66, 0.0, 131, 0, 1, 0, 0, 131, 0, 0], "semantic": {"name": "wtforms.ext.csrf.form", "arg_names"...
[]
import decimal from wtforms import fields, widgets class ReferencePropertyField(fields.SelectFieldBase): """ A field for ``db.ReferenceProperty``. The list items are rendered in a select. :param reference_class: A db.Model class which will be used to generate the default query to make...
ajibawa-2023/Python-Code-Large/train/row_96763
56
104
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_96763:Import_L1_C0", "label": "decimal import decimal", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0096, 0.0096, 0, 0.66, 0.0, 349, 0, 1, 0, 0, 349, 0, 0], "semantic": {"name": "decimal", "arg_names": [], "import_names": ["decimal"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96763:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96763:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96763:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96763:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
""" Form generation utilities for App Engine's ``db.Model`` class. The goal of ``model_form()`` is to provide a clean, explicit and predictable way to create forms based on ``db.Model`` classes. No malabarism or black magic should be necessary to generate a form for models, and to add custom non-model related fields: ...
ajibawa-2023/Python-Code-Large/train/row_96764
136
458
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_96764:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 93], "level": 0, "parent": null, "vector": [8, 0, 0.1026, 0.2031, 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_96764:FunctionDef_L98_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96764:Expr_L99_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96764:FunctionDef_L98_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96764:Expr_L103_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" A DateTimeField and DateField that use the `dateutil` package for parsing. """ from dateutil import parser from wtforms.fields import Field from wtforms.validators import ValidationError from wtforms.widgets import TextInput __all__ = ( 'DateTimeField', 'DateField', ) class DateTimeField(Field): """ ...
ajibawa-2023/Python-Code-Large/train/row_96765
40
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_96765:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.027, 0.0405, 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_96765:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96765:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96765:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96765:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
""" Useful form fields for use with SQLAlchemy ORM. """ import operator from wtforms import widgets from wtforms.fields import SelectFieldBase from wtforms.validators import ValidationError try: from sqlalchemy.orm.util import identity_key has_identity_key = True except ImportError: has_identity_key = Fal...
ajibawa-2023/Python-Code-Large/train/row_96766
99
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_96766:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.011, 0.0165, 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_96766:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96766:ImportFrom_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96766:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96766:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" Tools for generating forms based on SQLAlchemy models. """ import inspect from wtforms import fields as f from wtforms import validators from wtforms.form import Form __all__ = ( 'model_fields', 'model_form', ) def converts(*args): def _inner(func): func._converter_for = frozenset(args) ...
ajibawa-2023/Python-Code-Large/train/row_96767
116
217
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_96767:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0092, 0.0138, 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_96767:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96767:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96767:FunctionDef_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_96767:Assign_L17_C8"}, {"f": "ajibawa-2023/Pyth...
""" Useful form fields for use with the Django ORM. """ import operator import warnings from wtforms import widgets from wtforms.fields import SelectFieldBase from wtforms.validators import ValidationError __all__ = ( 'ModelSelectField', 'QuerySetSelectField', ) class QuerySetSelectField(SelectFieldBase): ...
ajibawa-2023/Python-Code-Large/train/row_96768
54
99
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_96768:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0202, 0.0303, 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_96768:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96768:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96768:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96768:Assign_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
""" Template tags for easy WTForms access in Django templates. """ import re from django import template from django.conf import settings from django.template import Variable register = template.Library() class FormFieldNode(template.Node): def __init__(self, field_var, html_attrs): self.field_var = fi...
ajibawa-2023/Python-Code-Large/train/row_96769
43
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_96769:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.027, 0.0405, 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_96769:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96769:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96769:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_96769:Assign_L16_C8"}, {"f": "ajibawa-2023/Python-...
""" Tools for generating forms based on Django models. """ from wtforms import fields as f from wtforms import Form from wtforms import validators from wtforms.ext.django.fields import ModelSelectField __all__ = ( 'model_fields', 'model_form', ) class ModelConverterBase(object): def __init__(self, converter...
ajibawa-2023/Python-Code-Large/train/row_96770
93
171
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_96770:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0117, 0.0175, 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_96770:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96770:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96770:FunctionDef_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_96770:Assign_L17_C8"}, {"f": "ajibawa-2023/Python-...
import re __all__ = ( 'Email', 'email', 'EqualTo', 'equal_to', 'IPAddress', 'ip_address', 'Length', 'length', 'NumberRange', 'number_range', 'Optional', 'optional', 'Required', 'required', 'Regexp', 'regexp', 'URL', 'url', 'AnyOf', 'any_of', 'NoneOf', 'none_of', 'MacAddress', 'mac_address', 'UUID' ) ...
ajibawa-2023/Python-Code-Large/train/row_96771
157
364
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_96771:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0027, 0.0027, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96771:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96771:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96771:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96771:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" WTForms ======= WTForms is a flexible forms validation and rendering library for python web development. :copyright: Copyright (c) 2010 by Thomas Johansson, James Crasta and others. :license: BSD, see LICENSE.txt for details. """ from wtforms import validators, widgets from wtforms.fields import * from wtforms.fo...
ajibawa-2023/Python-Code-Large/train/row_96772
6
16
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_96772:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 10], "level": 0, "parent": null, "vector": [8, 0, 0.3438, 0.625, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96773
418
991
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_96773:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0182, 0.0091, 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_96773:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96773:Expr_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96773:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96773:Return_L51_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96774
101
209
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_96774:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0766, 0.0239, 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_96774:Try_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96774:Import_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96774:Try_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96774:Import_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96775
217
790
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_96775:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0177, 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_96775:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96775:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96775:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96775:If_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96776
199
456
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_96776:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 19], "level": 0, "parent": null, "vector": [8, 0, 0.0362, 0.0132, 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_96776:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96776:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96776:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96776:Return_L44_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96777
235
554
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_96777:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0325, 0.0162, 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_96777:Try_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96777:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96777:Try_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96777:ImportFrom_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96778
34
120
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_96778:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1375, 0.05, 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_96778:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96778:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96778:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96778:Assign_L66_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2010 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software...
ajibawa-2023/Python-Code-Large/train/row_96779
202
463
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_96779:ImportFrom_L14_C0", "label": "from datetime import datetime", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.0302, 0.0022, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96779:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96779:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96779:FunctionDef_L27_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_96779:Assign_L28_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96780
199
533
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_96780:Import_L14_C0", "label": "codecs import codecs", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0019, 0, 0.66, 0.0, 220, 0, 1, 0, 0, 220, 0, 0], "semantic": {"name": "codecs", "arg_names": [], "import_names": ["codecs"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96780:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96780:FunctionDef_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96780:FunctionDef_L25_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_96780:Assign_L26_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: sw=4 ts=4 fenc=utf-8 # ============================================================================= # $Id: setup.py 114 2007-06-14 21:17:14Z palgarvio $ # ============================================================================= # $URL: http://svn.edgewall...
ajibawa-2023/Python-Code-Large/train/row_96781
2
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_96781:ImportFrom_L19_C0", "label": "from setuptools import setup, find_packages", "type": "import", "loc": [19, 19], "level": 0, "parent": null, "vector": [1, 0, 0.6786, 0.0357, 0, 0.66, 0.0, 182, 0, 2, 0, 0, 182, 0, 0], "semantic": {"name": "setuptools", "arg_names": [...
[]
# -*- coding: utf-8 -*- # file1.py for tests from gettext import gettext as _ def foo(): # TRANSLATOR: This will be a translator coment, # that will include several lines print _('bar')
ajibawa-2023/Python-Code-Large/train/row_96782
3
8
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_96782:ImportFrom_L4_C0", "label": "from gettext import _", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.125, 0, 0.66, 0.0, 723, 0, 1, 0, 0, 723, 0, 0], "semantic": {"name": "gettext", "arg_names": [], "import_names": ["_"], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96782:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96782:Expr_L8_C4"}]
# -*- coding: utf-8 -*- # file2.py for tests from gettext import ngettext def foo(): # Note: This will have the TRANSLATOR: tag but shouldn't # be included on the extracted stuff print ngettext('foobar', 'foobars', 1)
ajibawa-2023/Python-Code-Large/train/row_96783
3
9
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_96783:ImportFrom_L4_C0", "label": "from gettext import ngettext", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.4444, 0.1111, 0, 0.66, 0.0, 723, 0, 1, 0, 0, 723, 0, 0], "semantic": {"name": "gettext", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96783:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96783:Expr_L9_C4"}]
# -*- coding: utf-8 -*- # This file won't normally be in this directory. # It IS only for tests from gettext import ngettext def foo(): # Note: This will have the TRANSLATOR: tag but shouldn't # be included on the extracted stuff print ngettext('FooBar', 'FooBars', 1)
ajibawa-2023/Python-Code-Large/train/row_96784
3
11
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_96784:ImportFrom_L6_C0", "label": "from gettext import ngettext", "type": "import", "loc": [6, 6], "level": 0, "parent": null, "vector": [1, 0, 0.5455, 0.0909, 0, 0.66, 0.0, 723, 0, 1, 0, 0, 723, 0, 0], "semantic": {"name": "gettext", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96784:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96784:Expr_L11_C4"}]
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96785
34
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_96785:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.2188, 0.0156, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96785:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96785:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96785:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_96785:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: utf-8 -*- # # Copyright (C) 2008 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96787
9
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_96787:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.56, 0.04, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96787:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96787:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96787:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96787:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96788
175
264
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_96788:Import_L14_C0", "label": "copy import copy", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.053, 0.0038, 0, 0.66, 0.0, 739, 0, 1, 0, 0, 739, 0, 0], "semantic": {"name": "copy", "arg_names": [], "import_names": ["copy"], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96788:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96788:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96788:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96788:FunctionDef_L41_C4"}, {"f": "ajibawa-2023/Pytho...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96789
13
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_96789:Import_L14_C0", "label": "unittest import unittest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.4828, 0.0345, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unitte...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96789:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96789:ImportFrom_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96789:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96789:Assign_L19_C4"}, {"f": "ajibawa-2023/Pytho...
# -*- coding: utf-8 -*- # # Copyright (C) 2008 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software consists of v...
ajibawa-2023/Python-Code-Large/train/row_96791
76
176
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_96791:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 16], "level": 0, "parent": null, "vector": [8, 0, 0.0852, 0.017, 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_96791:ClassDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96791:Expr_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96791:ClassDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96791:Assign_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96792
73
174
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_96792:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0891, 0.023, 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_96792:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96792:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96792:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96792:If_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96793
23
255
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_96793:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0549, 0.0039, 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_96793:ClassDef_L206_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96793:Expr_L207_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96793:ClassDef_L206_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96793:Assign_L209_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96795
2
16
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_96795:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 14], "level": 0, "parent": null, "vector": [8, 0, 0.875, 0.0625, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[]
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96798
33
73
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_96798:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.1918, 0.0137, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96798:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96798:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96798:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_96798:Assign_L23_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96799
28
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_96799:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.2642, 0.0189, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96799:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96799:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96799:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_96799:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96800
9
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_96800:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.56, 0.04, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96800:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96800:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96800:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96800:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96801
9
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_96801:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.56, 0.04, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96801:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96801:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96801:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96801:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96802
15
30
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_96802:Import_L14_C0", "label": "unittest import unittest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.4667, 0.0333, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unitte...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96802:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96802:ImportFrom_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96802:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96802:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/P...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96803
86
153
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_96803:Try_L14_C0", "label": "try", "type": "try", "loc": [14, 18], "level": 0, "parent": null, "vector": [7, 0, 0.1046, 0.0327, 0, 0.66, 0.0, 0, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""}, "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96803:Try_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96803:ImportFrom_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96803:Try_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96803:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96804
183
370
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_96804:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0378, 0.0027, 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_96804:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96804:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96804:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96804:ImportFrom_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96805
164
393
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_96805:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0407, 0.0127, 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_96805:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96805:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96805:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96805:FunctionDef_L44_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2008 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software...
ajibawa-2023/Python-Code-Large/train/row_96806
9
39
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_96806:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 27], "level": 0, "parent": null, "vector": [8, 0, 0.5256, 0.359, 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_96806:Try_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96806:ImportFrom_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96806:Try_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96806:Try_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software cons...
ajibawa-2023/Python-Code-Large/train/row_96807
258
584
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_96807:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0308, 0.0154, 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_96807:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96807:ImportFrom_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96807:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96807:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
'''Base classes and helpers for building zone specific tzinfo classes''' from datetime import datetime, timedelta, tzinfo from bisect import bisect_right try: set except NameError: from sets import Set as set import pytz from pytz.exceptions import AmbiguousTimeError, NonExistentTimeError __all__ = [] _time...
ajibawa-2023/Python-Code-Large/train/row_96808
184
562
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_96808:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0018, 0.0018, 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_96808:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96808:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96808:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96808:ImportFrom_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/usr/bin/env python ''' $Id: tzfile.py,v 1.8 2004/06/03 00:15:24 zenzen Exp $ ''' try: from cStringIO import StringIO except ImportError: from io import StringIO from datetime import datetime, timedelta from struct import unpack, calcsize from pytz.tzinfo import StaticTzInfo, DstTzInfo, memorized_ttinfo fro...
ajibawa-2023/Python-Code-Large/train/row_96809
75
137
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_96809:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0219, 0.0219, 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_96809:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96809:ImportFrom_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96809:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96809:ImportFrom_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" A pytz version that runs smoothly on Google App Engine. Based on http://appengine-cookbook.appspot.com/recipe/caching-pytz-helper/ To use, add pytz to your path normally, but import it from the gae module: from pytz.gae import pytz Applied patches: - The zoneinfo dir is removed fr...
ajibawa-2023/Python-Code-Large/train/row_96810
45
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_96810:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 25], "level": 0, "parent": null, "vector": [8, 0, 0.134, 0.2577, 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_96810:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96810:FunctionDef_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96810:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96810:FunctionDef_L39_C4"}, {"f": "ajibawa-2023/Pytho...
''' Reference tzinfo implementations from the Python docs. Used for testing against as they are only correct for the years 1987 to 2006. Do not use these for real code. ''' from datetime import tzinfo, timedelta, datetime from pytz import utc, UTC, HOUR, ZERO # A class building tzinfo objects for fixed-offset time zo...
ajibawa-2023/Python-Code-Large/train/row_96811
69
127
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_96811:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0236, 0.0394, 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_96811:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96811:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96811:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96811:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-...
''' Custom exceptions raised by pytz. ''' __all__ = [ 'UnknownTimeZoneError', 'InvalidTimeError', 'AmbiguousTimeError', 'NonExistentTimeError', ] class UnknownTimeZoneError(KeyError): '''Exception raised when pytz is passed an unknown timezone. >>> isinstance(UnknownTimeZoneError(), LookupError)...
ajibawa-2023/Python-Code-Large/train/row_96812
10
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_96812:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0417, 0.0625, 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_96812:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96812:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96812:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96812:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' datetime.tzinfo timezone definitions generated from the Olson timezone database: ftp://elsie.nci.nih.gov/pub/tz*.tar.gz See the datetime section of the Python Library Reference for information on how to use these modules. ''' # The Olson database is updated several times a year. OLSON_VERSION = '2011n' VERSI...
ajibawa-2023/Python-Code-Large/train/row_96813
206
1,537
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_96813:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0033, 0.0059, 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_96813:Try_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96813:ImportFrom_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96813:Try_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96813:ImportFrom_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
import logging, email from google.appengine.ext import webapp from google.appengine.ext.webapp.mail_handlers import InboundMailHandler from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.api import mail class LogSenderHandler(InboundMailHandler): def receive(self, mail_message): ...
ajibawa-2023/Python-Code-Large/train/row_96814
11
17
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_96814:Import_L1_C0", "label": "logging import logging, email", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0588, 0, 0.66, 0.0, 715, 0, 2, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["log...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96814:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96814:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96814:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_96814:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/python # -*- coding: utf-8 -*- # PythonTidy.py # 2006 Oct 27 . ccr '''PythonTidy.py cleans up, regularizes, and reformats the text of Python scripts. =========================================== Copyright © 2006 Charles Curtis Rhode =========================================== This program is free software...
ajibawa-2023/Python-Code-Large/train/row_96815
2,808
4,701
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_96815:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 116], "level": 0, "parent": null, "vector": [8, 0, 0.0131, 0.0234, 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_96815:If_L274_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96815:Import_L275_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96815:If_L274_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96815:Import_L276_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#! /usr/bin/env python # coding=utf-8 ############################################################################# # # # File: listfiles.py # # ...
ajibawa-2023/Python-Code-Large/train/row_96816
153
256
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_96816:Import_L17_C0", "label": "wsgiref.handlers import wsgiref.handlers", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.0664, 0.0039, 0, 0.66, 0.0, 709, 0, 1, 0, 0, 709, 0, 0], "semantic": {"name": "wsgiref.handlers", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96816:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96816:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96816:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96816:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code...
# settings for app #PAYPAL_ENDPOINT = 'https://svcs.sandbox.paypal.com/AdaptivePayments/' # sandbox PAYPAL_ENDPOINT = 'https://svcs.paypal.com/AdaptivePayments/' # production #PAYPAL_PAYMENT_HOST = 'https://www.sandbox.paypal.com/au/cgi-bin/webscr' # sandbox PAYPAL_PAYMENT_HOST = 'https://www.paypal.com/webscr' # pro...
ajibawa-2023/Python-Code-Large/train/row_96818
15
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_96818:Assign_L4_C0", "label": "PAYPAL_ENDPOINT =", "type": "assigned_variable", "loc": [4, 4], "level": 0, "parent": null, "vector": [14, 0, 0.1538, 0.0385, 0, 0.66, 0.0, 873, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "PAYPAL_ENDPOINT", "arg_names": [], "import_names":...
[]
#!/usr/bin/env python # -*- coding: latin-1 -*- import logging from google.appengine.ext import webapp from google.appengine.ext.webapp.mail_handlers import InboundMailHandler from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.api import xmpp from google.appengine.ext.webapp import xmpp_han...
ajibawa-2023/Python-Code-Large/train/row_96819
20
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_96819:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1034, 0.0345, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96819:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96819:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96819:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_96819:Assign_L13_C8"}, {"f": "ajibawa-2023/Python-...
import wsgiref.handlers from google.appengine.ext import webapp from main import BaseHandler from google.appengine.ext.webapp import util class HomeHandler(BaseHandler): def get(self): self.render(u'example',) application = webapp.WSGIApplication([ (r"/example", HomeHandler)])
ajibawa-2023/Python-Code-Large/train/row_96820
8
10
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_96820:Import_L1_C0", "label": "wsgiref.handlers import wsgiref.handlers", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1, 0.1, 0, 0.66, 0.0, 709, 0, 1, 0, 0, 709, 0, 0], "semantic": {"name": "wsgiref.handlers", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_96820:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_96820:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_96820:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_96820:Expr_L7_C8"}]