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 |
|---|---|---|---|---|---|---|---|
# This is the version of this source code.
manual_verstr = "1.5"
auto_build_num = "211"
verstr = manual_verstr + "." + auto_build_num
try:
from pyutil.version_class import Version as pyutil_Version
__version__ = pyutil_Version(verstr)
except (ImportError, ValueError):
# Maybe there is no pyutil insta... | ajibawa-2023/Python-Code-Large/train/row_79389 | 8 | 18 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79389:Assign_L3_C0", "label": "manual_verstr =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 189, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "manual_verstr", "arg_names": [], "import_names": [],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79389:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79389:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79389:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79389:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
"""
The MIT License
Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ... | ajibawa-2023/Python-Code-Large/train/row_79390 | 10 | 41 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79390:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.2927, 0.561, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79390:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79390:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79390:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79390:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-... |
"""
The MIT License
Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ... | ajibawa-2023/Python-Code-Large/train/row_79391 | 9 | 40 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79391:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.575, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79391:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79391:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79391:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79391:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-... |
# Early, and incomplete implementation of -04.
#
import re
import urllib
RESERVED = ":/?#[]@!$&'()*+,;="
OPERATOR = "+./;?|!@"
EXPLODE = "*+"
MODIFIER = ":^"
TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE)
VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part... | ajibawa-2023/Python-Code-Large/train/row_79393 | 112 | 147 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79393:Import_L3_C0", "label": "re import re", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0068, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79393:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79393:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79393:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79393:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro... |
#!/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_79394 | 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_79394: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_79394:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79394:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79394:FunctionDef_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79394:If_L16_C4"}, {"f": "ajibawa-2023/Python-C... |
import os, re
def parse_state(l, state):
l = l.strip()
if l in ['--TEST--', '--CSS--', '--EXPECT--', '--SETTINGS--']:
return l
return state
def parse_csst(filename):
f = open(filename, 'r')
print filename
css = open('tmp.css', 'w')
state = ''
for l in f:
old_state = state
st... | ajibawa-2023/Python-Code-Large/train/row_79395 | 57 | 85 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79395:Import_L1_C0", "label": "os import os, re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0118, 0.0118, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "re"], "rhs_call... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79395:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79395:Assign_L4_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79395:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79395:If_L5_C2"}, {"f": "ajibawa-2023/Python-Code-Large... |
import os
#This file is adapted from http://www.scons.org/wiki/SconstructMultiple
#get the mode flag from the command line
#default to 'release' if the user didn't specify
mymode = ARGUMENTS.get('mode', 'release') #holds current mode
#check if the user has been naughty: only 'debug' or 'release' allowed
if not (mym... | ajibawa-2023/Python-Code-Large/train/row_79396 | 13 | 31 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79396:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0323, 0.0323, 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_79396:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79396:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79396:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79396:Expr_L11_C4"}] |
#This file is adapted from http://www.scons.org/wiki/SconstructMultiple
import glob
#get all the build variables we need
Import('env', 'project', 'mymode', 'debugcflags', 'releasecflags')
localenv = env.Copy()
buildroot = '../' + mymode #holds the root of the build directory tree
builddir = buildroot + '/' + projec... | ajibawa-2023/Python-Code-Large/train/row_79397 | 12 | 32 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79397:Import_L3_C0", "label": "glob import glob", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0938, 0.0312, 0, 0.66, 0.0, 958, 0, 1, 0, 0, 958, 0, 0], "semantic": {"name": "glob", "arg_names": [], "import_names": ["glob"], "rhs_call_n... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79397:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79397:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79397:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79397:Expr_L18_C4"}] |
#====================================================================
# 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_79398 | 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_79398: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_79398:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79398:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79398:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79398:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-... |
#!/usr/bin/python2.6
#
# Simple http server to emulate api.playfoursquare.com
import logging
import shutil
import sys
import urlparse
import SimpleHTTPServer
import BaseHTTPServer
class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
"""Handle playfoursquare.com requests, for testing."""
def do_GET(self... | ajibawa-2023/Python-Code-Large/train/row_79399 | 63 | 85 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79399:Import_L5_C0", "label": "logging import logging", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0118, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79399:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79399:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79399:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79399:FunctionDef_L17_C2"}, {"f": "ajibawa-2023/Python-Code-... |
#!/usr/bin/python
import datetime
import sys
import textwrap
import common
from xml.dom import pulldom
PARSER = """\
/**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquare.parsers;
import com.joelapenna.foursquare.Foursquare;
import com.joelapenna.foursquare.error.FoursquareError;
import com.joel... | ajibawa-2023/Python-Code-Large/train/row_79400 | 42 | 149 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79400:Import_L3_C0", "label": "datetime import datetime", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0201, 0.0067, 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_79400:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79400:Assign_L83_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79400:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79400:Expr_L85_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
"""
Pull a oAuth protected page from foursquare.
Expects ~/.oget to contain (one on each line):
CONSUMER_KEY
CONSUMER_KEY_SECRET
USERNAME
PASSWORD
Don't forget to chmod 600 the file!
"""
import httplib
import os
import re
import sys
import urllib
import urllib2
import urlparse
import user
from xml.... | ajibawa-2023/Python-Code-Large/train/row_79401 | 50 | 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_79401:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0631, 0.0991, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79401:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79401:Return_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79401:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79401:Assign_L57_C2"}, {"f": "ajibawa-2023/Python-Co... |
#!/usr/bin/python
import os
import subprocess
import sys
BASEDIR = '../main/src/com/joelapenna/foursquare'
TYPESDIR = '../captures/types/v1'
captures = sys.argv[1:]
if not captures:
captures = os.listdir(TYPESDIR)
for f in captures:
basename = f.split('.')[0]
javaname = ''.join([c.capitalize() for c in basena... | ajibawa-2023/Python-Code-Large/train/row_79402 | 20 | 27 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79402:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.037, 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_79402:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79402:Assign_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79402:For_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79402:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro... |
#!/usr/bin/python
import logging
from xml.dom import minidom
from xml.dom import pulldom
BOOLEAN = "boolean"
STRING = "String"
GROUP = "Group"
# Interfaces that all FoursquareTypes implement.
DEFAULT_INTERFACES = ['FoursquareType']
# Interfaces that specific FoursqureTypes implement.
INTERFACES = {
}
DEFAULT_CLA... | ajibawa-2023/Python-Code-Large/train/row_79403 | 44 | 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_79403:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0088, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79403:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79403:Expr_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79403:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79403:Assign_L71_C2"}, {"f": "ajibawa-2023/Python-Code... |
from copy import copy
import cosmology
import defaults
import hod
import mass_function
import numpy
from scipy import integrate
from scipy import special
from scipy.interpolate import InterpolatedUnivariateSpline
"""Classes for describing a basic halo model.
Given an input HOD object and cosmological and halo paramet... | ajibawa-2023/Python-Code-Large/train/row_79405 | 603 | 1,413 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79405:ImportFrom_L1_C0", "label": "from copy import copy", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0007, 0.0007, 0, 0.66, 0.0, 739, 0, 1, 0, 0, 739, 0, 0], "semantic": {"name": "copy", "arg_names": [], "import_names": ["copy"], "r... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79405:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79405:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79405:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79405:FunctionDef_L41_C4"}, {"f": "ajibawa-2023/Python-Code-... |
import cosmology
import defaults
import numpy
from scipy import integrate
from scipy.interpolate import InterpolatedUnivariateSpline
"""Classes for encoding basic cosmological parameters and quantities.
Given a cosmology, we can derive a mass function object. This should be able
to return the abundance of halo at a ... | ajibawa-2023/Python-Code-Large/train/row_79406 | 247 | 543 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79406:Import_L1_C0", "label": "cosmology import cosmology", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0018, 0.0018, 0, 0.66, 0.0, 271, 0, 1, 0, 0, 271, 0, 0], "semantic": {"name": "cosmology", "arg_names": [], "import_names": ["cosm... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79406:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79406:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79406:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79406:FunctionDef_L38_C4"}, {"f": "ajibawa-2023/Python-Code-... |
import defaults
import numpy
from numpy import vectorize
from scipy import integrate
from scipy import special
from scipy.interpolate import InterpolatedUnivariateSpline
"""Classes for encoding basic cosmological parameters and quantities.
This is inspired by the CosmoPy package. The intent is to have a singleton
ob... | ajibawa-2023/Python-Code-Large/train/row_79407 | 469 | 1,147 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79407:Import_L1_C0", "label": "defaults import defaults", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0009, 0.0009, 0, 0.66, 0.0, 233, 0, 1, 0, 0, 233, 0, 0], "semantic": {"name": "defaults", "arg_names": [], "import_names": ["default... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79407:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79407:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79407:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79407:FunctionDef_L39_C4"}, {"f": "ajibawa-2023/Python-Code-... |
import cosmology
import defaults
import halo
import hod
import mass_function
import numpy
import perturbation_spectra
from scipy import integrate
from scipy import special
from scipy.interpolate import InterpolatedUnivariateSpline
from scipy.interpolate import RectBivariateSpline
class HaloTrispectrumOneHalo(halo.Halo... | ajibawa-2023/Python-Code-Large/train/row_79408 | 374 | 838 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79408:Import_L1_C0", "label": "cosmology import cosmology", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0012, 0.0012, 0, 0.66, 0.0, 271, 0, 1, 0, 0, 271, 0, 0], "semantic": {"name": "cosmology", "arg_names": [], "import_names": ["cosm... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79408:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79408:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79408:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79408:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-... |
"""
simulation_design.py
Created by Michael Schneider on 2012-10-12 modified by Chris Morrison 2012-11-4
"""
import defaults
import numpy
import pandas
__author__ = ("Michael Schneider, Chris Morrison")
default_parameter_dict = {"cosmo_dict":defaults.default_cosmo_dict,
"halo_dict" : defau... | ajibawa-2023/Python-Code-Large/train/row_79409 | 132 | 293 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79409:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0102, 0.0171, 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_79409:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79409:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79409:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79409:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code... |
import defaults
import numpy
from scipy import special
"""Classes for implementing a halo occupation distribution.
A halo occupation distribution describes the population of a given dark matter
halo. In principle, this distribution can be a function of any number of halo
and galaxy variables. For the purposes of th... | ajibawa-2023/Python-Code-Large/train/row_79410 | 133 | 347 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79410:Import_L1_C0", "label": "defaults import defaults", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0029, 0.0029, 0, 0.66, 0.0, 233, 0, 1, 0, 0, 233, 0, 0], "semantic": {"name": "defaults", "arg_names": [], "import_names": ["default... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79410:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79410:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79410:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79410:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-... |
#!/usr/bin/python
import argparse
import numpy
### chomp modules we are currently loading.
import correlation
import cosmology
import defaults
import halo
import kernel
"""
Wrapper script for computing the shear-shear power spectrum for different
redshifts, cosmologies and Fourier modes. The script uses the latest
pa... | ajibawa-2023/Python-Code-Large/train/row_79411 | 40 | 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_79411:Import_L2_C0", "label": "argparse import argparse", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0165, 0.0083, 0, 0.66, 0.0, 325, 0, 1, 0, 0, 325, 0, 0], "semantic": {"name": "argparse", "arg_names": [], "import_names": ["argpars... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79411:If_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79411:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79411:If_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79411:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_7... |
### This is a example python script for creating and writing the values of an
### angular correlation function and covariance from the import of chomp down to
### writing of the values. This example uses the correlation induced from
### galaxy-galaxy magnification as the example, however any correlation
### currentl... | ajibawa-2023/Python-Code-Large/train/row_79412 | 33 | 162 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79412:Import_L13_C0", "label": "correlation import correlation", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.0802, 0.0062, 0, 0.66, 0.0, 975, 0, 1, 0, 0, 975, 0, 0], "semantic": {"name": "correlation", "arg_names": [], "import_names... | [] |
### This is a example python script for creating and writing the values of an
### angular correlation function from the import of chomp down to writing of the
### correlation. This example uses the correlation induced from galaxy-galaxy
### magnification as the example, however any correlation currently available
### ... | ajibawa-2023/Python-Code-Large/train/row_79413 | 27 | 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_79413:Import_L13_C0", "label": "correlation import correlation", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.0909, 0.007, 0, 0.66, 0.0, 975, 0, 1, 0, 0, 975, 0, 0], "semantic": {"name": "correlation", "arg_names": [], "import_names"... | [] |
import cosmology
import defaults
import numpy
from scipy import integrate
from scipy import special
from scipy.interpolate import InterpolatedUnivariateSpline
from scipy.interpolate import RectBivariateSpline
from scipy.interpolate import UnivariateSpline
import copy
"""This is a set of classes for constructing an ang... | ajibawa-2023/Python-Code-Large/train/row_79414 | 498 | 1,241 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79414:Import_L1_C0", "label": "cosmology import cosmology", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0008, 0.0008, 0, 0.66, 0.0, 271, 0, 1, 0, 0, 271, 0, 0], "semantic": {"name": "cosmology", "arg_names": [], "import_names": ["cosm... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79414:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79414:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79414:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79414:FunctionDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-... |
from copy import copy
import cosmology
import defaults
import halo
import hod
import kernel
import numpy
from scipy import special
from scipy import integrate
from scipy.interpolate import InterpolatedUnivariateSpline
"""
Classes describing different correlation functions.
Each correlation function can be defined as
... | ajibawa-2023/Python-Code-Large/train/row_79415 | 229 | 498 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79415:ImportFrom_L1_C0", "label": "from copy import copy", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.002, 0.002, 0, 0.66, 0.0, 739, 0, 1, 0, 0, 739, 0, 0], "semantic": {"name": "copy", "arg_names": [], "import_names": ["copy"], "rhs... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79415:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79415:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79415:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79415:FunctionDef_L61_C4"}, {"f": "ajibawa-2023/Python-Code-... |
"""
This module expresses the default values for the cosmology, halo model, and
the precision of all modules within the code.
"""
### parameters specifying a cosmology.
default_cosmo_dict = {
"omega_m0": 0.278-4.15e-5/0.7**2, ### total matter density at z=0
"omega_b0": 0.046, ### baryon density at z=0
"omeg... | ajibawa-2023/Python-Code-Large/train/row_79416 | 6 | 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_79416:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0272, 0.0435, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat... | [] |
#!/usr/bin/env python
# encoding: utf-8
import cosmology
import numpy
"""
Class for perturbation theory expressions for the matter 3 and 4-point
functions.
References
[GGRW] M. H. Goroff, B. Grinstein, S.-J. Rey, and M. B. Wise,
“Coupling of modes of cosmological mass density fluctuations,”
ApJ, vol. 311, pp. 6–14,... | ajibawa-2023/Python-Code-Large/train/row_79417 | 157 | 345 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79417:Import_L3_C0", "label": "cosmology import cosmology", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0087, 0.0029, 0, 0.66, 0.0, 271, 0, 1, 0, 0, 271, 0, 0], "semantic": {"name": "cosmology", "arg_names": [], "import_names": ["cosm... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79417:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79417:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79417:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79417:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code... |
import cosmology
import correlation
import defaults
import halo
import halo_trispectrum
import hod
import kernel
import mass_function
import perturbation_spectra
import numpy
import unittest
deg_to_rad = numpy.pi/180.0
### In order for the unittests to work correctly, these are the assumed
### precision values of the... | ajibawa-2023/Python-Code-Large/train/row_79418 | 298 | 618 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79418:Import_L1_C0", "label": "cosmology import cosmology", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0016, 0.0016, 0, 0.66, 0.0, 271, 0, 1, 0, 0, 271, 0, 0], "semantic": {"name": "cosmology", "arg_names": [], "import_names": ["cosm... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79418:ClassDef_L126_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79418:FunctionDef_L128_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79418:FunctionDef_L128_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79418:Assign_L129_C8"}, {"f": "ajibawa-2023/Pyt... |
'''
Module which prompts the user for translations and saves them.
TODO: implement
@author: Rodrigo Damazio
'''
class Translator(object):
'''
classdocs
'''
def __init__(self, language):
'''
Constructor
'''
self._language = language
def Translate(self, string_names):
print string_names | ajibawa-2023/Python-Code-Large/train/row_79419 | 8 | 21 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79419:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1905, 0.3333, 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_79419:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79419:Expr_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79419:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79419:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-La... |
'''
Module which brings history information about files from Mercurial.
@author: Rodrigo Damazio
'''
import re
import subprocess
REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*')
def _GetOutputLines(args):
'''
Runs an external process and returns its output as a list of lines.
@param args: the argume... | ajibawa-2023/Python-Code-Large/train/row_79420 | 38 | 94 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79420:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0319, 0.0532, 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_79420:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79420:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79420:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79420:Assign_L18_C2"}, {"f": "ajibawa-2023/Python-Code... |
'''
Module which parses a string XML file.
@author: Rodrigo Damazio
'''
from xml.parsers.expat import ParserCreate
import re
#import xml.etree.ElementTree as ET
class StringsParser(object):
'''
Parser for string XML files.
This object is not thread-safe and should be used for parsing a single file at
a time... | ajibawa-2023/Python-Code-Large/train/row_79421 | 54 | 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_79421:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0261, 0.0435, 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_79421:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79421:Expr_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79421:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79421:FunctionDef_L19_C2"}, {"f": "ajibawa-2023/Python-Code-... |
#!/usr/bin/python
'''
Entry point for My Tracks i18n tool.
@author: Rodrigo Damazio
'''
import mytracks.files
import mytracks.translate
import mytracks.validate
import sys
def Usage():
print 'Usage: %s <command> [<language> ...]\n' % sys.argv[0]
print 'Commands are:'
print ' cleanup'
print ' translate'
p... | ajibawa-2023/Python-Code-Large/train/row_79422 | 58 | 96 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79422:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0417, 0.0521, 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_79422:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79422:Expr_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79422:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79422:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-L... |
'''
Module which compares languague files to the master file and detects
issues.
@author: Rodrigo Damazio
'''
import os
from mytracks.parser import StringsParser
import mytracks.history
class Validator(object):
def __init__(self, languages):
'''
Builds a strings file validator.
Params:
@para... | ajibawa-2023/Python-Code-Large/train/row_79423 | 65 | 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_79423:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0304, 0.0522, 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_79423:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79423:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79423:FunctionDef_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79423:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Co... |
'''
Module for dealing with resource files (but not their contents).
@author: Rodrigo Damazio
'''
import os.path
from glob import glob
import re
MYTRACKS_RES_DIR = 'MyTracks/res'
ANDROID_MASTER_VALUES = 'values'
ANDROID_VALUES_MASK = 'values-*'
def GetMyTracksDir():
'''
Returns the directory in which the MyTrac... | ajibawa-2023/Python-Code-Large/train/row_79424 | 25 | 45 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79424:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0667, 0.1111, 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_79424:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79424:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79424:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79424:Assign_L19_C2"}, {"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_79425 | 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_79425: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_79425:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79425:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79425:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79425: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_79426 | 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_79426: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_79426:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79426:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79426:FunctionDef_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79426:If_L16_C4"}, {"f": "ajibawa-2023/Python-C... |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | ajibawa-2023/Python-Code-Large/train/row_79428 | 17 | 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_79428:Import_L17_C0", "label": "logging import logging", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.425, 0.025, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"]... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79428:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79428:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79428:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79428:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | ajibawa-2023/Python-Code-Large/train/row_79429 | 17 | 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_79429:Import_L17_C0", "label": "logging import logging", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.425, 0.025, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"]... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79429:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79429:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79429:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79429:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
import os
SITE_ROOT = os.path.dirname(os.path.realpath(__file__))
TEMPLATE_DIRS = (
os.path.join(SITE_ROOT, 'templates')
)
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
)
TIME_ZONE = 'America/Chicago' | ajibawa-2023/Python-Code-Large/train/row_79430 | 5 | 13 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79430:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0769, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""... | [] |
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | ajibawa-2023/Python-Code-Large/train/row_79431 | 141 | 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_79431:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0055, 0.0055, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79431:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79431:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79431:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79431:Expr_L22_C8"}, {"f": "ajibawa-2023/Python-Co... |
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | ajibawa-2023/Python-Code-Large/train/row_79432 | 96 | 157 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79432:Import_L19_C0", "label": "tarfile import tarfile", "type": "import", "loc": [19, 19], "level": 0, "parent": null, "vector": [1, 0, 0.121, 0.0064, 0, 0.66, 0.0, 223, 0, 1, 0, 0, 223, 0, 0], "semantic": {"name": "tarfile", "arg_names": [], "import_names": ["tarfile"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79432:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79432:Expr_L52_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79432:FunctionDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79432:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Code... |
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | ajibawa-2023/Python-Code-Large/train/row_79433 | 0 | 13 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [] | [] |
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | ajibawa-2023/Python-Code-Large/train/row_79434 | 27 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79434:ImportFrom_L15_C0", "label": "from python_util.gpumodel import *", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2778, 0.0185, 0, 0.66, 0.0, 658, 0, 1, 0, 0, 658, 0, 0], "semantic": {"name": "python_util.gpumodel", "arg_names": ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79434:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79434:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79434:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79434:Return_L21_C4"}, {"f": "ajibawa-2023/Python-Co... |
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | ajibawa-2023/Python-Code-Large/train/row_79436 | 202 | 289 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79436:Import_L15_C0", "label": "numpy import n", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0519, 0.0035, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["n"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79436:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79436:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79436:FunctionDef_L31_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79436:Assign_L32_C8"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | ajibawa-2023/Python-Code-Large/train/row_79437 | 191 | 291 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79437:ImportFrom_L15_C0", "label": "from python_util.data import *", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0515, 0.0034, 0, 0.66, 0.0, 260, 0, 1, 0, 0, 260, 0, 0], "semantic": {"name": "python_util.data", "arg_names": [], "imp... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79437:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79437:FunctionDef_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79437:FunctionDef_L30_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79437:Expr_L31_C8"}, {"f": "ajibawa-2023/Python-Co... |
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | ajibawa-2023/Python-Code-Large/train/row_79438 | 126 | 194 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79438:Import_L15_C0", "label": "numpy import n", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0773, 0.0052, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["n"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79438:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79438:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79438:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79438:Expr_L25_C8"}, {"f": "ajibawa-2023/Python-Co... |
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | ajibawa-2023/Python-Code-Large/train/row_79440 | 57 | 94 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79440:Import_L15_C0", "label": "re import re", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1596, 0.0106, 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_79440:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79440:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79440:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79440:If_L28_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | ajibawa-2023/Python-Code-Large/train/row_79442 | 0 | 13 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [] | [] |
# Run from the commandline:
#
# python server.py
# POST audio to http://localhost:9000
# GET audio from http://localhost:9000
#
# A simple server to collect audio using python. To be more secure,
# you might want to check the file names and place size restrictions
# on the incoming data.
import cgi
from BaseHTTPSe... | ajibawa-2023/Python-Code-Large/train/row_79443 | 34 | 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_79443:Import_L11_C0", "label": "cgi import cgi", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 0.2075, 0.0189, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79443:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79443:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79443:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79443:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Cod... |
#
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79444 | 13 | 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_79444:Import_L16_C0", "label": "sys import sys", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.4706, 0.0294, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79444:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79444:Assign_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79444:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79444:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/r... |
#
# Copyright (C) 2009 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79446 | 13 | 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_79446:ImportFrom_L16_C0", "label": "from manifest_submodule import SubmoduleManifest", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.4706, 0.0294, 0, 0.66, 0.0, 714, 0, 1, 0, 0, 714, 0, 0], "semantic": {"name": "manifest_submodule", "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79446:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79446:If_L20_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79446:If_L20_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79446:Return_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/trai... |
#
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79447 | 40 | 77 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79447:ClassDef_L16_C0", "label": "ManifestParseError", "type": "class", "loc": [16, 18], "level": 0, "parent": null, "vector": [3, 0, 0.2208, 0.039, 0, 0.66, 0.0, 591, 0, 0, 0, 0, 645, 0, 0], "semantic": {"name": "ManifestParseError", "arg_names": [], "import_names": []... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79447:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79447:Expr_L17_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79447:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79447:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#
# Copyright (C) 2009 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79451 | 90 | 166 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79451:Import_L16_C0", "label": "sys import sys", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.0964, 0.006, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_nam... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79451:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79451:FunctionDef_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79451:FunctionDef_L21_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79451:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Co... |
#
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79452 | 8 | 27 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79452:ImportFrom_L16_C0", "label": "from command import PagedCommand", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.5926, 0.037, 0, 0.66, 0.0, 842, 0, 1, 0, 0, 842, 0, 0], "semantic": {"name": "command", "arg_names": [], "import_name... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79452:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79452:Assign_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79452:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79452:Assign_L20_C2"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79453 | 30 | 61 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79453:Import_L16_C0", "label": "sys import sys", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2623, 0.0164, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79453:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79453:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79453:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79453:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79454 | 36 | 68 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79454:Import_L16_C0", "label": "sys import sys", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2353, 0.0147, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79454:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79454:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79454:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79454:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79456 | 25 | 85 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79456:ImportFrom_L16_C0", "label": "from command import PagedCommand", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1882, 0.0118, 0, 0.66, 0.0, 842, 0, 1, 0, 0, 842, 0, 0], "semantic": {"name": "command", "arg_names": [], "import_nam... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79456:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79456:Assign_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79456:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79456:Assign_L20_C2"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (C) 2009 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79457 | 24 | 61 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79457:ImportFrom_L16_C0", "label": "from optparse import SUPPRESS_HELP", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2623, 0.0164, 0, 0.66, 0.0, 323, 0, 1, 0, 0, 323, 0, 0], "semantic": {"name": "optparse", "arg_names": [], "import_... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79457:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79457:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79457:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79457:Assign_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (C) 2009 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79458 | 26 | 58 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79458:Import_L16_C0", "label": "sys import sys", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2759, 0.0172, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79458:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79458:Assign_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79458:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79458:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (C) 2010 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79459 | 51 | 107 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79459:Import_L16_C0", "label": "sys import sys", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1495, 0.0093, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79459:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79459:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79459:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79459:Assign_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (C) 2009 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79460 | 15 | 35 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79460:Import_L16_C0", "label": "sys import sys", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.4571, 0.0286, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79460:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79460:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79460:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79460:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79461 | 41 | 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_79461:Import_L16_C0", "label": "os import os", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1975, 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_79461:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79461:Assign_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79461:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79461:Assign_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79464 | 1 | 2 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79464:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.5, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "ann... | [] |
#
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79465 | 122 | 252 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79465:Import_L16_C0", "label": "fcntl import fcntl", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.0635, 0.004, 0, 0.66, 0.0, 488, 0, 1, 0, 0, 488, 0, 0], "semantic": {"name": "fcntl", "arg_names": [], "import_names": ["fcntl"], "rhs_... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79465:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79465:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79465:FunctionDef_L34_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79465:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Co... |
#
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79466 | 61 | 107 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79466:Import_L16_C0", "label": "sys import sys", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1495, 0.0093, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79466:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79466:FunctionDef_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79466:FunctionDef_L23_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79466:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Co... |
#
# Copyright (C) 2010 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79467 | 11 | 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_79467:ImportFrom_L16_C0", "label": "from sync import Sync", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.4848, 0.0303, 0, 0.66, 0.0, 706, 0, 1, 0, 0, 706, 0, 0], "semantic": {"name": "sync", "arg_names": [], "import_names": ["Sync"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79467:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79467:Assign_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79467:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79467:Assign_L20_C2"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (C) 2009 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79470 | 67 | 120 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79470:Import_L16_C0", "label": "os import os", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1333, 0.0083, 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_79470:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79470:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79470:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79470:Assign_L25_C2"}, {"f": "ajibawa-2023/Python-Co... |
#
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79471 | 91 | 160 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79471:Import_L16_C0", "label": "os import os", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1, 0.0063, 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_79471:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79471:Return_L42_C17"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79471:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79471:Return_L43_C17"}, {"f": "ajibawa-2023/Python-... |
#
# Copyright (C) 2009 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79472 | 101 | 159 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79472:Import_L16_C0", "label": "os import os", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1006, 0.0063, 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_79472:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79472:FunctionDef_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79472:FunctionDef_L27_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79472:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-... |
#
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79477 | 78 | 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_79477:Import_L16_C0", "label": "os import os", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1119, 0.007, 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_79477:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79477:Expr_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79477:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79477:Assign_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large... |
#
# Copyright (C) 2009 The Android Open Source Project
#
# 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 la... | ajibawa-2023/Python-Code-Large/train/row_79479 | 37 | 77 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79479:Import_L16_C0", "label": "os import os", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2078, 0.013, 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_79479:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79479:FunctionDef_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79479:FunctionDef_L24_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79479:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-... |
#!/usr/bin/env python
# Copyright (c) 2009, Anton Korenyushkin
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice... | ajibawa-2023/Python-Code-Large/train/row_79481 | 2 | 42 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79481:ImportFrom_L29_C0", "label": "from distutils.core import setup", "type": "import", "loc": [29, 29], "level": 0, "parent": null, "vector": [1, 0, 0.6905, 0.0238, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "imp... | [] |
#!/usr/bin/env python
# Copyright (c) 2009, Anton Korenyushkin
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice... | ajibawa-2023/Python-Code-Large/train/row_79483 | 2 | 31 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79483:ImportFrom_L29_C0", "label": "from akshell import main", "type": "import", "loc": [29, 29], "level": 0, "parent": null, "vector": [1, 0, 0.9355, 0.0323, 0, 0.66, 0.0, 754, 0, 1, 0, 0, 754, 0, 0], "semantic": {"name": "akshell", "arg_names": [], "import_names": ["m... | [] |
#!/usr/bin/env python
# Copyright (c) 2009, Anton Korenyushkin
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice... | ajibawa-2023/Python-Code-Large/train/row_79484 | 2 | 42 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79484:ImportFrom_L29_C0", "label": "from distutils.core import setup", "type": "import", "loc": [29, 29], "level": 0, "parent": null, "vector": [1, 0, 0.6905, 0.0238, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "imp... | [] |
#!/usr/bin/env python
# Copyright (c) 2009, Anton Korenyushkin
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice... | ajibawa-2023/Python-Code-Large/train/row_79485 | 2 | 31 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79485:ImportFrom_L29_C0", "label": "from akshell import main", "type": "import", "loc": [29, 29], "level": 0, "parent": null, "vector": [1, 0, 0.9355, 0.0323, 0, 0.66, 0.0, 754, 0, 1, 0, 0, 754, 0, 0], "semantic": {"name": "akshell", "arg_names": [], "import_names": ["m... | [] |
#!/usr/bin/env python
import time
t = time.time()
u = time.gmtime(t)
s = time.strftime('%a, %e %b %Y %T GMT', u)
print 'Content-Type: text/javascript'
print 'Cache-Control: no-cache'
print 'Date: ' + s
print 'Expires: ' + s
print ''
print 'var timeskew = new Date().getTime() - ' + str(t*1000) + ';'
| ajibawa-2023/Python-Code-Large/train/row_79489 | 10 | 11 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79489:Import_L2_C0", "label": "time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1818, 0.0909, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_n... | [] |
#!/usr/bin/python2.4
#
# Copyright 2007 The Python-Twitter Developers
#
# 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... | ajibawa-2023/Python-Code-Large/train/row_79490 | 53 | 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_79490:Import_L18_C0", "label": "os import os", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.2, 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_79490:Try_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79490:ImportFrom_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79490:Try_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79490:ImportFrom_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large... |
#!/usr/bin/python2.4
#
# Copyright 2007 The Python-Twitter Developers
#
# 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... | ajibawa-2023/Python-Code-Large/train/row_79491 | 16 | 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_79491:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2606, 0.0563, 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_79491:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79491:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79491:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79491:FunctionDef_L38_C4"}, {"f": "ajibawa-2023/Python-Code-... |
#!/usr/bin/python2.4
'''Post a message to twitter'''
__author__ = 'dewitt@google.com'
import ConfigParser
import getopt
import os
import sys
import twitter
USAGE = '''Usage: tweet [options] message
This script posts a message to Twitter.
Options:
-h --help : print this help
--consumer-key : the twit... | ajibawa-2023/Python-Code-Large/train/row_79493 | 82 | 141 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79493:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0213, 0.0071, 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_79493:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79493:Expr_L50_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79493:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79493:Expr_L51_C2"}, {"f": "ajibawa-2023/Python-Code-L... |
"""JSON token scanner
"""
import re
try:
from simplejson._speedups import make_scanner as c_make_scanner
except ImportError:
c_make_scanner = None
__all__ = ['make_scanner']
NUMBER_RE = re.compile(
r'(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?',
(re.VERBOSE | re.MULTILINE | re.DOTALL))
def py_make_scan... | ajibawa-2023/Python-Code-Large/train/row_79494 | 48 | 65 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79494:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0231, 0.0308, 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_79494:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79494:ImportFrom_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79494:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79494:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r... |
"""Implementation of JSONEncoder
"""
import re
try:
from simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii
except ImportError:
c_encode_basestring_ascii = None
try:
from simplejson._speedups import make_encoder as c_make_encoder
except ImportError:
c_make_encoder = None
... | ajibawa-2023/Python-Code-Large/train/row_79496 | 230 | 434 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79496:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0035, 0.0046, 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_79496:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79496:ImportFrom_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79496:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79496:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r... |
r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of
JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data
interchange format.
:mod:`simplejson` exposes an API familiar to users of the standard library
:mod:`marshal` and :mod:`pickle` modules. It is the externally maintained
version of ... | ajibawa-2023/Python-Code-Large/train/row_79497 | 41 | 316 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79497:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 99], "level": 0, "parent": null, "vector": [8, 0, 0.1582, 0.3133, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79497:FunctionDef_L120_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79497:Expr_L123_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79497:FunctionDef_L120_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79497:If_L164_C4"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python2.4
#
# Copyright 2007 The Python-Twitter Developers
#
# 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... | ajibawa-2023/Python-Code-Large/train/row_79499 | 19 | 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_79499:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.2329, 0.0137, 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_79499:FunctionDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79499:Return_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79499:FunctionDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79499:Return_L56_C2"}, {"f": "ajibawa-2023/Python-Co... |
#!/usr/bin/env python
# Split a multiplex/chained Ogg file into its component parts.
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
import os
impo... | ajibawa-2023/Python-Code-Large/train/row_79502 | 35 | 63 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79502:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0159, 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_79502:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79502:ImportFrom_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79502:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79502:Assign_L16_C4"}, {"f": "ajibawa-2023/Pytho... |
#!/usr/bin/env python
# ID3iconv is a Java based ID3 encoding convertor, here's the Python version.
# Copyright 2006 Emfox Zhou <EmfoxZhou@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free So... | ajibawa-2023/Python-Code-Large/train/row_79506 | 76 | 133 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79506:Import_L9_C0", "label": "sys import sys", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0677, 0.0075, 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_79506:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79506:Return_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79506:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79506:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""Utility classes for Mutagen.
You should not rely on the interfaces here being stable. They are
int... | ajibawa-2023/Python-Code-Large/train/row_79507 | 187 | 349 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79507:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 11], "level": 0, "parent": null, "vector": [8, 0, 0.0258, 0.0143, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79507:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79507:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79507:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79507:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-... |
# Copyright 2012 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""Read and write Ogg Opus comments.
This module handles Opus files wrapped in an Ogg bitstream. T... | ajibawa-2023/Python-Code-Large/train/row_79508 | 61 | 125 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79508:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 13], "level": 0, "parent": null, "vector": [8, 0, 0.08, 0.056, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79508:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79508:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79508:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79508:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large... |
# True Audio support for Mutagen
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
"""True Audio audio stream information and tags.
True Audio is a ... | ajibawa-2023/Python-Code-Large/train/row_79509 | 28 | 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_79509:Expr_L8_C0", "label": "expression", "type": "expression", "loc": [8, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1575, 0.1096, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79509:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79509:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79509:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79509:FunctionDef_L40_C4"}, {"f": "ajibawa-2023/Python-Code-... |
# A Musepack reader/tagger
#
# Copyright 2006 Lukas Lalinsky <lalinsky@gmail.com>
# Copyright 2012 Christoph Reiter <christoph.reiter@gmx.at>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foun... | ajibawa-2023/Python-Code-Large/train/row_79510 | 132 | 257 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79510:Expr_L10_C0", "label": "expression", "type": "expression", "loc": [10, 16], "level": 0, "parent": null, "vector": [8, 0, 0.0506, 0.0272, 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_79510:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79510:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79510:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79510:Assign_L44_C4"}, {"f": "ajibawa-2023/Python-Code... |
# Simpler (but far more limited) API for ID3 editing
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
"""Easier access to ID3 tags.
EasyID3 is a wr... | ajibawa-2023/Python-Code-Large/train/row_79511 | 228 | 504 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79511:Expr_L8_C0", "label": "expression", "type": "expression", "loc": [8, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0198, 0.0099, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79511:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79511:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79511:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79511:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
# OptimFROG reader/tagger
#
# Copyright 2006 Lukas Lalinsky <lalinsky@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""OptimFROG audio streams with APEv2 tags.
OptimFR... | ajibawa-2023/Python-Code-Large/train/row_79514 | 22 | 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_79514:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1972, 0.1549, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79514:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79514:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79514:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79514:FunctionDef_L42_C4"}, {"f": "ajibawa-2023/Python-Code-... |
# Ogg Vorbis support.
#
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""Read and write Ogg Vorbis comments.
This module handles Vorbis files wrapp... | ajibawa-2023/Python-Code-Large/train/row_79515 | 71 | 137 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79515:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 16], "level": 0, "parent": null, "vector": [8, 0, 0.0912, 0.0584, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79515:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79515:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79515:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79515:Assign_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large... |
# A WavPack reader/tagger
#
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""WavPack reading and writing.
WavPack is a lossless format that uses AP... | ajibawa-2023/Python-Code-Large/train/row_79516 | 25 | 63 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79516:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 13], "level": 0, "parent": null, "vector": [8, 0, 0.1746, 0.0794, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79516:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79516:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79516:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79516:FunctionDef_L39_C4"}, {"f": "ajibawa-2023/Python-Code-... |
"""Constants used by Mutagen."""
GENRES = [
u"Blues",
u"Classic Rock",
u"Country",
u"Dance",
u"Disco",
u"Funk",
u"Grunge",
u"Hip-Hop",
u"Jazz",
u"Metal",
u"New Age",
u"Oldies",
u"Other",
u"Pop",
u"R&B",
u"Rap",
u"Reggae",
u"Rock",
u"Techno",
... | ajibawa-2023/Python-Code-Large/train/row_79519 | 3 | 153 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79519:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0065, 0.0065, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat... | [] |
# An APEv2 tag reader
#
# Copyright 2005 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""APEv2 reading and writing.
The APEv2 format is most commonly used with Mus... | ajibawa-2023/Python-Code-Large/train/row_79521 | 262 | 478 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79521:Import_L1_C0", "label": "struct import struct", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0021, 0.0021, 0, 0.66, 0.0, 399, 0, 1, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names": ["struct"], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79521:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79521:Return_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79521:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79521:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-Code-La... |
# A Monkey's Audio (APE) reader/tagger
#
# Copyright 2006 Lukas Lalinsky <lalinsky@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""Monkey's Audio streams with APEv2 ta... | ajibawa-2023/Python-Code-Large/train/row_79522 | 34 | 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_79522:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1429, 0.0833, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79522:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79522:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79522:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79522:FunctionDef_L41_C4"}, {"f": "ajibawa-2023/Python-Code-... |
# Ogg Speex support.
#
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""Read and write Ogg Speex comments.
This module handles Speex files wrapped ... | ajibawa-2023/Python-Code-Large/train/row_79523 | 67 | 137 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79523:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0985, 0.073, 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_79523:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79523:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79523:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79523:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large... |
# MP3 stream header information support for Mutagen.
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
"""MPEG audio stream information and tags."""
... | ajibawa-2023/Python-Code-Large/train/row_79524 | 113 | 267 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79524:Expr_L8_C0", "label": "expression", "type": "expression", "loc": [8, 8], "level": 0, "parent": null, "vector": [8, 0, 0.03, 0.0037, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79524:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79524:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79524:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79524:Assign_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large... |
# Ogg Theora support.
#
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""Read and write Ogg Theora comments.
This module handles Theora files wrapp... | ajibawa-2023/Python-Code-Large/train/row_79525 | 71 | 130 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79525:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0923, 0.0538, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79525:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79525:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79525:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79525:Assign_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large... |
# Ogg FLAC support.
#
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""Read and write Ogg FLAC comments.
This module handles FLAC files wrapped in ... | ajibawa-2023/Python-Code-Large/train/row_79526 | 74 | 147 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79526:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 16], "level": 0, "parent": null, "vector": [8, 0, 0.085, 0.0544, 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_79526:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79526:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79526:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79526:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.