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
from google.appengine._internal.django.core.management.base import NoArgsCommand def module_to_dict(module, omittable=lambda k: k.startswith('_')): "Converts a module namespace to a Python dictionary. Used by get_settings_diff." return dict([(k, repr(v)) for k, v in module.__dict__.items() if not omittable(k)]...
ajibawa-2023/Python-Code-Large/train/row_84455
21
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_84455:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.core.management.base import NoArgsCommand", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0312, 0.0312, 0, 0.66, 0.0, 329, 0, 1, 0, 0, 329, 0, 0], "semantic": {"n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84455:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84455:Expr_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84455:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84455:Return_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import keyword from optparse import make_option from google.appengine._internal.django.core.management.base import NoArgsCommand, CommandError from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(NoArgsCommand): help = "Introspects the database tables in the given database ...
ajibawa-2023/Python-Code-Large/train/row_84456
99
167
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84456:Import_L1_C0", "label": "keyword import keyword", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.006, 0.006, 0, 0.66, 0.0, 454, 0, 1, 0, 0, 454, 0, 0], "semantic": {"name": "keyword", "arg_names": [], "import_names": ["keyword"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84456:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84456:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84456:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84456:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
from optparse import make_option from google.appengine._internal.django.core.management.base import AppCommand from google.appengine._internal.django.core.management.sql import sql_reset from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(AppCommand): help = "Prints the DR...
ajibawa-2023/Python-Code-Large/train/row_84458
10
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84458:ImportFrom_L1_C0", "label": "from optparse import make_option", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.05, 0.05, 0, 0.66, 0.0, 323, 0, 1, 0, 0, 323, 0, 0], "semantic": {"name": "optparse", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84458:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84458:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84458:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84458:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
from optparse import make_option from google.appengine._internal.django.core.management.base import BaseCommand, CommandError from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(BaseCommand): help = ("Runs the command-line client for specified database, or the " "d...
ajibawa-2023/Python-Code-Large/train/row_84459
11
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84459:ImportFrom_L1_C0", "label": "from optparse import make_option", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.037, 0.037, 0, 0.66, 0.0, 323, 0, 1, 0, 0, 323, 0, 0], "semantic": {"name": "optparse", "arg_names": [], "import_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84459:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84459:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84459:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84459:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
from google.appengine._internal.django.core.management.base import NoArgsCommand class Command(NoArgsCommand): help = "Validates all installed models." requires_model_validation = False def handle_noargs(self, **options): self.validate(display_num_errors=True)
ajibawa-2023/Python-Code-Large/train/row_84460
6
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84460:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.core.management.base import NoArgsCommand", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.1111, 0, 0.66, 0.0, 329, 0, 1, 0, 0, 329, 0, 0], "semantic": {"n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84460:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84460:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84460:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84460:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from google.appengine._internal.django.core.management.base import BaseCommand class Command(BaseCommand): help = "Runs this project as a FastCGI application. Requires flup." args = '[various KEY=val options, use `runfcgi help` for help]' def handle(self, *args, **options): from google.appengine._...
ajibawa-2023/Python-Code-Large/train/row_84461
14
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84461:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.core.management.base import BaseCommand", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.05, 0.05, 0, 0.66, 0.0, 329, 0, 1, 0, 0, 329, 0, 0], "semantic": {"name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84461:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84461:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84461:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84461:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from optparse import make_option from google.appengine._internal.django.core.management.base import AppCommand from google.appengine._internal.django.core.management.sql import sql_indexes from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(AppCommand): help = "Prints the ...
ajibawa-2023/Python-Code-Large/train/row_84462
10
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84462:ImportFrom_L1_C0", "label": "from optparse import make_option", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.05, 0.05, 0, 0.66, 0.0, 323, 0, 1, 0, 0, 323, 0, 0], "semantic": {"name": "optparse", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84462:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84462:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84462:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84462:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
from optparse import make_option from google.appengine._internal.django.core.management.base import AppCommand from google.appengine._internal.django.core.management.sql import sql_create from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(AppCommand): help = "Prints the C...
ajibawa-2023/Python-Code-Large/train/row_84465
10
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_84465:ImportFrom_L1_C0", "label": "from optparse import make_option", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 323, 0, 1, 0, 0, 323, 0, 0], "semantic": {"name": "optparse", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84465:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84465:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84465:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84465:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
from optparse import make_option from google.appengine._internal.django.core.management.base import NoArgsCommand from google.appengine._internal.django.core.management.sql import sql_flush from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(NoArgsCommand): help = "Returns...
ajibawa-2023/Python-Code-Large/train/row_84466
10
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_84466:ImportFrom_L1_C0", "label": "from optparse import make_option", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 323, 0, 1, 0, 0, 323, 0, 0], "semantic": {"name": "optparse", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84466:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84466:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84466:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84466:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
from optparse import make_option from google.appengine._internal.django.core.management.base import AppCommand from google.appengine._internal.django.db import connections, models, DEFAULT_DB_ALIAS class Command(AppCommand): help = 'Prints the SQL statements for resetting sequences for the given app name(s).' ...
ajibawa-2023/Python-Code-Large/train/row_84467
10
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84467:ImportFrom_L1_C0", "label": "from optparse import make_option", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.05, 0.05, 0, 0.66, 0.0, 323, 0, 1, 0, 0, 323, 0, 0], "semantic": {"name": "optparse", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84467:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84467:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84467:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84467:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from google.appengine._internal.django.core.management.base import BaseCommand from optparse import make_option import sys class Command(BaseCommand): option_list = BaseCommand.option_list + ( make_option('--noinput', action='store_false', dest='interactive', default=True, help='Tells Django to...
ajibawa-2023/Python-Code-Large/train/row_84468
23
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_84468:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.core.management.base import BaseCommand", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.025, 0.025, 0, 0.66, 0.0, 329, 0, 1, 0, 0, 329, 0, 0], "semantic": {"name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84468:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84468:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84468:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84468:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
from optparse import make_option from google.appengine._internal.django.core.management.base import LabelCommand from google.appengine._internal.django.db import connections, transaction, models, DEFAULT_DB_ALIAS class Command(LabelCommand): help = "Creates the table needed to use the SQL cache backend." args...
ajibawa-2023/Python-Code-Large/train/row_84470
36
52
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84470:ImportFrom_L1_C0", "label": "from optparse import make_option", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0192, 0.0192, 0, 0.66, 0.0, 323, 0, 1, 0, 0, 323, 0, 0], "semantic": {"name": "optparse", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84470:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84470:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84470:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84470:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from google.appengine._internal.django.core.management.base import copy_helper, CommandError, LabelCommand from google.appengine._internal.django.utils.importlib import import_module import os import re from random import choice class Command(LabelCommand): help = "Creates a Django project directory structure for ...
ajibawa-2023/Python-Code-Large/train/row_84471
23
39
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84471:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.core.management.base import copy_helper, CommandError, LabelCommand", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0256, 0.0256, 0, 0.66, 0.0, 329, 0, 3, 0, 0, 3...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84471:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84471:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84471:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84471:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import os from google.appengine._internal.django.core.management.base import copy_helper, CommandError, LabelCommand from google.appengine._internal.django.utils.importlib import import_module class Command(LabelCommand): help = "Creates a Django app directory structure for the given app name in the current direc...
ajibawa-2023/Python-Code-Large/train/row_84472
24
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84472:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0213, 0.0213, 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_84472:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84472:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84472:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84472:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from optparse import make_option from google.appengine._internal.django.core.management.base import AppCommand from google.appengine._internal.django.core.management.sql import sql_delete from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(AppCommand): help = "Prints the D...
ajibawa-2023/Python-Code-Large/train/row_84473
10
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_84473:ImportFrom_L1_C0", "label": "from optparse import make_option", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 323, 0, 1, 0, 0, 323, 0, 0], "semantic": {"name": "optparse", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84473:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84473:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84473:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84473:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
from google.appengine._internal.django.core.management.base import BaseCommand from optparse import make_option class Command(BaseCommand): option_list = BaseCommand.option_list + ( make_option('--addrport', action='store', dest='addrport', type='string', default='', help='port num...
ajibawa-2023/Python-Code-Large/train/row_84474
16
33
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84474:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.core.management.base import BaseCommand", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0303, 0, 0.66, 0.0, 329, 0, 1, 0, 0, 329, 0, 0], "semantic": {"nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84474:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84474:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84474:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84474:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
from optparse import make_option from google.appengine._internal.django.core.management.base import AppCommand from google.appengine._internal.django.core.management.sql import sql_custom from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(AppCommand): help = "Prints the c...
ajibawa-2023/Python-Code-Large/train/row_84475
10
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_84475:ImportFrom_L1_C0", "label": "from optparse import make_option", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 323, 0, 1, 0, 0, 323, 0, 0], "semantic": {"name": "optparse", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84475:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84475:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84475:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84475:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
from google.appengine._internal.django.core.management.base import AppCommand, CommandError class Command(AppCommand): help = "RENAMED: see 'sqlcustom'" def handle(self, *apps, **options): raise CommandError("This command has been renamed. Use the 'sqlcustom' command instead.")
ajibawa-2023/Python-Code-Large/train/row_84477
4
7
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84477:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.core.management.base import AppCommand, CommandError", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.1429, 0, 0.66, 0.0, 329, 0, 2, 0, 0, 329, 0, 0], "sem...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84477:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84477:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84477:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84477:FunctionDef_L6_C4"}]
from google.appengine._internal.django.core.management.base import BaseCommand, CommandError from optparse import make_option import os import sys class Command(BaseCommand): option_list = BaseCommand.option_list + ( make_option('--noreload', action='store_false', dest='use_reloader', default=True, ...
ajibawa-2023/Python-Code-Large/train/row_84478
52
83
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84478:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.core.management.base import BaseCommand, CommandError", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.012, 0.012, 0, 0.66, 0.0, 329, 0, 2, 0, 0, 329, 0, 0], "sema...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84478:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84478:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84478:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84478:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
import datetime from google.appengine._internal.django.core.management.base import NoArgsCommand class Command(NoArgsCommand): help = "Can be run as a cronjob or directly to clean out old data from the database (only expired sessions at the moment)." def handle_noargs(self, **options): from google.app...
ajibawa-2023/Python-Code-Large/train/row_84479
9
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_84479:Import_L1_C0", "label": "datetime import datetime", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0909, 0.0909, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetim...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84479:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84479:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84479:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84479:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import os import re from google.appengine._internal.django.conf import settings from google.appengine._internal.django.core.management.base import CommandError from google.appengine._internal.django.db import models from google.appengine._internal.django.db.models import get_models def sql_create(app, style, connecti...
ajibawa-2023/Python-Code-Large/train/row_84480
110
181
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84480:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0055, 0.0055, 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_84480:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84480:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84480:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84480:If_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
""" Sets up the terminal color scheme. """ import os import sys from google.appengine._internal.django.utils import termcolors def supports_color(): """ Returns True if the running system's terminal supports color, and False otherwise. """ unsupported_platform = (sys.platform in ('win32', 'Pocket...
ajibawa-2023/Python-Code-Large/train/row_84481
32
50
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84481:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.04, 0.06, 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_84481:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84481:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84481:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84481:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code...
import sys from google.appengine._internal.django.contrib.contenttypes.generic import GenericForeignKey, GenericRelation from google.appengine._internal.django.core.management.color import color_style from google.appengine._internal.django.utils.itercompat import is_iterable try: any except NameError: from go...
ajibawa-2023/Python-Code-Large/train/row_84482
199
302
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84482:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0033, 0.0033, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84482:Try_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84482:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84482:Try_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84482:ImportFrom_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
""" Utility functions for handling images. Requires PIL, as you might imagine. """ from google.appengine._internal.django.core.files import File class ImageFile(File): """ A mixin for use alongside django.core.files.base.File, which provides additional features for dealing with images. """ def _g...
ajibawa-2023/Python-Code-Large/train/row_84487
39
62
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84487:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0484, 0.0806, 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_84487:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84487:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84487:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84487:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-La...
""" The temp module provides a NamedTemporaryFile that can be re-opened on any platform. Most platforms use the standard Python tempfile.TemporaryFile class, but MS Windows users are given a custom class. This is needed because in Windows NT, the default implementation of NamedTemporaryFile uses the O_TEMPORARY flag, ...
ajibawa-2023/Python-Code-Large/train/row_84489
26
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_84489:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0982, 0.1786, 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_84489:If_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84489:ClassDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84489:ClassDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_84489:Expr_L20_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
class FileProxyMixin(object): """ A mixin class used to forward file methods to an underlaying file object. The internal file object has to be called "file":: class FileProxy(FileProxyMixin): def __init__(self, file): self.file = file """ encoding = property(la...
ajibawa-2023/Python-Code-Large/train/row_84490
20
29
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84490:ClassDef_L1_C0", "label": "FileProxyMixin", "type": "class", "loc": [1, 29], "level": 0, "parent": null, "vector": [3, 0, 0.5172, 1.0, 0, 0.66, 0.0, 369, 0, 1, 0, 0, 186, 0, 17], "semantic": {"name": "FileProxyMixin", "arg_names": [], "import_names": [], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84490:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84490:Expr_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84490:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84490:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
import os try: from cStringIO import StringIO except ImportError: from StringIO import StringIO from google.appengine._internal.django.utils.encoding import smart_str, smart_unicode from google.appengine._internal.django.core.files.utils import FileProxyMixin class File(FileProxyMixin): DEFAULT_CHUNK_SIZE...
ajibawa-2023/Python-Code-Large/train/row_84492
84
134
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84492:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0075, 0.0075, 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_84492:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84492:ImportFrom_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84492:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84492:ImportFrom_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
from google.appengine._internal.django.core.files.base import File
ajibawa-2023/Python-Code-Large/train/row_84493
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_84493:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.core.files.base import File", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 1.0, 1.0, 0, 0.66, 0.0, 32, 0, 1, 0, 0, 32, 0, 0], "semantic": {"name": "google.appengin...
[]
""" Portable file locking utilities. Based partially on example by Jonathan Feignberg <jdf@pobox.com> in the Python Cookbook, licensed under the Python Software License. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203 Example Usage:: >>> from google.appengine._internal.django.core.files import...
ajibawa-2023/Python-Code-Large/train/row_84494
36
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84494:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 16], "level": 0, "parent": null, "vector": [8, 0, 0.1214, 0.2286, 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_84494:Try_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84494:Import_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84494:Try_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84494:Import_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # DATE_FORMAT = 'N j, Y' TIME_FORMAT = 'P' DATETIME_FORMAT = 'N j, Y, P' YEAR_MONTH_FORMAT = 'F Y' MONTH_DAY_FORMAT = 'F j' SHORT_DATE_FORMAT = 'm/d/Y' SHORT_DATETIME_FORMAT = 'm/d/Y P' FIRST_DAY_OF_WEEK = 0 # Sunday DAT...
ajibawa-2023/Python-Code-Large/train/row_84495
14
38
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84495:Assign_L5_C0", "label": "DATE_FORMAT =", "type": "assigned_variable", "loc": [5, 5], "level": 0, "parent": null, "vector": [14, 0, 0.1316, 0.0263, 0, 0.66, 0.0, 843, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "DATE_FORMAT", "arg_names": [], "import_names": [], "rh...
[]
#!/usr/bin/env python from google.appengine._internal.django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customiz...
ajibawa-2023/Python-Code-Large/train/row_84496
8
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_84496:ImportFrom_L2_C0", "label": "from google.appengine._internal.django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1818, 0.0909, 0, 0.66, 0.0, 270, 0, 1, 0, 0, 270, 0, 0], "semantic": {"name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84496:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84496:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84496:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84496:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
from google.appengine._internal.django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: # from google.appengine._internal.django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')),...
ajibawa-2023/Python-Code-Large/train/row_84497
2
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84497:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.conf.urls.defaults import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0625, 0.0625, 0, 0.66, 0.0, 538, 0, 1, 0, 0, 538, 0, 0], "semantic": {"name": "google....
[]
# Django settings for {{ project_name }} project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. ...
ajibawa-2023/Python-Code-Large/train/row_84498
19
96
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84498:Assign_L3_C0", "label": "DEBUG =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.0312, 0.0104, 0, 0.66, 0.0, 309, 1, 0, 0, 0, 0, 4, 0], "semantic": {"name": "DEBUG", "arg_names": [], "import_names": [], "rhs_call_name"...
[]
from google.appengine._internal.django.conf.urls.defaults import * urlpatterns = patterns('django.views', (r'^(?P<content_type_id>\d+)/(?P<object_id>.*)/$', 'defaults.shortcut'), )
ajibawa-2023/Python-Code-Large/train/row_84499
2
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_84499:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.conf.urls.defaults import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 538, 0, 1, 0, 0, 538, 0, 0], "semantic": {"name": "google.appeng...
[]
from google.appengine._internal.django.core.urlresolvers import RegexURLPattern, RegexURLResolver from google.appengine._internal.django.core.exceptions import ImproperlyConfigured __all__ = ['handler404', 'handler500', 'include', 'patterns', 'url'] handler404 = 'django.views.defaults.page_not_found' handler500 = 'dj...
ajibawa-2023/Python-Code-Large/train/row_84500
29
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_84500:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.core.urlresolvers import RegexURLPattern, RegexURLResolver", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0238, 0.0238, 0, 0.66, 0.0, 821, 0, 2, 0, 0, 821, 0, 0]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84500:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84500:If_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84500:If_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_84500:If_L12_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
from google.appengine._internal.django.conf.urls.defaults import * urlpatterns = patterns('', (r'^setlang/$', 'django.views.i18n.set_language'), )
ajibawa-2023/Python-Code-Large/train/row_84501
2
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_84501:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.conf.urls.defaults import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 538, 0, 1, 0, 0, 538, 0, 0], "semantic": {"name": "google.appeng...
[]
# Default Django settings. Override these with settings in the module # pointed-to by the DJANGO_SETTINGS_MODULE environment variable. # This is defined here as a do-nothing function because we can't import # django.utils.translation -- that module depends on the settings. gettext_noop = lambda s: s #################...
ajibawa-2023/Python-Code-Large/train/row_84503
116
524
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84503:Assign_L6_C0", "label": "gettext_noop =", "type": "assigned_variable", "loc": [6, 6], "level": 0, "parent": null, "vector": [14, 0, 0.0115, 0.0019, 0, 0.66, 0.0, 651, 9, 0, 0, 0, 0, 0, 0], "semantic": {"name": "gettext_noop", "arg_names": [], "import_names": [], "...
[]
from google.appengine._internal.django.db import models # Create your models here.
ajibawa-2023/Python-Code-Large/train/row_84504
1
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_84504:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.db import models", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 445, 0, 1, 0, 0, 445, 0, 0], "semantic": {"name": "google.appengine._...
[]
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from google.appengine._internal.django.test import TestCase class SimpleTest(TestCase): def test_basic_a...
ajibawa-2023/Python-Code-Large/train/row_84505
7
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_84505:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1522, 0.2609, 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_84505:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84505:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84505:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_84505:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Co...
# Create your views here.
ajibawa-2023/Python-Code-Large/train/row_84506
0
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
""" Parser and utilities for the smart 'if' tag """ import operator # Using a simple top down parser, as described here: # http://effbot.org/zone/simple-top-down-parsing.htm. # 'led' = left denotation # 'nud' = null denotation # 'bp' = binding power (left = lbp, right = rbp) class TokenBase(object): """ Ba...
ajibawa-2023/Python-Code-Large/train/row_84507
101
206
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84507:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0097, 0.0146, 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_84507:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84507:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84507:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84507:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
""" Wrapper class that takes a list of template loaders as an argument and attempts to load templates from them in order, caching the result. """ from google.appengine._internal.django.core.exceptions import ImproperlyConfigured from google.appengine._internal.django.template import TemplateDoesNotExist from google.ap...
ajibawa-2023/Python-Code-Large/train/row_84508
37
59
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84508:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0424, 0.0678, 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_84508:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84508:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84508:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84508:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Cod...
# Wrapper for loading templates from eggs via pkg_resources.resource_string. try: from pkg_resources import resource_string except ImportError: resource_string = None from google.appengine._internal.django.template import TemplateDoesNotExist from google.appengine._internal.django.template.loader import BaseL...
ajibawa-2023/Python-Code-Large/train/row_84509
21
39
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84509:Try_L3_C0", "label": "try", "type": "try", "loc": [3, 6], "level": 0, "parent": null, "vector": [7, 0, 0.1154, 0.1026, 0, 0.66, 0.0, 0, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""}, "sni...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84509:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84509:ImportFrom_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84509:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84509:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
""" Wrapper for loading templates from "templates" directories in INSTALLED_APPS packages. """ import os import sys from google.appengine._internal.django.conf import settings from google.appengine._internal.django.core.exceptions import ImproperlyConfigured from google.appengine._internal.django.template import Temp...
ajibawa-2023/Python-Code-Large/train/row_84510
28
51
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84510:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0196, 0.0196, 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_84510:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84510:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84510:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84510:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Cod...
""" Wrapper for loading templates from the filesystem. """ from google.appengine._internal.django.conf import settings from google.appengine._internal.django.template import TemplateDoesNotExist from google.appengine._internal.django.template.loader import BaseLoader from google.appengine._internal.django.utils._os im...
ajibawa-2023/Python-Code-Large/train/row_84511
33
61
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84511:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0328, 0.0492, 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_84511:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84511:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84511:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84511:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Cod...
from google.appengine._internal.django.template import TemplateSyntaxError, TemplateDoesNotExist, Variable from google.appengine._internal.django.template import Library, Node, TextNode from google.appengine._internal.django.template.loader import get_template from google.appengine._internal.django.conf import settings...
ajibawa-2023/Python-Code-Large/train/row_84518
141
218
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84518:ImportFrom_L1_C0", "label": "from google.appengine._internal.django.template import TemplateSyntaxError, TemplateDoesNotExist, Variable", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0046, 0.0046, 0, 0.66, 0.0, 411, 0, 3, 0, 0, 4...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84518:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84518:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84518:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_84518:Assign_L17_C8"}, {"f": "ajibawa-2023/Python-...
VERSION = (1, 2, 5, 'final', 0) def get_version(): version = '%s.%s' % (VERSION[0], VERSION[1]) if VERSION[2]: version = '%s.%s' % (version, VERSION[2]) if VERSION[3:] == ('alpha', 0): version = '%s pre-alpha' % version else: if VERSION[3] != 'final': version = '%s %...
ajibawa-2023/Python-Code-Large/train/row_84519
14
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_84519:Assign_L1_C0", "label": "VERSION =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0625, 0.0625, 0, 0.66, 0.0, 557, 0, 0, 0, 0, 0, 8, 0], "semantic": {"name": "VERSION", "arg_names": [], "import_names": [], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84519:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84519:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84519:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84519:If_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84520
0
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"]
[]
[]
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84521
0
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"]
[]
[]
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84522
15
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_84522:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.4048, 0.0238, 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_84522:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84522:FunctionDef_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84522:FunctionDef_L21_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_84522:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84523
0
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"]
[]
[]
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84524
43
193
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84524:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0881, 0.0052, 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_84524:If_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84524:Expr_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84524:If_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84524:Expr_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_845...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84525
43
193
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84525:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0881, 0.0052, 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_84525:If_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84525:Expr_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84525:If_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84525:Expr_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_845...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84526
23
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_84526:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.2394, 0.0141, 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_84526:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84526:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84526:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84526:Assign_L49_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84528
52
142
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84528:Import_L17_C0", "label": "inspect import inspect", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.1197, 0.007, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84528:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84528:Expr_L20_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84528:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84528:FunctionDef_L33_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python2.4 from distutils.core import setup setup(name='mox', version='0.5.3', py_modules=['mox', 'stubout'], url='http://code.google.com/p/pymox/', maintainer='pymox maintainers', maintainer_email='mox-discuss@googlegroups.com', license='Apache License, Version 2.0', ...
ajibawa-2023/Python-Code-Large/train/row_84529
2
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84529:ImportFrom_L2_C0", "label": "from distutils.core import setup", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0714, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "import...
[]
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84530
660
1,897
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84530:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 62], "level": 0, "parent": null, "vector": [8, 0, 0.0208, 0.0242, 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_84530:ClassDef_L73_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84530:Expr_L74_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84530:ClassDef_L79_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84530:Expr_L80_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python2.4 # # Unit tests for stubout. # # 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 a...
ajibawa-2023/Python-Code-Large/train/row_84531
20
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84531:Import_L17_C0", "label": "unittest import unittest", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.3617, 0.0213, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unitte...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84531:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84531:FunctionDef_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84531:FunctionDef_L25_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_84531:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-...
def SampleFunction(): raise Exception('I should never be called!')
ajibawa-2023/Python-Code-Large/train/row_84532
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_84532:FunctionDef_L1_C0", "label": "SampleFunction", "type": "function", "loc": [1, 2], "level": 0, "parent": null, "vector": [2, 0, 0.75, 1.0, 0, 0.66, 0.0, 717, 0, 0, 0, 0, 0, 0, 1], "semantic": {"name": "SampleFunction", "arg_names": [], "import_names": [], "rhs_call...
[]
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84533
53
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84533:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1937, 0.0901, 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_84533:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84533:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84533:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84533:FunctionDef_L40_C2"}, {"f": "ajibawa-2023/Python-Code-...
from __future__ import generators import sys, imp, marshal from imp import PKG_DIRECTORY, PY_COMPILED, PY_SOURCE, PY_FROZEN from distutils.version import StrictVersion, LooseVersion __all__ = [ 'Require', 'find_module', 'get_module_constant', 'extract_constant' ] class Require: """A prerequisite to building o...
ajibawa-2023/Python-Code-Large/train/row_84534
108
245
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84534:ImportFrom_L1_C0", "label": "from __future__ import generators", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0041, 0.0041, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84534:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84534:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84534:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84534:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-...
"""setuptools.command.bdist_egg Build .egg distributions""" # This module should be kept compatible with Python 2.3 import sys, os, marshal from setuptools import Command from distutils.dir_util import remove_tree, mkpath from distutils.sysconfig import get_python_version, get_python_lib from distutils import log fro...
ajibawa-2023/Python-Code-Large/train/row_84535
308
533
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84535:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0038, 0.0056, 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_84535:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84535:If_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84535:If_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_84535:Assign_L19_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
import distutils, os from setuptools import Command from distutils.util import convert_path from distutils import log from distutils.errors import * __all__ = ['config_file', 'edit_config', 'option_base', 'setopt'] def config_file(kind="local"): """Get the filename of the distutils, local, global, or per-user co...
ajibawa-2023/Python-Code-Large/train/row_84536
79
164
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84536:Import_L1_C0", "label": "distutils import distutils, os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0061, 0.0061, 0, 0.66, 0.0, 901, 0, 2, 0, 0, 901, 0, 0], "semantic": {"name": "distutils", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84536:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84536:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84536:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84536:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import distutils, os from setuptools import Command from distutils.util import convert_path from distutils import log from distutils.errors import * class rotate(Command): """Delete older distributions""" description = "delete older distributions, keeping N newest files" user_options = [ ('match='...
ajibawa-2023/Python-Code-Large/train/row_84537
37
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84537:Import_L1_C0", "label": "distutils import distutils, os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0122, 0.0122, 0, 0.66, 0.0, 901, 0, 2, 0, 0, 901, 0, 0], "semantic": {"name": "distutils", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84537:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84537:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84537:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84537:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
from setuptools import Command from setuptools.archive_util import unpack_archive from distutils import log, dir_util import os, shutil, pkg_resources class install_egg_info(Command): """Install an .egg-info directory for the package""" description = "Install an .egg-info directory for the package" user_...
ajibawa-2023/Python-Code-Large/train/row_84538
65
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_84538:ImportFrom_L1_C0", "label": "from setuptools import Command", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0081, 0.0081, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "setuptools", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84538:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84538:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84538:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84538:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
"""setuptools.command.egg_info Create a distribution's .egg-info directory and contents""" # This module should be kept compatible with Python 2.3 import os, re from setuptools import Command from distutils.errors import * from distutils import log from setuptools.command.sdist import sdist from distutils.util import...
ajibawa-2023/Python-Code-Large/train/row_84539
246
451
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84539:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0044, 0.0067, 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_84539:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84539:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84539:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84539:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import distutils, os from setuptools import Command from distutils.util import convert_path from distutils import log from distutils.errors import * from setuptools.command.setopt import edit_config, option_base, config_file def shquote(arg): """Quote an argument for later parsing by shlex.split()""" for c in ...
ajibawa-2023/Python-Code-Large/train/row_84540
57
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84540:Import_L1_C0", "label": "distutils import distutils, os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0122, 0.0122, 0, 0.66, 0.0, 901, 0, 2, 0, 0, 901, 0, 0], "semantic": {"name": "distutils", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84540:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84540:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84540:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84540:For_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
from distutils.command.install_lib import install_lib as _install_lib import os class install_lib(_install_lib): """Don't add compiled flags to filenames of non-Python files""" def _bytecode_filenames (self, py_filenames): bytecode_files = [] for py_file in py_filenames: if not py_...
ajibawa-2023/Python-Code-Large/train/row_84541
52
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84541:ImportFrom_L1_C0", "label": "from distutils.command.install_lib import _install_lib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0122, 0.0122, 0, 0.66, 0.0, 969, 0, 1, 0, 0, 969, 0, 0], "semantic": {"name": "distutils.command.i...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84541:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84541:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84541:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84541:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
import distutils, os from setuptools import Command from setuptools.command.setopt import edit_config, option_base class saveopts(option_base): """Save command-line options to a file""" description = "save supplied options to setup.cfg or other config file" def run(self): dist = self.distribution...
ajibawa-2023/Python-Code-Large/train/row_84542
16
25
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84542:Import_L1_C0", "label": "distutils import distutils, os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.04, 0.04, 0, 0.66, 0.0, 901, 0, 2, 0, 0, 901, 0, 0], "semantic": {"name": "distutils", "arg_names": [], "import_names": ["dist...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84542:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84542:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84542:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84542:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
from distutils.command.register import register as _register class register(_register): __doc__ = _register.__doc__ def run(self): # Make sure that we are using valid current name/version info self.run_command('egg_info') _register.run(self)
ajibawa-2023/Python-Code-Large/train/row_84543
6
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84543:ImportFrom_L1_C0", "label": "from distutils.command.register import _register", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1, 0.1, 0, 0.66, 0.0, 961, 0, 1, 0, 0, 961, 0, 0], "semantic": {"name": "distutils.command.register", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84543:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84543:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84543:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84543:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-La...
from setuptools import Command from distutils.errors import DistutilsOptionError import sys from pkg_resources import * from unittest import TestLoader, main class ScanningLoader(TestLoader): def loadTestsFromModule(self, module): """Return a suite of all tests cases contained in the given module ...
ajibawa-2023/Python-Code-Large/train/row_84544
77
164
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84544:ImportFrom_L1_C0", "label": "from setuptools import Command", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0061, 0.0061, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "setuptools", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84544:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84544:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84544:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_84544:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-...
import setuptools, sys, glob from distutils.command.install import install as _install from distutils.errors import DistutilsArgError class install(_install): """Use easy_install to install the package, w/dependencies""" user_options = _install.user_options + [ ('old-and-unmanageable', None, "Try not ...
ajibawa-2023/Python-Code-Large/train/row_84545
48
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_84545:Import_L1_C0", "label": "setuptools import setuptools, sys, glob", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0081, 0.0081, 0, 0.66, 0.0, 182, 0, 3, 0, 0, 182, 0, 0], "semantic": {"name": "setuptools", "arg_names": [], "import_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84545:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84545:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84545:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84545:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
from distutils.command.build_ext import build_ext as _du_build_ext try: # Attempt to use Pyrex for building extensions, if available from Pyrex.Distutils.build_ext import build_ext as _build_ext except ImportError: _build_ext = _du_build_ext import os, sys from distutils.file_util import copy_file from set...
ajibawa-2023/Python-Code-Large/train/row_84546
175
287
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84546:ImportFrom_L1_C0", "label": "from distutils.command.build_ext import _du_build_ext", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0035, 0.0035, 0, 0.66, 0.0, 932, 0, 1, 0, 0, 932, 0, 0], "semantic": {"name": "distutils.command.bu...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84546:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84546:ImportFrom_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84546:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84546:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# This is just a kludge so that bdist_rpm doesn't guess wrong about the # distribution name and version, if the egg_info command is going to alter # them, another kludge to allow you to build old-style non-egg RPMs, and # finally, a kludge to track .rpm files for uploading when run on Python <2.5. from distutils.comma...
ajibawa-2023/Python-Code-Large/train/row_84547
23
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84547:ImportFrom_L6_C0", "label": "from distutils.command.bdist_rpm import _bdist_rpm", "type": "import", "loc": [6, 6], "level": 0, "parent": null, "vector": [1, 0, 0.0732, 0.0122, 0, 0.66, 0.0, 657, 0, 1, 0, 0, 657, 0, 0], "semantic": {"name": "distutils.command.bdist...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84547:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84547:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84547:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_84547:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Cod...
import os.path, sys, fnmatch from distutils.command.build_py import build_py as _build_py from distutils.util import convert_path from glob import glob class build_py(_build_py): """Enhanced 'build_py' command that includes data files with packages The data files are specified via a 'package_data' argument to...
ajibawa-2023/Python-Code-Large/train/row_84548
110
205
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84548:Import_L1_C0", "label": "os.path import os.path, sys, fnmatch", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0049, 0.0049, 0, 0.66, 0.0, 79, 0, 3, 0, 0, 79, 0, 0], "semantic": {"name": "os.path", "arg_names": [], "import_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84548:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84548:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84548:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84548:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
from distutils.command.bdist_wininst import bdist_wininst as _bdist_wininst import os, sys class bdist_wininst(_bdist_wininst): _good_upload = _bad_upload = None def create_exe(self, arcname, fullname, bitmap=None): _bdist_wininst.create_exe(self, arcname, fullname, bitmap) installer_name = se...
ajibawa-2023/Python-Code-Large/train/row_84550
36
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84550:ImportFrom_L1_C0", "label": "from distutils.command.bdist_wininst import _bdist_wininst", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0122, 0.0122, 0, 0.66, 0.0, 47, 0, 1, 0, 0, 47, 0, 0], "semantic": {"name": "distutils.command...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84550:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84550:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84550:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84550:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-La...
from distutils.command.install_scripts import install_scripts \ as _install_scripts from easy_install import get_script_args, sys_executable, chmod from pkg_resources import Distribution, PathMetadata, ensure_directory import os from distutils import log class install_scripts(_install_scripts): """Do normal s...
ajibawa-2023/Python-Code-Large/train/row_84551
34
81
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84551:ImportFrom_L1_C0", "label": "from distutils.command.install_scripts import _install_scripts", "type": "import", "loc": [1, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0185, 0.0247, 0, 0.66, 0.0, 735, 0, 1, 0, 0, 735, 0, 0], "semantic": {"name": "distutils.c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84551:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84551:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84551:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84551:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
__all__ = [ 'alias', 'bdist_egg', 'bdist_rpm', 'build_ext', 'build_py', 'develop', 'easy_install', 'egg_info', 'install', 'install_lib', 'rotate', 'saveopts', 'sdist', 'setopt', 'test', 'upload', 'install_egg_info', 'install_scripts', 'register', 'bdist_wininst', ] import sys if sys.version>='2.5': ...
ajibawa-2023/Python-Code-Large/train/row_84552
8
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_84552:Assign_L1_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [1, 6], "level": 0, "parent": null, "vector": [14, 0, 0.1842, 0.3158, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84552:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84552:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84552:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84552:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84...
from setuptools.command.easy_install import easy_install from distutils.util import convert_path from pkg_resources import Distribution, PathMetadata, normalize_path from distutils import log from distutils.errors import * import sys, os, setuptools, glob class develop(easy_install): """Set up package for developm...
ajibawa-2023/Python-Code-Large/train/row_84553
81
164
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84553:ImportFrom_L1_C0", "label": "from setuptools.command.easy_install import easy_install", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0061, 0.0061, 0, 0.66, 0.0, 157, 0, 1, 0, 0, 157, 0, 0], "semantic": {"name": "setuptools.comman...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84553:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84553:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84553:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84553:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
from distutils.command.sdist import sdist as _sdist from distutils.util import convert_path from distutils import log from glob import glob import os, re, sys, pkg_resources entities = [ ("&lt;","<"), ("&gt;", ">"), ("&quot;", '"'), ("&apos;", "'"), ("&amp;", "&") ] def unescape(data): for old,new in enti...
ajibawa-2023/Python-Code-Large/train/row_84555
143
246
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84555:ImportFrom_L1_C0", "label": "from distutils.command.sdist import _sdist", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0041, 0.0041, 0, 0.66, 0.0, 322, 0, 1, 0, 0, 322, 0, 0], "semantic": {"name": "distutils.command.sdist", "arg_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84555:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84555:For_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84555:For_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_84555:Assign_L14_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
"""Tests for the 'setuptools' package""" from unittest import TestSuite, TestCase, makeSuite, defaultTestLoader import distutils.core, distutils.cmd from distutils.errors import DistutilsOptionError, DistutilsPlatformError from distutils.errors import DistutilsSetupError import setuptools, setuptools.dist from setuptoo...
ajibawa-2023/Python-Code-Large/train/row_84557
196
370
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84557:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0027, 0.0027, 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_84557:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84557:Import_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84557:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84557:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Co...
"""Utilities for extracting common archive formats""" __all__ = [ "unpack_archive", "unpack_zipfile", "unpack_tarfile", "default_filter", "UnrecognizedFormat", "extraction_drivers", "unpack_directory", ] import zipfile, tarfile, os, shutil from pkg_resources import ensure_directory from distutils.errors impo...
ajibawa-2023/Python-Code-Large/train/row_84560
73
205
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84560:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0049, 0.0049, 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_84560:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84560:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84560:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84560:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
from distutils.core import Extension as _Extension from dist import _get_unpatched _Extension = _get_unpatched(_Extension) try: from Pyrex.Distutils.build_ext import build_ext except ImportError: have_pyrex = False else: have_pyrex = True class Extension(_Extension): """Extension that uses '.c' files...
ajibawa-2023/Python-Code-Large/train/row_84562
25
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84562:ImportFrom_L1_C0", "label": "from distutils.core import _Extension", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0278, 0.0278, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "i...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84562:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84562:ImportFrom_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84562:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84562:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
"""Extensions to the 'distutils' for large or complex distributions""" from setuptools.extension import Extension, Library from setuptools.dist import Distribution, Feature, _get_unpatched import distutils.core, setuptools.command from setuptools.depends import Require from distutils.core import Command as _Command fro...
ajibawa-2023/Python-Code-Large/train/row_84563
54
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84563:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0122, 0.0122, 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_84563:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84563:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84563:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84563:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code...
"""Run the EasyInstall command""" if __name__ == '__main__': from setuptools.command.easy_install import main main()
ajibawa-2023/Python-Code-Large/train/row_84565
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_84565:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.2, 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_84565:If_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84565:ImportFrom_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84565:If_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84565:Expr_L5_C4"}]
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84567
81
241
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84567:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 32], "level": 0, "parent": null, "vector": [8, 0, 0.1037, 0.0622, 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_84567:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84567:Expr_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84567:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84567:Assign_L63_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84569
35
127
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84569:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1417, 0.0079, 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_84569:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84569:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84569:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84569:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84570
113
283
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84570:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0636, 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_84570:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84570:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84570:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84570:Assign_L51_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84575
50
163
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84575:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1319, 0.0491, 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_84575:ClassDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84575:Expr_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84575:ClassDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84575:Assign_L51_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84577
1
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_84577:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 1.0, 0.0556, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_...
[]
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84578
59
127
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84578:ImportFrom_L18_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.1417, 0.0079, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "im...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84578:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84578:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84578:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84578:If_L37_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84579
155
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_84579:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0373, 0.0021, 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_84579:ClassDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84579:Expr_L48_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84579:ClassDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84579:Expr_L52_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84581
93
218
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84581:ImportFrom_L18_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0826, 0.0046, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "im...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84581:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84581:Expr_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84581:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84581:For_L45_C2"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84582
57
180
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84582:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1083, 0.0222, 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_84582:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84582:Expr_L44_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84582:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84582:If_L65_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84583
0
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"]
[]
[]
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_84585
41
119
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84585:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 22], "level": 0, "parent": null, "vector": [8, 0, 0.1681, 0.042, 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_84585:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84585:Expr_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84585:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84585:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import datetime import os import re import sys import types from django.conf import settings from django.http import HttpResponse, HttpResponseServerError, HttpResponseNotFound from django.template import (Template, Context, TemplateDoesNotExist, TemplateSyntaxError) from django.utils.html import escape from djang...
ajibawa-2023/Python-Code-Large/train/row_84586
179
860
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84586:Import_L1_C0", "label": "datetime import datetime", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0012, 0.0012, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetim...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84586:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84586:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84586:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84586:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code...
""" Decorators for views based on HTTP headers. """ try: from functools import wraps except ImportError: from django.utils.functional import wraps # Python 2.4 fallback. from calendar import timegm from datetime import timedelta from email.Utils import formatdate from django.utils.decorators import decorato...
ajibawa-2023/Python-Code-Large/train/row_84587
69
143
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_84587:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.014, 0.021, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84587:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84587:ImportFrom_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84587:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84587:ImportFrom_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
try: from functools import wraps except ImportError: from django.utils.functional import wraps # Python 2.4 fallback. from django.utils.cache import patch_vary_headers from django.utils.decorators import available_attrs def vary_on_headers(*headers): """ A view decorator that adds the specified heade...
ajibawa-2023/Python-Code-Large/train/row_84588
21
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_84588:Try_L1_C0", "label": "try", "type": "try", "loc": [1, 4], "level": 0, "parent": null, "vector": [7, 0, 0.061, 0.0976, 0, 0.66, 0.0, 0, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""}, "snip...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_84588:Try_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84588:ImportFrom_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_84588:Try_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_84588:ImportFrom_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
from django.utils.decorators import decorator_from_middleware from django.middleware.gzip import GZipMiddleware gzip_page = decorator_from_middleware(GZipMiddleware) gzip_page.__doc__ = "Decorator for views that gzips pages if the client supports it."
ajibawa-2023/Python-Code-Large/train/row_84589
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_84589:ImportFrom_L1_C0", "label": "from django.utils.decorators import decorator_from_middleware", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 532, 0, 1, 0, 0, 532, 0, 0], "semantic": {"name": "django.utils.decor...
[]