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 django.utils.six.moves import zip from django.core.exceptions import FieldError from django.db import transaction from django.db.backends.util import truncate_name from django.db.models.constants import LOOKUP_SEP from django.db.models.query_utils import select_related_descend from django.db.models.sql.constants ...
ajibawa-2023/Python-Code-Large/train/row_83472
665
1,139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83472:ImportFrom_L1_C0", "label": "from django.utils.six.moves import zip", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0009, 0.0009, 0, 0.66, 0.0, 886, 0, 1, 0, 0, 886, 0, 0], "semantic": {"name": "django.utils.six.moves", "arg_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83472:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83472:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83472:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83472:Assign_L19_C8"}, {"f": "ajibawa-2023/Python-...
""" Query subclasses which provide extra functionality beyond simple data retrieval. """ from django.core.exceptions import FieldError from django.db import connections from django.db.models.constants import LOOKUP_SEP from django.db.models.fields import DateField, FieldDoesNotExist from django.db.models.sql.constants...
ajibawa-2023/Python-Code-Large/train/row_83473
144
263
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83473:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0076, 0.0114, 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_83473:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83473:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83473:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83473:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
from django.core.exceptions import FieldError from django.db.models.constants import LOOKUP_SEP from django.db.models.fields import FieldDoesNotExist class SQLEvaluator(object): def __init__(self, expression, query, allow_joins=True, reuse=None): self.expression = expression self.opts = query.get_m...
ajibawa-2023/Python-Code-Large/train/row_83474
69
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83474:ImportFrom_L1_C0", "label": "from django.core.exceptions import FieldError", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0091, 0.0091, 0, 0.66, 0.0, 160, 0, 1, 0, 0, 160, 0, 0], "semantic": {"name": "django.core.exceptions", "ar...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83474:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83474:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83474:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83474:Assign_L7_C8"}, {"f": "ajibawa-2023/Python-Code...
""" Constants specific to the SQL storage portion of the ORM. """ from collections import namedtuple import re # Valid query types (a set is used for speedy lookups). These are (currently) # considered SQL-specific; other storage systems may choose to use different # lookup types. QUERY_TERMS = set([ 'exact', 'ie...
ajibawa-2023/Python-Code-Large/train/row_83475
10
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_83475:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0556, 0.0833, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
""" Classes to represent the default SQL aggregate functions """ from django.db.models.fields import IntegerField, FloatField # Fake fields used to identify aggregate types in data-conversion operations. ordinal_aggregate_field = IntegerField() computed_aggregate_field = FloatField() class Aggregate(object): """...
ajibawa-2023/Python-Code-Large/train/row_83476
61
121
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83476:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0165, 0.0248, 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_83476:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83476:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83476:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83476:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
""" Code to manage the creation and SQL rendering of 'where' constraints. """ from __future__ import absolute_import import datetime from itertools import repeat from django.utils import tree from django.db.models.fields import Field from django.db.models.sql.datastructures import EmptyResultSet from django.db.model...
ajibawa-2023/Python-Code-Large/train/row_83477
198
368
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83477:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0054, 0.0082, 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_83477:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83477:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83477:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83477:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from __future__ import absolute_import from django.db.models.sql.datastructures import EmptyResultSet from django.db.models.sql.subqueries import * from django.db.models.sql.query import * from django.db.models.sql.where import AND, OR __all__ = ['Query', 'AND', 'OR', 'EmptyResultSet']
ajibawa-2023/Python-Code-Large/train/row_83478
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_83478:ImportFrom_L1_C0", "label": "from __future__ import absolute_import", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.1111, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "impo...
[]
""" Useful auxilliary data structures for query construction. Not useful outside the SQL domain. """ class EmptyResultSet(Exception): pass class MultiJoin(Exception): """ Used by join construction code to indicate the point at which a multi-valued join was attempted (if the caller wants to treat that ...
ajibawa-2023/Python-Code-Large/train/row_83479
24
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83479:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0581, 0.093, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83479:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83479:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83479:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83479:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import datetime import os from django import forms from django.db.models.fields import Field from django.core.files.base import File from django.core.files.storage import default_storage from django.core.files.images import ImageFile from django.db.models import signals from django.utils.encoding import force_str, for...
ajibawa-2023/Python-Code-Large/train/row_83480
202
395
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83480:Import_L1_C0", "label": "datetime import datetime", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0025, 0.0025, 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_83480:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83480:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83480:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83480:Expr_L16_C8"}, {"f": "ajibawa-2023/Python-Co...
""" Field-like classes that aren't really fields. It's easier to use objects that have the same attributes as fields sometimes (avoids a lot of special casing). """ from django.db.models import fields class OrderWrt(fields.IntegerField): """ A proxy for the _order database field that is used when Meta.ord...
ajibawa-2023/Python-Code-Large/train/row_83481
8
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83481:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 4], "level": 0, "parent": null, "vector": [8, 0, 0.1471, 0.2353, 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_83481:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83481:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83481:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83481:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
from operator import attrgetter from django.db import connection, connections, router from django.db.backends import util from django.db.models import signals, get_model from django.db.models.fields import (AutoField, Field, IntegerField, PositiveIntegerField, PositiveSmallIntegerField, FieldDoesNotExist) from dja...
ajibawa-2023/Python-Code-Large/train/row_83482
718
1,357
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83482:ImportFrom_L1_C0", "label": "from operator import attrgetter", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0007, 0.0007, 0, 0.66, 0.0, 616, 0, 1, 0, 0, 616, 0, 0], "semantic": {"name": "operator", "arg_names": [], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83482:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83482:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83482:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83482:If_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" Convenience routines for creating non-trivial Field subclasses, as well as backwards compatibility utilities. Add SubfieldBase as the metaclass for your Field subclass, implement to_python() and the other necessary methods and everything will work seamlessly. """ class SubfieldBase(type): """ A metaclass ...
ajibawa-2023/Python-Code-Large/train/row_83483
24
53
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83483:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0849, 0.1509, 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_83483:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83483:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83483:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83483:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-...
from __future__ import unicode_literals import copy import datetime import decimal import math import warnings from itertools import tee from django.db import connection from django.db.models.query_utils import QueryWrapper from django.conf import settings from django import forms from django.core import exceptions, ...
ajibawa-2023/Python-Code-Large/train/row_83484
775
1,284
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83484:ImportFrom_L1_C0", "label": "from __future__ import unicode_literals", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0008, 0.0008, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "imp...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83484:ClassDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83484:Expr_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83484:ClassDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83484:Assign_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
"Utilities for loading models and the modules that contain them." from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.utils.datastructures import SortedDict from django.utils.importlib import import_module from django.utils.module_loading import module_has_submodule fro...
ajibawa-2023/Python-Code-Large/train/row_83485
122
269
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83485:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0037, 0.0037, 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_83485:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83485:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83485:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83485:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
""" Classes to represent the definitions of aggregate functions. """ class Aggregate(object): """ Default Aggregate definition. """ def __init__(self, lookup, **extra): """Instantiate a new aggregate. * lookup is the field on which the aggregate operates. * extra is a diction...
ajibawa-2023/Python-Code-Large/train/row_83486
29
67
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83486:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0299, 0.0448, 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_83486:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83486:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83486:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83486:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
from __future__ import unicode_literals import re from bisect import bisect from django.conf import settings from django.db.models.related import RelatedObject from django.db.models.fields.related import ManyToManyRel from django.db.models.fields import AutoField, FieldDoesNotExist from django.db.models.fields.proxy ...
ajibawa-2023/Python-Code-Large/train/row_83487
329
554
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83487:ImportFrom_L1_C0", "label": "from __future__ import unicode_literals", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0018, 0.0018, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "imp...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83487:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83487:FunctionDef_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83487:FunctionDef_L29_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83487:Assign_L30_C8"}, {"f": "ajibawa-2023/Python-...
from __future__ import unicode_literals import copy import sys from functools import update_wrapper from django.utils.six.moves import zip import django.db.models.manager # Imported to register signal handler. from django.conf import settings from django.core.exceptions import (ObjectDoesNotExist, MultipleObject...
ajibawa-2023/Python-Code-Large/train/row_83488
522
1,035
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83488:ImportFrom_L1_C0", "label": "from __future__ import unicode_literals", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.001, 0.001, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "impor...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83488:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83488:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83488:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83488:Assign_L39_C4"}, {"f": "ajibawa-2023/Python-Code...
from django.utils.encoding import smart_text from django.db.models.fields import BLANK_CHOICE_DASH class BoundRelatedObject(object): def __init__(self, related_object, field_mapping, original): self.relation = related_object self.field_mappings = field_mapping[related_object.name] def template...
ajibawa-2023/Python-Code-Large/train/row_83489
42
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83489:ImportFrom_L1_C0", "label": "from django.utils.encoding import smart_text", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0145, 0.0145, 0, 0.66, 0.0, 96, 0, 1, 0, 0, 96, 0, 0], "semantic": {"name": "django.utils.encoding", "arg_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83489:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83489:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83489:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83489:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
from django.conf import settings from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured from django.db import connection from django.db.models.loading import get_apps, get_app, get_models, get_model, register_models from django.db.models.query import Q from django.db.models.expressions import F fro...
ajibawa-2023/Python-Code-Large/train/row_83490
23
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83490:ImportFrom_L1_C0", "label": "from django.conf import settings", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0294, 0.0294, 0, 0.66, 0.0, 128, 0, 1, 0, 0, 128, 0, 0], "semantic": {"name": "django.conf", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83490:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83490:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83490:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83490:ImportFrom_L29_C4"}, {"f": "ajibawa-2023/Python-...
import copy from django.db import router from django.db.models.query import QuerySet, EmptyQuerySet, insert_query, RawQuerySet from django.db.models import signals from django.db.models.fields import FieldDoesNotExist def ensure_default_manager(sender, **kwargs): """ Ensures that a Model subclass contains a d...
ajibawa-2023/Python-Code-Large/train/row_83491
152
262
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83491:Import_L1_C0", "label": "copy import copy", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0038, 0.0038, 0, 0.66, 0.0, 739, 0, 1, 0, 0, 739, 0, 0], "semantic": {"name": "copy", "arg_names": [], "import_names": ["copy"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83491:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83491:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83491:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83491:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-La...
""" Various data structures used in query construction. Factored out from django.db.models.query to avoid making the main module very large and/or so that they can be used by other modules without getting into circular import difficulties. """ from __future__ import unicode_literals from django.db.backends import uti...
ajibawa-2023/Python-Code-Large/train/row_83492
97
195
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83492:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0205, 0.0359, 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_83492:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83492:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83492:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83492:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import os import pkgutil from threading import local from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.utils.importlib import import_module from django.utils._os import upath from django.utils import six DEFAULT_DB_ALIAS = 'default' # Define some exceptions that mi...
ajibawa-2023/Python-Code-Large/train/row_83493
100
174
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83493:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0057, 0.0057, 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_83493:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83493:Try_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83493:Try_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83493:Return_L27_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
""" This module implements a transaction manager that can be used to define transaction handling in a request or view function. It is used by transaction control middleware and decorators. The transaction manager can be in managed or in auto state. Auto state means the system is using a commit-on-save strategy (actual...
ajibawa-2023/Python-Code-Large/train/row_83494
153
304
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83494:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 13], "level": 0, "parent": null, "vector": [8, 0, 0.023, 0.0428, 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_83494:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83494:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83494:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83494:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
from __future__ import unicode_literals from django.db.backends import BaseDatabaseIntrospection class DatabaseIntrospection(BaseDatabaseIntrospection): # Maps type codes to Django Field types. data_types_reverse = { 16: 'BooleanField', 20: 'BigIntegerField', 21: 'SmallIntegerField', ...
ajibawa-2023/Python-Code-Large/train/row_83495
28
90
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83495:ImportFrom_L1_C0", "label": "from __future__ import unicode_literals", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0111, 0.0111, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "imp...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83495:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83495:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83495:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83495:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import os import sys from django.db.backends import BaseDatabaseClient class DatabaseClient(BaseDatabaseClient): executable_name = 'psql' def runshell(self): settings_dict = self.connection.settings_dict args = [self.executable_name] if settings_dict['USER']: args += ["-U"...
ajibawa-2023/Python-Code-Large/train/row_83496
16
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_83496:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0435, 0.0435, 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_83496:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83496:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83496:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83496:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-La...
from __future__ import unicode_literals from django.db.backends import BaseDatabaseOperations class DatabaseOperations(BaseDatabaseOperations): def __init__(self, connection): super(DatabaseOperations, self).__init__(connection) def date_extract_sql(self, lookup_type, field_name): # http://w...
ajibawa-2023/Python-Code-Large/train/row_83497
107
209
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83497:ImportFrom_L1_C0", "label": "from __future__ import unicode_literals", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0048, 0.0048, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "imp...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83497:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83497:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83497:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83497:Expr_L8_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import psycopg2.extensions from django.db.backends.creation import BaseDatabaseCreation from django.db.backends.util import truncate_name class DatabaseCreation(BaseDatabaseCreation): # This dictionary maps Field objects to their associated PostgreSQL column # types, as strings. Column-type strings can conta...
ajibawa-2023/Python-Code-Large/train/row_83498
36
87
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83498:Import_L1_C0", "label": "psycopg2.extensions import psycopg2.extensions", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0115, 0.0115, 0, 0.66, 0.0, 928, 0, 1, 0, 0, 928, 0, 0], "semantic": {"name": "psycopg2.extensions", "arg_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83498:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83498:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83498:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83498:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" Extracts the version of the PostgreSQL server. """ import re # This reg-exp is intentionally fairly flexible here. # Needs to be able to handle stuff like: # PostgreSQL 8.3.6 # EnterpriseDB 8.3 # PostgreSQL 8.3 beta4 # PostgreSQL 8.4beta1 VERSION_RE = re.compile(r'\S+ (\d+)\.(\d+)\.?(\d+)?') def _parse_...
ajibawa-2023/Python-Code-Large/train/row_83499
16
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83499:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0465, 0.0698, 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_83499:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83499:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83499:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83499:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code...
""" PostgreSQL database backend for Django. Requires psycopg 2: http://initd.org/projects/psycopg2 """ import logging import sys from django.db import utils from django.db.backends import * from django.db.backends.signals import connection_created from django.db.backends.postgresql_psycopg2.operations import Database...
ajibawa-2023/Python-Code-Large/train/row_83500
149
242
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83500:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0124, 0.0207, 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_83500:Try_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83500:Import_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83500:Try_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83500:Import_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
import re from .base import FIELD_TYPE from django.db.backends import BaseDatabaseIntrospection foreign_key_re = re.compile(r"\sCONSTRAINT `[^`]*` FOREIGN KEY \(`([^`]*)`\) REFERENCES `([^`]*)` \(`([^`]*)`\)") class DatabaseIntrospection(BaseDatabaseIntrospection): data_types_reverse = { FIELD_TYPE.BLOB...
ajibawa-2023/Python-Code-Large/train/row_83501
47
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83501:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0094, 0.0094, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83501:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83501:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83501:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83501:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
try: from itertools import zip_longest except ImportError: from itertools import izip_longest as zip_longest from django.db.models.sql import compiler class SQLCompiler(compiler.SQLCompiler): def resolve_columns(self, row, fields=()): values = [] index_extra_select = len(self.query.extra_...
ajibawa-2023/Python-Code-Large/train/row_83502
18
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_83502:Try_L1_C0", "label": "try", "type": "try", "loc": [1, 4], "level": 0, "parent": null, "vector": [7, 0, 0.0758, 0.1212, 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_83502:Try_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83502:ImportFrom_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83502:Try_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83502:ImportFrom_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
import os import sys from django.db.backends import BaseDatabaseClient class DatabaseClient(BaseDatabaseClient): executable_name = 'mysql' def runshell(self): settings_dict = self.connection.settings_dict args = [self.executable_name] db = settings_dict['OPTIONS'].get('db', settings_d...
ajibawa-2023/Python-Code-Large/train/row_83503
24
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_83503:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.025, 0.025, 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_83503:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83503:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83503:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83503:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-La...
from django.db.backends.creation import BaseDatabaseCreation class DatabaseCreation(BaseDatabaseCreation): # This dictionary maps Field objects to their associated MySQL column # types, as strings. Column-type strings can contain format strings; they'll # be interpolated against the values of Field.__dict_...
ajibawa-2023/Python-Code-Large/train/row_83504
20
66
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83504:ImportFrom_L1_C0", "label": "from django.db.backends.creation import BaseDatabaseCreation", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0152, 0.0152, 0, 0.66, 0.0, 340, 0, 1, 0, 0, 340, 0, 0], "semantic": {"name": "django.db.bac...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83504:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83504:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83504:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83504:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-L...
from django.db.backends import BaseDatabaseValidation class DatabaseValidation(BaseDatabaseValidation): def validate_field(self, errors, opts, f): """ MySQL has the following field length restriction: No character (varchar) fields can have a length exceeding 255 characters if they h...
ajibawa-2023/Python-Code-Large/train/row_83505
9
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_83505:ImportFrom_L1_C0", "label": "from django.db.backends import BaseDatabaseValidation", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0625, 0.0625, 0, 0.66, 0.0, 981, 0, 1, 0, 0, 981, 0, 0], "semantic": {"name": "django.db.backends",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83505:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83505:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83505:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83505:Expr_L5_C8"}, {"f": "ajibawa-2023/Python-Code-L...
""" MySQL database backend for Django. Requires MySQLdb: http://sourceforge.net/projects/mysql-python """ from __future__ import unicode_literals import datetime import re import sys import warnings try: import MySQLdb as Database except ImportError as e: from django.core.exceptions import ImproperlyConfigur...
ajibawa-2023/Python-Code-Large/train/row_83506
271
492
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83506:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0061, 0.0102, 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_83506:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83506:Import_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83506:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83506:ImportFrom_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
from django.dispatch import Signal connection_created = Signal(providing_args=["connection"])
ajibawa-2023/Python-Code-Large/train/row_83507
2
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83507:ImportFrom_L1_C0", "label": "from django.dispatch import Signal", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 548, 0, 1, 0, 0, 548, 0, 0], "semantic": {"name": "django.dispatch", "arg_names": [], "imp...
[]
""" Dummy database backend for Django. Django uses this if the database ENGINE setting is empty (None or empty string). Each of these API functions, except connection.close(), raises ImproperlyConfigured. """ from django.core.exceptions import ImproperlyConfigured from django.db.backends import * from django.db.back...
ajibawa-2023/Python-Code-Large/train/row_83508
44
73
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83508:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0616, 0.1096, 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_83508:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83508:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83508:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83508:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import hashlib import sys import time from django.conf import settings from django.db.utils import load_backend from django.utils.encoding import force_bytes from django.utils.six.moves import input # The prefix to put on the default database name when creating # the test database. TEST_DATABASE_PREFIX = 'test_' cl...
ajibawa-2023/Python-Code-Large/train/row_83509
238
453
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83509:Import_L1_C0", "label": "hashlib import hashlib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0022, 0.0022, 0, 0.66, 0.0, 154, 0, 1, 0, 0, 154, 0, 0], "semantic": {"name": "hashlib", "arg_names": [], "import_names": ["hashlib"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83509:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83509:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83509:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83509:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
from __future__ import unicode_literals import datetime import decimal import hashlib import logging from time import time from django.conf import settings from django.utils.encoding import force_bytes from django.utils.timezone import utc logger = logging.getLogger('django.db.backends') class CursorWrapper(objec...
ajibawa-2023/Python-Code-Large/train/row_83510
98
152
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83510:ImportFrom_L1_C0", "label": "from __future__ import unicode_literals", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0066, 0.0066, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "imp...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83510:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83510:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83510:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83510:Assign_L19_C8"}, {"f": "ajibawa-2023/Python-...
import re from django.db.backends import BaseDatabaseIntrospection field_size_re = re.compile(r'^\s*(?:var)?char\s*\(\s*(\d+)\s*\)\s*$') def get_field_size(name): """ Extract the size number from a "varchar(11)" type name """ m = field_size_re.search(name) return int(m.group(1)) if m else None # This li...
ajibawa-2023/Python-Code-Large/train/row_83511
89
184
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83511:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0054, 0.0054, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83511:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83511:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83511:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83511:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import os import sys from django.db.backends import BaseDatabaseClient class DatabaseClient(BaseDatabaseClient): executable_name = 'sqlite3' def runshell(self): args = [self.executable_name, self.connection.settings_dict['NAME']] if os.name == 'nt': sys.exit(os.sys...
ajibawa-2023/Python-Code-Large/train/row_83512
10
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_83512:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0625, 0.0625, 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_83512:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83512:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83512:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83512:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import os import sys from django.db.backends.creation import BaseDatabaseCreation from django.utils.six.moves import input class DatabaseCreation(BaseDatabaseCreation): # SQLite doesn't actually support most of these types, but it "does the right # thing" given more verbose field definitions, so leave them as ...
ajibawa-2023/Python-Code-Large/train/row_83513
46
90
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83513:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0111, 0.0111, 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_83513:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83513:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83513:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83513:FunctionDef_L35_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" SQLite3 backend for django. Works with either the pysqlite2 module or the sqlite3 module in the standard library. """ from __future__ import unicode_literals import datetime import decimal import warnings import re import sys from django.db import utils from django.db.backends import * from django.db.backends.si...
ajibawa-2023/Python-Code-Large/train/row_83514
224
419
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83514:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0084, 0.0143, 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_83514:Try_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83514:Try_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83514:Try_L28_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83514:ImportFrom_L29_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
from django.db.utils import DatabaseError try: from django.utils.six.moves import _thread as thread except ImportError: from django.utils.six.moves import _dummy_thread as thread from contextlib import contextmanager from django.conf import settings from django.db import DEFAULT_DB_ALIAS from django.db.backen...
ajibawa-2023/Python-Code-Large/train/row_83515
506
1,110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83515:ImportFrom_L1_C0", "label": "from django.db.utils import DatabaseError", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0009, 0.0009, 0, 0.66, 0.0, 495, 0, 1, 0, 0, 495, 0, 0], "semantic": {"name": "django.db.utils", "arg_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83515:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83515:ImportFrom_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83515:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83515:ImportFrom_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
from django.db.backends import BaseDatabaseIntrospection import cx_Oracle import re foreign_key_re = re.compile(r"\sCONSTRAINT `[^`]*` FOREIGN KEY \(`([^`]*)`\) REFERENCES `([^`]*)` \(`([^`]*)`\)") class DatabaseIntrospection(BaseDatabaseIntrospection): # Maps type objects to Django Field types. data_types_re...
ajibawa-2023/Python-Code-Large/train/row_83516
48
117
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83516:ImportFrom_L1_C0", "label": "from django.db.backends import BaseDatabaseIntrospection", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0085, 0.0085, 0, 0.66, 0.0, 981, 0, 1, 0, 0, 981, 0, 0], "semantic": {"name": "django.db.backend...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83516:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83516:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83516:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83516:Try_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
from django.db.models.sql import compiler # The izip_longest was renamed to zip_longest in py3 try: from itertools import zip_longest except ImportError: from itertools import izip_longest as zip_longest class SQLCompiler(compiler.SQLCompiler): def resolve_columns(self, row, fields=()): # If this ...
ajibawa-2023/Python-Code-Large/train/row_83517
32
73
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83517:ImportFrom_L1_C0", "label": "from django.db.models.sql import compiler", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0137, 0, 0.66, 0.0, 841, 0, 1, 0, 0, 841, 0, 0], "semantic": {"name": "django.db.models.sql", "arg_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83517:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83517:ImportFrom_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83517:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83517:ImportFrom_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
import os import sys from django.db.backends import BaseDatabaseClient class DatabaseClient(BaseDatabaseClient): executable_name = 'sqlplus' def runshell(self): conn_string = self.connection._connect_string() args = [self.executable_name, "-L", conn_string] if os.name == 'nt': ...
ajibawa-2023/Python-Code-Large/train/row_83518
11
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_83518:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0625, 0.0625, 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_83518:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83518:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83518:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83518:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import sys import time from django.db.backends.creation import BaseDatabaseCreation from django.utils.six.moves import input TEST_DATABASE_PREFIX = 'test_' PASSWORD = 'Im_a_lumberjack' class DatabaseCreation(BaseDatabaseCreation): # This dictionary maps Field objects to their associated Oracle column # types,...
ajibawa-2023/Python-Code-Large/train/row_83519
151
276
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83519:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0036, 0.0036, 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_83519:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83519:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83519:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83519:FunctionDef_L44_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" Oracle database backend for Django. Requires cx_Oracle: http://cx-oracle.sourceforge.net/ """ from __future__ import unicode_literals import datetime import decimal import sys import warnings def _setup_environment(environ): import platform # Cygwin requires some special voodoo to set the environment var...
ajibawa-2023/Python-Code-Large/train/row_83520
459
866
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83520:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0035, 0.0058, 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_83520:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83520:Import_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83520:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83520:If_L17_C4"}, {"f": "ajibawa-2023/Python-Code-L...
from django.conf import settings from django.core import signals from django.core.exceptions import ImproperlyConfigured from django.db.utils import (ConnectionHandler, ConnectionRouter, load_backend, DEFAULT_DB_ALIAS, DatabaseError, IntegrityError) __all__ = ('backend', 'connection', 'connections', 'router', 'Dat...
ajibawa-2023/Python-Code-Large/train/row_83521
32
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_83521:ImportFrom_L1_C0", "label": "from django.conf import settings", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0141, 0.0141, 0, 0.66, 0.0, 128, 0, 1, 0, 0, 128, 0, 0], "semantic": {"name": "django.conf", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83521:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83521:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83521:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83521:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-...
from __future__ import unicode_literals import difflib import json import os import re import socket import sys from copy import copy from functools import wraps try: from urllib.parse import urlsplit, urlunsplit except ImportError: # Python 2 from urlparse import urlsplit, urlunsplit import select import ...
ajibawa-2023/Python-Code-Large/train/row_83522
603
1,183
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83522:ImportFrom_L1_C0", "label": "from __future__ import unicode_literals", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0008, 0.0008, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "imp...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83522:Try_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83522:ImportFrom_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83522:Try_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83522:ImportFrom_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
import unittest as real_unittest from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db.models import get_app, get_apps from django.test import _doctest as doctest from django.test.utils import setup_test_environment, teardown_test_environment from django.test.testcases...
ajibawa-2023/Python-Code-Large/train/row_83523
182
374
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83523:Import_L1_C0", "label": "unittest import real_unittest", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0027, 0.0027, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["real...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83523:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83523:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83523:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83523:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Co...
from __future__ import unicode_literals import sys import os import re import mimetypes from copy import copy from io import BytesIO try: from urllib.parse import unquote, urlparse, urlsplit except ImportError: # Python 2 from urllib import unquote from urlparse import urlparse, urlsplit from django.c...
ajibawa-2023/Python-Code-Large/train/row_83524
296
589
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83524:ImportFrom_L1_C0", "label": "from __future__ import unicode_literals", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0017, 0.0017, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "imp...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83524:Try_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83524:ImportFrom_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83524:Try_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83524:ImportFrom_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# This is a slightly modified version of the doctest.py that shipped with Python 2.5 # It incorporates changes that have been submitted to the Python ticket tracker # as ticket #1521051. These changes allow for a DoctestRunner and Doctest base # class to be specified when constructing a DoctestSuite. # Module doctest....
ajibawa-2023/Python-Code-Large/train/row_83525
940
2,748
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83525:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 51], "level": 0, "parent": null, "vector": [8, 0, 0.0118, 0.0138, 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_83525:If_L110_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83525:FunctionDef_L112_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83525:FunctionDef_L112_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83525:FunctionDef_L113_C8"}, {"f": "ajibawa-2023/Pyth...
import os import time from django.conf import settings from django.db import connections from django.dispatch import receiver, Signal from django.utils import timezone from django.utils.functional import empty template_rendered = Signal(providing_args=["template", "context"]) setting_changed = Signal(providing_args=...
ajibawa-2023/Python-Code-Large/train/row_83526
50
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_83526:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0123, 0.0123, 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_83526:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83526:If_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83526:If_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83526:If_L22_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
import re import warnings from xml.dom.minidom import parseString, Node from django.conf import settings, UserSettingsHolder from django.core import mail from django.http import request from django.template import Template, loader, TemplateDoesNotExist from django.template.loaders import cached from django.test.signal...
ajibawa-2023/Python-Code-Large/train/row_83527
189
340
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83527:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0029, 0.0029, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83527:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83527:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83527:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83527:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-...
""" Comparing two html documents. """ from __future__ import unicode_literals import re from django.utils.encoding import force_text from django.utils.html_parser import HTMLParser, HTMLParseError from django.utils import six from django.utils.encoding import python_2_unicode_compatible WHITESPACE = re.compile('\s+...
ajibawa-2023/Python-Code-Large/train/row_83528
157
238
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83528:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0084, 0.0126, 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_83528:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83528:Return_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83528:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83528:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-...
""" Django Unit Test and Doctest framework. """ from django.test.client import Client, RequestFactory from django.test.testcases import (TestCase, TransactionTestCase, SimpleTestCase, LiveServerTestCase, skipIfDBFeature, skipUnlessDBFeature ) from django.test.utils import Approximate
ajibawa-2023/Python-Code-Large/train/row_83529
4
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_83529:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.3, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ...
[]
#!/bin/env python import xml.dom.minidom as dom import sys import struct WEAP_NUM = 780 struct_fmt = "<H BBHBBBB 8B8B8b8b8b8b8H bbBBBB" def pack_weapon(dict): l = [] l.append(dict['drain']) l.append(dict['shotRepeat']) l.append(dict['multi']) l.append(dict['weapAni']) l.append(dict['max']) l.append(dict['tx...
ajibawa-2023/Python-Code-Large/train/row_83530
167
233
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83530:Import_L3_C0", "label": "xml.dom.minidom import dom", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0129, 0.0043, 0, 0.66, 0.0, 770, 0, 1, 0, 0, 770, 0, 0], "semantic": {"name": "xml.dom.minidom", "arg_names": [], "import_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83530:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83530:Assign_L12_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83530:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83530:Expr_L14_C1"}, {"f": "ajibawa-2023/Python-Code...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
ajibawa-2023/Python-Code-Large/train/row_83532
38
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83532:Import_L26_C0", "label": "os import os", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.3514, 0.0135, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83532:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83532:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83532:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83532:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python import xml.parsers.expat; import sys; import re; parser=xml.parsers.expat.ParserCreate('UTF-8'); values_en = {} values_lang = {} values_hash = {} name='' def parse(lang, values): def start_element(n, attrs): global name; if n != u'string': return name=attrs[u'name'] def end_element(...
ajibawa-2023/Python-Code-Large/train/row_83533
53
67
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83533:Import_L3_C0", "label": "xml.parsers.expat import xml.parsers.expat", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0448, 0.0149, 0, 0.66, 0.0, 573, 0, 1, 0, 0, 573, 0, 0], "semantic": {"name": "xml.parsers.expat", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83533:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83533:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83533:FunctionDef_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_83533:If_L16_C4"}, {"f": "ajibawa-2023/Python-C...
#!/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_83535
11
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83535:ImportFrom_L17_C0", "label": "from google.appengine.ext import webapp", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0294, 0, 0.66, 0.0, 167, 0, 1, 0, 0, 167, 0, 0], "semantic": {"name": "google.appengine.ext", "arg_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83535:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83535:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83535:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83535:Expr_L23_C8"}, {"f": "ajibawa-2023/Python-Co...
#-****************************************************************************** # # Copyright (c) 2014, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83536
91
175
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83536:Import_L37_C0", "label": "os import os", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.2114, 0.0057, 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_83536:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83536:FunctionDef_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83536:FunctionDef_L47_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83536:Assign_L49_C8"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/env python #-****************************************************************************** # # Copyright (c) 2012-2014, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and bina...
ajibawa-2023/Python-Code-Large/train/row_83537
8
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_83537:Import_L38_C0", "label": "os import os", "type": "import", "loc": [38, 38], "level": 0, "parent": null, "vector": [1, 0, 0.6441, 0.0169, 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_83537:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83537:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83537:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83537:For_L43_C4"}, {"f": "ajibawa-2023/Python-Code-...
#-****************************************************************************** # # Copyright (c) 2013, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83539
45
135
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83539:Import_L37_C0", "label": "re import re", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.2741, 0.0074, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83539:Try_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83539:Import_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83539:Try_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83539:Import_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
#! /usr/bin/env python #-****************************************************************************** # # Copyright (c) 2012-2014, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and bina...
ajibawa-2023/Python-Code-Large/train/row_83540
487
912
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83540:Import_L38_C0", "label": "os import os", "type": "import", "loc": [38, 38], "level": 0, "parent": null, "vector": [1, 0, 0.0417, 0.0011, 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_83540:ClassDef_L73_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83540:Assign_L74_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83540:ClassDef_L73_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83540:Assign_L75_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#! /usr/bin/env python #-****************************************************************************** # # Copyright (c) 2012-2013, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and bina...
ajibawa-2023/Python-Code-Large/train/row_83543
199
305
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83543:Import_L38_C0", "label": "os import os", "type": "import", "loc": [38, 38], "level": 0, "parent": null, "vector": [1, 0, 0.1246, 0.0033, 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_83543:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83543:FunctionDef_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83543:FunctionDef_L46_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83543:Expr_L47_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/env python #-****************************************************************************** # # Copyright (c) 2012-2013, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and bina...
ajibawa-2023/Python-Code-Large/train/row_83545
12
84
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83545:Import_L38_C0", "label": "os import os", "type": "import", "loc": [38, 38], "level": 0, "parent": null, "vector": [1, 0, 0.4524, 0.0119, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name":...
[]
#! /usr/bin/env python #-****************************************************************************** # # Copyright (c) 2012-2013, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and bina...
ajibawa-2023/Python-Code-Large/train/row_83547
14
480
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83547:Import_L38_C0", "label": "os import os", "type": "import", "loc": [38, 38], "level": 0, "parent": null, "vector": [1, 0, 0.0792, 0.0021, 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_83547:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83547:Expr_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83547:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83547:Import_L56_C4"}, {"f": "ajibawa-2023/Python-Code...
#! /usr/bin/env python #-****************************************************************************** # # Copyright (c) 2012-2013, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and bina...
ajibawa-2023/Python-Code-Large/train/row_83548
11
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_83548:Import_L38_C0", "label": "os import os", "type": "import", "loc": [38, 38], "level": 0, "parent": null, "vector": [1, 0, 0.6441, 0.0169, 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_83548:If_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83548:Assign_L45_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83548:If_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83548:Assign_L47_C1"}]
#-****************************************************************************** # # Copyright (c) 2012-2014, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or witho...
ajibawa-2023/Python-Code-Large/train/row_83549
589
923
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83549:Import_L37_C0", "label": "os import os", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.0401, 0.0011, 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_83549:FunctionDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83549:Assign_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83549:FunctionDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83549:Expr_L65_C4"}, {"f": "ajibawa-2023/Python-Code...
#-****************************************************************************** # # Copyright (c) 2012-2014 # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or withou...
ajibawa-2023/Python-Code-Large/train/row_83550
18
168
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83550:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.2202, 0.006, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83550:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83550:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83550:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83550:For_L42_C4"}, {"f": "ajibawa-2023/Python-Code-...
#-****************************************************************************** # # Copyright (c) 2012 - 2013 # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or with...
ajibawa-2023/Python-Code-Large/train/row_83552
27
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83552:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.3246, 0.0088, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83552:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83552:Expr_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83552:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83552:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code...
#-****************************************************************************** # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # mo...
ajibawa-2023/Python-Code-Large/train/row_83553
56
161
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83553:ImportFrom_L36_C0", "label": "from imath import *", "type": "import", "loc": [36, 36], "level": 0, "parent": null, "vector": [1, 0, 0.2236, 0.0062, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83553:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83553:Expr_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83553:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83553:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83554
49
190
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83554:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.1947, 0.0053, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83554:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83554:Return_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83554:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83554:Expr_L51_C4"}, {"f": "ajibawa-2023/Python-Code...
#-****************************************************************************** # # Copyright (c) 2012-2013, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or witho...
ajibawa-2023/Python-Code-Large/train/row_83555
49
129
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83555:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.2868, 0.0078, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83555:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83555:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83555:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83555:Assign_L50_C4"}, {"f": "ajibawa-2023/Python-Code...
import testGeomParam import testXform import testPolyMesh import testCurves import testNurbs import testPoints import testXform import testCamera import testSubDFaceSet import testLight
ajibawa-2023/Python-Code-Large/train/row_83556
10
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_83556:Import_L1_C0", "label": "testGeomParam import testGeomParam", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1, 0.1, 0, 0.66, 0.0, 673, 0, 1, 0, 0, 673, 0, 0], "semantic": {"name": "testGeomParam", "arg_names": [], "import_names": ...
[]
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83557
39
129
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83557:ImportFrom_L37_C0", "label": "from alembic.AbcCoreAbstract import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.2868, 0.0078, 0, 0.66, 0.0, 810, 0, 1, 0, 0, 810, 0, 0], "semantic": {"name": "alembic.AbcCoreAbstract", "arg_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83557:FunctionDef_L75_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83557:Assign_L78_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83557:FunctionDef_L75_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83557:Assign_L79_C4"}, {"f": "ajibawa-2023/Python-Co...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83558
57
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_83558:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.2587, 0.007, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83558:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83558:Assign_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83558:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83558:Assign_L53_C4"}, {"f": "ajibawa-2023/Python-Co...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83560
25
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83560:Import_L37_C0", "label": "imath import imath", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.4744, 0.0128, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["imath"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83560:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83560:Expr_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83560:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83560:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or wi...
ajibawa-2023/Python-Code-Large/train/row_83561
36
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83561:ImportFrom_L38_C0", "label": "from buildTestData import *", "type": "import", "loc": [38, 38], "level": 0, "parent": null, "vector": [1, 0, 0.3619, 0.0095, 0, 0.66, 0.0, 982, 0, 1, 0, 0, 982, 0, 0], "semantic": {"name": "buildTestData", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83561:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83561:If_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83561:If_L41_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83561:Return_L42_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or wi...
ajibawa-2023/Python-Code-Large/train/row_83562
21
68
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83562:ImportFrom_L38_C0", "label": "from buildTestData import *", "type": "import", "loc": [38, 38], "level": 0, "parent": null, "vector": [1, 0, 0.5588, 0.0147, 0, 0.66, 0.0, 982, 0, 1, 0, 0, 982, 0, 0], "semantic": {"name": "buildTestData", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83562:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83562:Assign_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83562:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83562:For_L45_C4"}, {"f": "ajibawa-2023/Python-Code-...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83563
232
395
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83563:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.0937, 0.0025, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83563:FunctionDef_L61_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83563:Return_L62_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83563:FunctionDef_L64_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83563:Return_L65_C4"}, {"f": "ajibawa-2023/Python-Co...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83564
12
73
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83564:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.5068, 0.0137, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83564:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83564:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83564:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83564:For_L43_C4"}, {"f": "ajibawa-2023/Python-Code-...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or wi...
ajibawa-2023/Python-Code-Large/train/row_83565
69
188
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83565:ImportFrom_L37_C0", "label": "from alembic.AbcCoreAbstract import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.1968, 0.0053, 0, 0.66, 0.0, 810, 0, 1, 0, 0, 810, 0, 0], "semantic": {"name": "alembic.AbcCoreAbstract", "arg_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83565:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83565:Return_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83565:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83565:Expr_L47_C4"}, {"f": "ajibawa-2023/Python-Code...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83566
91
208
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83566:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.1779, 0.0048, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83566:FunctionDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83566:Expr_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83566:FunctionDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83566:Assign_L58_C4"}, {"f": "ajibawa-2023/Python-Code...
#-****************************************************************************** # # Copyright (c) 2012-2013, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or witho...
ajibawa-2023/Python-Code-Large/train/row_83567
86
208
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83567:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.1779, 0.0048, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83567:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83567:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83567:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83567:Assign_L50_C4"}, {"f": "ajibawa-2023/Python-Code...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83568
41
115
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83568:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.3217, 0.0087, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83568:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83568:Return_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83568:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83568:Expr_L49_C4"}, {"f": "ajibawa-2023/Python-Code...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83569
25
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_83569:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.009, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83569:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83569:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83569:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83569:For_L42_C4"}, {"f": "ajibawa-2023/Python-Code-...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83570
53
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_83570:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.2587, 0.007, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83570:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83570:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83570:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83570:Assign_L50_C4"}, {"f": "ajibawa-2023/Python-Code...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83571
75
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_83571:ImportFrom_L37_C0", "label": "from buildTestData import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.2606, 0.007, 0, 0.66, 0.0, 982, 0, 1, 0, 0, 982, 0, 0], "semantic": {"name": "buildTestData", "arg_names": [], "import_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83571:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83571:Assign_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83571:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83571:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Co...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83572
11
93
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83572:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.3978, 0.0108, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83572:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83572:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83572:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83572:For_L42_C4"}, {"f": "ajibawa-2023/Python-Code-...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83573
51
129
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83573:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.2868, 0.0078, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83573:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83573:Expr_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83573:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83573:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83574
13
144
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83574:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.2569, 0.0069, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83574:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83574:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83574:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83574:For_L42_C4"}, {"f": "ajibawa-2023/Python-Code-...
#-****************************************************************************** # # Copyright (c) 2012-2013, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or witho...
ajibawa-2023/Python-Code-Large/train/row_83575
111
263
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83575:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.1407, 0.0038, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83575:FunctionDef_L73_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83575:Assign_L74_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83575:FunctionDef_L73_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83575:Assign_L75_C4"}, {"f": "ajibawa-2023/Python-Co...
#-****************************************************************************** # # Copyright (c) 2013, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83578
29
92
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83578:ImportFrom_L37_C0", "label": "from alembic.Abc import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.4022, 0.0109, 0, 0.66, 0.0, 617, 0, 1, 0, 0, 617, 0, 0], "semantic": {"name": "alembic.Abc", "arg_names": [], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83578:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83578:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83578:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83578:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Co...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83579
59
138
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83579:ImportFrom_L37_C0", "label": "from alembic import Abc", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.2681, 0.0072, 0, 0.66, 0.0, 922, 0, 1, 0, 0, 922, 0, 0], "semantic": {"name": "alembic", "arg_names": [], "import_names": ["Ab...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83579:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83579:Return_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83579:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83579:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Co...
#-****************************************************************************** # # Copyright (c) 2012 - 2013 # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or with...
ajibawa-2023/Python-Code-Large/train/row_83580
50
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_83580:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.2587, 0.007, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83580:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83580:Expr_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83580:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83580:Assign_L51_C4"}, {"f": "ajibawa-2023/Python-Code...
#-****************************************************************************** # # Copyright (c) 2012, # Sony Pictures Imageworks Inc. and # Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
ajibawa-2023/Python-Code-Large/train/row_83581
51
116
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83581:ImportFrom_L37_C0", "label": "from imath import *", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.319, 0.0086, 0, 0.66, 0.0, 918, 0, 1, 0, 0, 918, 0, 0], "semantic": {"name": "imath", "arg_names": [], "import_names": ["*"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83581:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83581:Return_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83581:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83581:Expr_L47_C4"}, {"f": "ajibawa-2023/Python-Code...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
ajibawa-2023/Python-Code-Large/train/row_83582
112
219
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83582:ImportFrom_L37_C0", "label": "from maya import MayaCmds", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.1689, 0.0046, 0, 0.66, 0.0, 481, 0, 1, 0, 0, 481, 0, 0], "semantic": {"name": "maya", "arg_names": [], "import_names": ["May...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83582:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83582:Assign_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83582:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83582:Expr_L45_C4"}, {"f": "ajibawa-2023/Python-Code...