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
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97363
33
105
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_97363:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1619, 0.0476, 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_97363:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97363:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97363:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97363:Expr_L63_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97364
46
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97364:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1604, 0.0472, 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_97364:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97364:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97364:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97364:FunctionDef_L35_C2"}, {"f": "ajibawa-2023/Python-Code-...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_97365
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_97365:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97366
63
124
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_97366:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1371, 0.0403, 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_97366:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97366:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97366:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97366:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Cod...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
ajibawa-2023/Python-Code-Large/train/row_97368
57
172
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_97368:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0814, 0.1105, 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_97368:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97368:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97368:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97368:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97369
114
303
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_97369:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 58], "level": 0, "parent": null, "vector": [8, 0, 0.1205, 0.1452, 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_97369:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97369:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97369:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97369:FunctionDef_L71_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97370
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97370:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 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_97370:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97370:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97370:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97370:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97371
201
483
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_97371:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0342, 0.0083, 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_97371:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97371:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97371:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97371:ImportFrom_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97373
55
135
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_97373:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1259, 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...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97373:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97373:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97373:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97373:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97375
28
63
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_97375:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.2619, 0.0635, 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_97375:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97375:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97375:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97375:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97376
29
56
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_97376:Import_L15_C0", "label": "apiclient import apiclient", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2679, 0.0179, 0, 0.66, 0.0, 629, 0, 1, 0, 0, 629, 0, 0], "semantic": {"name": "apiclient", "arg_names": [], "import_names": ["a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97376:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97376:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97376:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97376:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Cod...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_97377
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_97377:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_97378
154
385
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_97378:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0519, 0.0182, 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_97378:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97378:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97378:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97378:FunctionDef_L53_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_97379
56
123
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_97379:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1545, 0.0407, 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_97379:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97379:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97379:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97379:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
ajibawa-2023/Python-Code-Large/train/row_97380
43
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97380:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0318, 0.0545, 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_97380:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97380:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97380:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97380:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Co...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
ajibawa-2023/Python-Code-Large/train/row_97382
213
438
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_97382:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 31], "level": 0, "parent": null, "vector": [8, 0, 0.0365, 0.0708, 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_97382:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97382:Expr_L97_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97382:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97382:Assign_L102_C4"}, {"f": "ajibawa-2023/Python-Cod...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
ajibawa-2023/Python-Code-Large/train/row_97383
115
168
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_97383:Import_L1_C0", "label": "Cookie import Cookie", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.006, 0.006, 0, 0.66, 0.0, 32, 0, 1, 0, 0, 32, 0, 0], "semantic": {"name": "Cookie", "arg_names": [], "import_names": ["Cookie"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97383:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97383:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97383:FunctionDef_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_97383:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
ajibawa-2023/Python-Code-Large/train/row_97384
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_97384:Assign_L3_C0", "label": "manual_verstr =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 189, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "manual_verstr", "arg_names": [], "import_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97384:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97384:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97384:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97384:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_97385
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_97385:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.2927, 0.561, 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_97385:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97385:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97385:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97385:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_97386
9
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97386:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.575, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97386:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97386:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97386:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97386:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
ajibawa-2023/Python-Code-Large/train/row_97388
112
147
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_97388:Import_L3_C0", "label": "re import re", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0068, 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_97388:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97388:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97388:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_97388:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#! /usr/bin/python # $Id: testupnpigd.py,v 1.4 2008/10/11 10:27:20 nanard Exp $ # MiniUPnP project # Author : Thomas Bernard # This Sample code is public domain. # website : http://miniupnp.tuxfamily.org/ # import the python miniupnpc module import miniupnpc import socket import BaseHTTPServer # function definition d...
ajibawa-2023/Python-Code-Large/train/row_97389
15
19
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_97389:Import_L1_C0", "label": "miniupnpc import miniupnpc", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 772, 0, 1, 0, 0, 772, 0, 0], "semantic": {"name": "miniupnpc", "arg_names": [], "import_names": ["mini...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97389:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97389:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97389:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97389:While_L7_C1"}, {"f": "ajibawa-2023/Python-Code-La...
#! /usr/bin/python # $Id: setup.py,v 1.3 2009/04/17 20:59:42 nanard Exp $ # the MiniUPnP Project (c) 2007 Thomas Bernard # http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/ # # python script to build the miniupnpc module under unix # # replace libminiupnpc.a by libminiupnpc.so for shared library usage from dis...
ajibawa-2023/Python-Code-Large/train/row_97390
2
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97390:ImportFrom_L9_C0", "label": "from distutils.core import setup, Extension", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.6, 0.0667, 0, 0.66, 0.0, 152, 0, 2, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [],...
[]
#! /usr/bin/python # $Id: setupmingw32.py,v 1.1 2007/06/12 23:04:13 nanard Exp $ # the MiniUPnP Project (c) 2007 Thomas Bernard # http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/ # # python script to build the miniupnpc module under unix # from distutils.core import setup, Extension setup(name="miniupnpc", ve...
ajibawa-2023/Python-Code-Large/train/row_97391
2
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97391:ImportFrom_L8_C0", "label": "from distutils.core import setup, Extension", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.5333, 0.0667, 0, 0.66, 0.0, 152, 0, 2, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": ...
[]
#! /usr/bin/python # MiniUPnP project # Author : Thomas Bernard # This Sample code is public domain. # website : http://miniupnp.tuxfamily.org/ # import the python miniupnpc module import miniupnpc import sys # create the object u = miniupnpc.UPnP() print 'inital(default) values :' print ' discoverdelay', u.discoverd...
ajibawa-2023/Python-Code-Large/train/row_97392
2
3
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_97392:Import_L1_C0", "label": "miniupnpc import miniupnpc", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 772, 0, 1, 0, 0, 772, 0, 0], "semantic": {"name": "miniupnpc", "arg_names": [], "import_names": ["mini...
[]
#! /usr/bin/python import dbus bus = dbus.SessionBus() proxy = bus.get_object('org.xchat.service', '/org/xchat/Remote') remote = dbus.Interface(proxy, 'org.xchat.connection') path = remote.Connect ("example.py", "Python example", "Example of a D-Bus client written in python", "1.0") proxy =...
ajibawa-2023/Python-Code-Large/train/row_97393
19
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_97393:Import_L3_C0", "label": "dbus import dbus", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1071, 0.0357, 0, 0.66, 0.0, 551, 0, 1, 0, 0, 551, 0, 0], "semantic": {"name": "dbus", "arg_names": [], "import_names": ["dbus"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97393:While_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97393:Assign_L17_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97393:While_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97393:Expr_L18_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train...
print("only a test")
ajibawa-2023/Python-Code-Large/train/row_97394
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_97394:Expr_L2_C0", "label": "print()", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 1.0, 0.5, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", "anno...
[]
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus & ...
ajibawa-2023/Python-Code-Large/train/row_97396
18
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_97396:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0345, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97396:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97396:Expr_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97396:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97396:Expr_L9_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97396...
from scipy.sparse import coo_matrix from scipy.io import mmwrite from numpy.random import permutation M = N = 10 for nnz in [0, 1, 2, 5, 8, 10, 15, 20, 30, 50, 80, 100]: P = permutation(M * N)[:nnz] I = P / N J = P % N V = permutation(nnz) + 1 A = coo_matrix( (V,(I,J)) , shape=(M,N)) filename ...
ajibawa-2023/Python-Code-Large/train/row_97397
12
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97397:ImportFrom_L1_C0", "label": "from scipy.sparse import coo_matrix", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0667, 0.0667, 0, 0.66, 0.0, 683, 0, 1, 0, 0, 683, 0, 0], "semantic": {"name": "scipy.sparse", "arg_names": [], "impor...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97397:For_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97397:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97397:For_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97397:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
import os import inspect # try to import an environment first try: Import('env') except: exec open("../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # on windows we have to do /bi...
ajibawa-2023/Python-Code-Large/train/row_97398
34
57
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97398:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0175, 0.0175, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97398:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97398:Expr_L6_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97398:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97398:Expr_L8_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97398...
import os import glob from warnings import warn cusp_abspath = os.path.abspath("../../cusp/") # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # this function builds a trivial source file from a Cusp header def trivial_source_from_header(...
ajibawa-2023/Python-Code-Large/train/row_97399
36
71
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_97399:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0141, 0.0141, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97399:Try_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97399:Expr_L9_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97399:Try_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97399:Expr_L11_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9739...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
ajibawa-2023/Python-Code-Large/train/row_97400
18
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_97400:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0345, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97400:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97400:Expr_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97400:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97400:Expr_L9_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97400...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
ajibawa-2023/Python-Code-Large/train/row_97401
18
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_97401:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0345, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97401:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97401:Expr_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97401:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97401:Expr_L9_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97401...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
ajibawa-2023/Python-Code-Large/train/row_97402
18
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_97402:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0345, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97402:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97402:Expr_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97402:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97402:Expr_L9_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97402...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
ajibawa-2023/Python-Code-Large/train/row_97403
18
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_97403:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0345, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97403:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97403:Expr_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97403:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97403:Expr_L9_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97403...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
ajibawa-2023/Python-Code-Large/train/row_97404
18
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_97404:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0345, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97404:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97404:Expr_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97404:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97404:Expr_L9_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97404...
#!/usr/bin/env python import os,csv device_id = '0' # index of the device to use binary_filename = '../spmv' # command used to run the tests output_file = 'benchmark_output.log' # file where results are stored # The unstructured matrices are available online: # http://www.nvidia.com/con...
ajibawa-2023/Python-Code-Large/train/row_97405
49
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97405:Import_L2_C0", "label": "os import os, csv", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0189, 0.0094, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "csv"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97405:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97405:Expr_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97405:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97405:For_L48_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
ajibawa-2023/Python-Code-Large/train/row_97406
18
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_97406:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0345, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97406:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97406:Expr_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97406:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97406:Expr_L9_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97406...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
ajibawa-2023/Python-Code-Large/train/row_97407
18
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_97407:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0345, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97407:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97407:Expr_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97407:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97407:Expr_L9_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97407...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
ajibawa-2023/Python-Code-Large/train/row_97408
18
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_97408:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0345, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97408:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97408:Expr_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97408:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97408:Expr_L9_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97408...
#!/usr/bin/python # # Copyright 2012 Facebook # # 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 agre...
ajibawa-2023/Python-Code-Large/train/row_97409
4
5
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_97409:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": "", ...
[]
#!/usr/bin/python # # Copyright 2012 Facebook # # 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 agre...
ajibawa-2023/Python-Code-Large/train/row_97410
4
5
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_97410:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": "", ...
[]
#!/usr/bin/python # # Copyright 2012 Facebook # # 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 agre...
ajibawa-2023/Python-Code-Large/train/row_97411
4
5
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_97411:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": "", ...
[]
#!/usr/bin/python # # Copyright 2012 Facebook # # 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 agre...
ajibawa-2023/Python-Code-Large/train/row_97412
4
5
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_97412:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": "", ...
[]
#!/usr/bin/env python import time t = time.time() u = time.gmtime(t) s = time.strftime('%a, %e %b %Y %T GMT', u) print 'Content-Type: text/javascript' print 'Cache-Control: no-cache' print 'Date: ' + s print 'Expires: ' + s print '' print 'var timeskew = new Date().getTime() - ' + str(t*1000) + ';'
ajibawa-2023/Python-Code-Large/train/row_97413
10
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_97413:Import_L2_C0", "label": "time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1818, 0.0909, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_n...
[]
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_97414
133
305
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_97414:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0557, 0.0033, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97414:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97414:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97414:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97414:Assign_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_97415
218
605
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_97415:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0281, 0.0017, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97415:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97415:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97415:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97415:Return_L54_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this l...
ajibawa-2023/Python-Code-Large/train/row_97417
51
187
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_97417:Expr_L32_C0", "label": "expression", "type": "expression", "loc": [32, 36], "level": 0, "parent": null, "vector": [8, 0, 0.1818, 0.0267, 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_97417:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97417:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97417:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97417:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
ajibawa-2023/Python-Code-Large/train/row_97419
86
244
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_97419:Import_L18_C0", "label": "base64 import base64", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0738, 0.0041, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97419:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97419:Expr_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97419:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97419:FunctionDef_L39_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
ajibawa-2023/Python-Code-Large/train/row_97421
155
378
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_97421:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0437, 0.0741, 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_97421:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97421:Expr_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97421:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97421:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97422
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97422:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 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_97422:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97422:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97422:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97422:Try_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97424
396
1,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_97424:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0145, 0.0035, 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_97424:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97424:ImportFrom_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97424:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97424:ImportFrom_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97425
33
105
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_97425:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1619, 0.0476, 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_97425:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97425:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97425:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97425:Expr_L63_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97426
46
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97426:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1604, 0.0472, 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_97426:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97426:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97426:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97426:FunctionDef_L35_C2"}, {"f": "ajibawa-2023/Python-Code-...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_97427
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_97427:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97428
63
124
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_97428:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1371, 0.0403, 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_97428:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97428:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97428:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97428:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Cod...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
ajibawa-2023/Python-Code-Large/train/row_97430
57
172
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_97430:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0814, 0.1105, 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_97430:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97430:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97430:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97430:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97431
114
303
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_97431:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 58], "level": 0, "parent": null, "vector": [8, 0, 0.1205, 0.1452, 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_97431:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97431:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97431:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97431:FunctionDef_L71_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97432
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97432:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 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_97432:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97432:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97432:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97432:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97433
201
483
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_97433:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0342, 0.0083, 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_97433:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97433:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97433:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97433:ImportFrom_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97435
55
135
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_97435:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1259, 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...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97435:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97435:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97435:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97435:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97437
28
63
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_97437:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.2619, 0.0635, 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_97437:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97437:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97437:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97437:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_97438
29
56
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_97438:Import_L15_C0", "label": "apiclient import apiclient", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2679, 0.0179, 0, 0.66, 0.0, 629, 0, 1, 0, 0, 629, 0, 0], "semantic": {"name": "apiclient", "arg_names": [], "import_names": ["a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97438:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97438:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97438:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97438:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Cod...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_97439
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_97439:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_97440
154
385
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_97440:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0519, 0.0182, 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_97440:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97440:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97440:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97440:FunctionDef_L53_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_97441
56
123
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_97441:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1545, 0.0407, 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_97441:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97441:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97441:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97441:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
ajibawa-2023/Python-Code-Large/train/row_97442
43
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97442:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0318, 0.0545, 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_97442:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97442:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97442:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97442:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Co...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
ajibawa-2023/Python-Code-Large/train/row_97444
213
438
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_97444:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 31], "level": 0, "parent": null, "vector": [8, 0, 0.0365, 0.0708, 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_97444:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97444:Expr_L97_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97444:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97444:Assign_L102_C4"}, {"f": "ajibawa-2023/Python-Cod...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
ajibawa-2023/Python-Code-Large/train/row_97445
115
168
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_97445:Import_L1_C0", "label": "Cookie import Cookie", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.006, 0.006, 0, 0.66, 0.0, 32, 0, 1, 0, 0, 32, 0, 0], "semantic": {"name": "Cookie", "arg_names": [], "import_names": ["Cookie"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97445:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97445:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97445:FunctionDef_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_97445:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
ajibawa-2023/Python-Code-Large/train/row_97446
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_97446:Assign_L3_C0", "label": "manual_verstr =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 189, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "manual_verstr", "arg_names": [], "import_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97446:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97446:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97446:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97446:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_97447
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_97447:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.2927, 0.561, 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_97447:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97447:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97447:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97447:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_97448
9
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97448:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.575, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97448:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97448:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97448:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97448:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
ajibawa-2023/Python-Code-Large/train/row_97450
112
147
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_97450:Import_L3_C0", "label": "re import re", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0068, 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_97450:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97450:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97450:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_97450:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
ajibawa-2023/Python-Code-Large/train/row_97451
38
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_97451:Import_L26_C0", "label": "os import os", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.3514, 0.0135, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97451:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97451:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97451:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97451:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
import sys, os, popen2 def cmd(comando): out = popen2.popen3(comando) try: return out[0].read() except: print "Imposible de ejecutar Comando: <"+comando+">" print raw_input("Nos vemos luego, enter para salir") sys.exit(1) def cargar(): directoriosTest = cmd("cd .. && ls Source/*Tests/bin/Debug/*.Tests....
ajibawa-2023/Python-Code-Large/train/row_97453
86
118
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97453:Import_L1_C0", "label": "sys import sys, os, popen2", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0085, 0.0085, 0, 0.66, 0.0, 509, 0, 3, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "os"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97453:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97453:Assign_L4_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97453:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97453:Try_L5_C1"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') fin2=open('time_err_n3.dat') todo=fin.read().split('\n') todo2=fin2.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] ys2=[float(x.split()[1]) for x in todo2 if x] yer...
ajibawa-2023/Python-Code-Large/train/row_97454
19
23
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_97454:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1304, 0.0435, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') todo=fin.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] yerr=[float(x.split()[2]) for x in todo if x] title("Tiempo de ejecucion de $cw$") xlabel("Cantidad de Perso...
ajibawa-2023/Python-Code-Large/train/row_97455
15
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_97455:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') fin2=open('time_err_n3.dat') todo=fin.read().split('\n') todo2=fin2.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] ys2=[float(x.split()[1]) for x in todo2 if x] yer...
ajibawa-2023/Python-Code-Large/train/row_97456
19
23
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_97456:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1304, 0.0435, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('counts.dat') todo=fin.read().split('\n') xs=[int(x.split()[0]) for x in todo if x] ys=[int(x.split()[1]) for x in todo if x] title("Cantidad de operaciones de $cw$") xlabel("Cantidad de Personas") ylabel("Cantidad de operaciones") plot(xs,...
ajibawa-2023/Python-Code-Large/train/row_97457
14
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_97457:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1765, 0.0588, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="cw" tamanios_entrada=sorted(range(1,45)*2) def prueba(tamanio_entrada): out=str(tamanio_entrada) for i in range(tamani...
ajibawa-2023/Python-Code-Large/train/row_97458
22
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_97458:Import_L1_C0", "label": "getopt import getopt, sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0385, 0, 0.66, 0.0, 588, 0, 2, 0, 0, 588, 0, 0], "semantic": {"name": "getopt", "arg_names": [], "import_names": ["getopt",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97458:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97458:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97458:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97458:For_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="cw_n3" tamanios_entrada=sorted(range(1,45)*2) def prueba(tamanio_entrada): out=str(tamanio_entrada) for i in range(tam...
ajibawa-2023/Python-Code-Large/train/row_97459
22
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_97459:Import_L1_C0", "label": "getopt import getopt, sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0385, 0, 0.66, 0.0, 588, 0, 2, 0, 0, 588, 0, 0], "semantic": {"name": "getopt", "arg_names": [], "import_names": ["getopt",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97459:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97459:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97459:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97459:For_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin2=open('time_err_n3.dat') todo2=fin2.read().split('\n') xs=[float(x.split()[0]) for x in todo2 if x] ys2=[float(x.split()[1]) for x in todo2 if x] yerr2=[float(x.split()[2]) for x in todo2 if x] title("Tiempo de ejecución de algoritmo cubico de $...
ajibawa-2023/Python-Code-Large/train/row_97460
14
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_97460:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin2=open('time_err_n3.dat') todo2=fin2.read().split('\n') xs=[float(x.split()[0]) for x in todo2 if x] ys2=[float(x.split()[1]) for x in todo2 if x] yerr2=[float(x.split()[2]) for x in todo2 if x] title("Tiempo de ejecución de algoritmo cubico de $...
ajibawa-2023/Python-Code-Large/train/row_97461
14
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_97461:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="cw" tamanios_entrada=sorted(range(1,45)*2) def prueba(tamanio_entrada): out=str(tamanio_entrada) for i in range(tamani...
ajibawa-2023/Python-Code-Large/train/row_97462
22
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_97462:Import_L1_C0", "label": "getopt import getopt, sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0385, 0, 0.66, 0.0, 588, 0, 2, 0, 0, 588, 0, 0], "semantic": {"name": "getopt", "arg_names": [], "import_names": ["getopt",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97462:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97462:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97462:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97462:For_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') todo=fin.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] yerr=[float(x.split()[2]) for x in todo if x] title("Tiempo de ejecucion de $cw$") xlabel("Cantidad de Perso...
ajibawa-2023/Python-Code-Large/train/row_97463
15
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_97463:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('counts.dat') todo=fin.read().split('\n') xs=[int(x.split()[0]) for x in todo if x] ys=[int(x.split()[1]) for x in todo if x] title("Cantidad de operaciones de $cw$") xlabel("Cantidad de Personas") ylabel("Cantidad de operaciones") plot(xs,...
ajibawa-2023/Python-Code-Large/train/row_97464
14
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_97464:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1765, 0.0588, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') todo=fin.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] yerr=[float(x.split()[2]) for x in todo if x] title("Tiempo de ejecucion de $matching$") xlabel("Tamano de e...
ajibawa-2023/Python-Code-Large/train/row_97465
14
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_97465:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1765, 0.0588, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('counts.dat') todo=fin.read().split('\n') xs=[int(x.split()[0]) for x in todo if x] ys=[int(x.split()[1]) for x in todo if x] title("Cantidad de operaciones de $matching$") xlabel("Tamano de entrada") ylabel("Cantidad de operaciones") plot(...
ajibawa-2023/Python-Code-Large/train/row_97466
13
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_97466:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0625, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="matching" tamanios_entrada=sorted(range(3,300)[::5]) def prueba(tamanio_entrada): return str(tamanio_entrada)+' '+' '.j...
ajibawa-2023/Python-Code-Large/train/row_97467
19
21
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_97467:Import_L1_C0", "label": "getopt import getopt, sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0476, 0.0476, 0, 0.66, 0.0, 588, 0, 2, 0, 0, 588, 0, 0], "semantic": {"name": "getopt", "arg_names": [], "import_names": ["getopt",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97467:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97467:Return_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97467:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97467:Assign_L8_C1"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="matching" tamanios_entrada=sorted(range(3,300)[::5]) def prueba(tamanio_entrada): return str(tamanio_entrada)+' '+' '.j...
ajibawa-2023/Python-Code-Large/train/row_97468
19
21
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_97468:Import_L1_C0", "label": "getopt import getopt, sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0476, 0.0476, 0, 0.66, 0.0, 588, 0, 2, 0, 0, 588, 0, 0], "semantic": {"name": "getopt", "arg_names": [], "import_names": ["getopt",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97468:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97468:Return_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97468:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97468:Assign_L8_C1"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') todo=fin.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] yerr=[float(x.split()[2]) for x in todo if x] title("Tiempo de ejecucion de $matching$") xlabel("Tamano de e...
ajibawa-2023/Python-Code-Large/train/row_97469
14
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_97469:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1765, 0.0588, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('counts.dat') todo=fin.read().split('\n') xs=[int(x.split()[0]) for x in todo if x] ys=[int(x.split()[1]) for x in todo if x] title("Cantidad de operaciones de $matching$") xlabel("Tamano de entrada") ylabel("Cantidad de operaciones") plot(...
ajibawa-2023/Python-Code-Large/train/row_97470
13
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_97470:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0625, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python from Tkinter import * from random import * from math import sqrt import subprocess def prueba(tamanio_entrada): cant=int(random()*tamanio_entrada) w=randint(3,int(2*sqrt(tamanio_entrada))) h=tamanio_entrada/w vs=[] for v in range(cant): orient=choice(['-','|']) if orient=='|': l=rand...
ajibawa-2023/Python-Code-Large/train/row_97471
59
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_97471:ImportFrom_L3_C0", "label": "from Tkinter import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0405, 0.0135, 0, 0.66, 0.0, 368, 0, 1, 0, 0, 368, 0, 0], "semantic": {"name": "Tkinter", "arg_names": [], "import_names": ["*"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97471:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97471:Assign_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97471:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97471:Assign_L10_C1"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') todo=fin.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] yerr=[float(x.split()[2]) for x in todo if x] title("Tiempo de ejecucion de $flood$") xlabel("Tamano de entr...
ajibawa-2023/Python-Code-Large/train/row_97472
14
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_97472:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1765, 0.0588, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('counts.dat') todo=fin.read().split('\n') xs=[int(x.split()[0]) for x in todo if x] ys=[int(x.split()[1]) for x in todo if x] title("Cantidad de operaciones de $flood$") xlabel("Tamano de entrada") ylabel("Cantidad de operaciones") plot(xs,...
ajibawa-2023/Python-Code-Large/train/row_97473
13
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_97473:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0625, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed,choice from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="flood" tamanios_entrada=sorted(range(100,5000)[::35]) def prueba(tamanio_entrada): cant=int(random()*tamanio_en...
ajibawa-2023/Python-Code-Large/train/row_97474
41
42
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97474:Import_L1_C0", "label": "getopt import getopt, sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0238, 0.0238, 0, 0.66, 0.0, 588, 0, 2, 0, 0, 588, 0, 0], "semantic": {"name": "getopt", "arg_names": [], "import_names": ["getopt",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97474:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97474:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97474:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97474:Assign_L7_C1"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed,choice from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="flood" tamanios_entrada=sorted(range(100,5000)[::35]) def prueba(tamanio_entrada): cant=int(random()*tamanio_en...
ajibawa-2023/Python-Code-Large/train/row_97475
41
42
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_97475:Import_L1_C0", "label": "getopt import getopt, sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0238, 0.0238, 0, 0.66, 0.0, 588, 0, 2, 0, 0, 588, 0, 0], "semantic": {"name": "getopt", "arg_names": [], "import_names": ["getopt",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97475:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97475:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97475:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97475:Assign_L7_C1"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') todo=fin.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] yerr=[float(x.split()[2]) for x in todo if x] title("Tiempo de ejecucion de $flood$") xlabel("Tamano de entr...
ajibawa-2023/Python-Code-Large/train/row_97476
14
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_97476:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1765, 0.0588, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]
#!/usr/bin/env python from Tkinter import * from random import * from math import sqrt import subprocess def prueba(tamanio_entrada): cant=int(random()*tamanio_entrada) w=randint(3,int(2*sqrt(tamanio_entrada))) h=tamanio_entrada/w vs=[] for v in range(cant): orient=choice(['-','|']) if orient=='|': l=rand...
ajibawa-2023/Python-Code-Large/train/row_97477
59
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_97477:ImportFrom_L3_C0", "label": "from Tkinter import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0405, 0.0135, 0, 0.66, 0.0, 368, 0, 1, 0, 0, 368, 0, 0], "semantic": {"name": "Tkinter", "arg_names": [], "import_names": ["*"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_97477:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97477:Assign_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_97477:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_97477:Assign_L10_C1"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('counts.dat') todo=fin.read().split('\n') xs=[int(x.split()[0]) for x in todo if x] ys=[int(x.split()[1]) for x in todo if x] title("Cantidad de operaciones de $flood$") xlabel("Tamano de entrada") ylabel("Cantidad de operaciones") plot(xs,...
ajibawa-2023/Python-Code-Large/train/row_97478
13
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_97478:ImportFrom_L3_C0", "label": "from matplotlib.pyplot import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0625, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "impo...
[]