code
stringlengths
1
1.49M
file_id
stringlengths
42
46
node_count
int64
0
7.38k
total_lines
int64
1
20.9k
vector_dim
int64
15
15
vector_labels
stringclasses
1 value
nodes
stringlengths
2
3.75M
connections
stringlengths
2
964k
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_80286
28
63
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80286:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.2619, 0.0635, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80286:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80286:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80286:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80286:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_80287
29
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80287:Import_L15_C0", "label": "apiclient import apiclient", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2679, 0.0179, 0, 0.66, 0.0, 629, 0, 1, 0, 0, 629, 0, 0], "semantic": {"name": "apiclient", "arg_names": [], "import_names": ["a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80287:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80287:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80287:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80287:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Cod...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_80288
55
135
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80288:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1259, 0.037, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80288:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80288:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80288:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80288:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_80290
56
123
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80290:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1545, 0.0407, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80290:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80290:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80290:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80290:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_80291
1
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80291:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_80292
114
303
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80292:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 58], "level": 0, "parent": null, "vector": [8, 0, 0.1205, 0.1452, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80292:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80292:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80292:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80292:FunctionDef_L71_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_80293
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80293:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80293:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80293:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80293:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80293:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# 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_80294
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_80294: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_80294:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80294:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80294:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_80294:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this l...
ajibawa-2023/Python-Code-Large/train/row_80295
51
187
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80295:Expr_L32_C0", "label": "expression", "type": "expression", "loc": [32, 36], "level": 0, "parent": null, "vector": [8, 0, 0.1818, 0.0267, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80295:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80295:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80295:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80295:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
ajibawa-2023/Python-Code-Large/train/row_80296
213
438
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80296:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 31], "level": 0, "parent": null, "vector": [8, 0, 0.0365, 0.0708, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80296:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80296:Expr_L97_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80296:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80296:Assign_L102_C4"}, {"f": "ajibawa-2023/Python-Cod...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
ajibawa-2023/Python-Code-Large/train/row_80297
43
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80297:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0318, 0.0545, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80297:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80297:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80297:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80297:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_80300
11
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80300:ImportFrom_L17_C0", "label": "from google.appengine.ext import webapp", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0294, 0, 0.66, 0.0, 167, 0, 1, 0, 0, 167, 0, 0], "semantic": {"name": "google.appengine.ext", "arg_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80300:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80300:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80300:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80300:Expr_L23_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python import cgi try: import json except ImportError: import simplejson as json import elFinder # configure connector options opts = { #'root': '/home/troex/Sites/git/elfinder/files', 'root': '../git/elfinder/files/', 'URL': 'http://localhost:8001/~troex/git/elfinder/files', ## other options '...
ajibawa-2023/Python-Code-Large/train/row_80301
33
109
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80301:Import_L4_C0", "label": "cgi import cgi", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0367, 0.0092, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80301:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80301:Import_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80301:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80301:Import_L8_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
#!/usr/bin/env python import cgi try: import json except ImportError: import simplejson as json import elFinder # configure connector options opts = { #'root': '/home/troex/Sites/git/elfinder/files', 'root': '../git/elfinder/files/', 'URL': 'http://localhost:8001/~troex/git/elfinder/files', ## other options '...
ajibawa-2023/Python-Code-Large/train/row_80303
33
109
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80303:Import_L4_C0", "label": "cgi import cgi", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0367, 0.0092, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80303:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80303:Import_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80303:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80303:Import_L8_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
# vim:filetype=python #LOGLEVEL = { # 'fwRender' : 'trace', # 'basicVRCtrl' : 'trace', # 'vtkVR' : 'trace', # 'vtkNegato' : 'trace', # 'fwData' : 'trace', #}
ajibawa-2023/Python-Code-Large/train/row_80305
0
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# -*- coding: UTF8 -*- # vim:filetype=python DEF += ['_USE_BOOST_REGEX']
ajibawa-2023/Python-Code-Large/train/row_80306
0
4
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# vim:filetype=python # Use OPTIONS=var # Don't use space in option # One option by line # DEBUG = 'full' CONFIG = 'devel' #LOGLEVEL = 'warning' if racy.renv.system() == 'linux': dev_dir = '~/DEV' elif racy.renv.system() == 'darwin': dev_dir = '~/DEV' elif racy.renv.system() == 'windows': MSVC_V...
ajibawa-2023/Python-Code-Large/train/row_80307
14
28
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80307:Assign_L7_C0", "label": "DEBUG =", "type": "assigned_variable", "loc": [7, 7], "level": 0, "parent": null, "vector": [14, 0, 0.25, 0.0357, 0, 0.66, 0.0, 309, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "DEBUG", "arg_names": [], "import_names": [], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80307:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80307:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80307:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80307:If_L14_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_803...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** from project import * from projectsdb import *
ajibawa-2023/Python-Code-Large/train/row_80312
2
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80312:ImportFrom_L9_C0", "label": "from project import *", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.75, 0.0833, 0, 0.66, 0.0, 841, 0, 1, 0, 0, 841, 0, 0], "semantic": {"name": "project", "arg_names": [], "import_names": ["*"], "rhs...
[]
# -*- coding: UTF8 -*- # vim:filetype=python DEBUG = 'release' # LOGLEVEL : info, warning, trace ... LOGLEVEL = 'warning' USEVISIBILITY = 'no' DEF = [] # ... ALLOW_USER_OPTIONS = False OVERRIDE_PROJECT_VALUE['LOGLEVEL'] = LOGLEVEL
ajibawa-2023/Python-Code-Large/train/row_80314
6
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80314:Assign_L4_C0", "label": "DEBUG =", "type": "assigned_variable", "loc": [4, 4], "level": 0, "parent": null, "vector": [14, 0, 0.2667, 0.0667, 0, 0.66, 0.0, 309, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "DEBUG", "arg_names": [], "import_names": [], "rhs_call_name"...
[]
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** from racy import Undefined from racy.renv import constants LOGLEVEL = constan...
ajibawa-2023/Python-Code-Large/train/row_80315
34
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_80315:ImportFrom_L9_C0", "label": "from racy import Undefined", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.1059, 0.0118, 0, 0.66, 0.0, 171, 0, 1, 0, 0, 171, 0, 0], "semantic": {"name": "racy", "arg_names": [], "import_names": ["Undef...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80315:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80315:Expr_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80315:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80315:Import_L50_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: UTF8 -*- # vim:filetype=python from racy.renv.configs.default import * for k,v in locals().items(): if isinstance(v, (list, dict)): locals()[k] = v.__class__(v)
ajibawa-2023/Python-Code-Large/train/row_80317
4
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80317:ImportFrom_L4_C0", "label": "from racy.renv.configs.default import *", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.125, 0, 0.66, 0.0, 388, 0, 1, 0, 0, 388, 0, 0], "semantic": {"name": "racy.renv.configs.default", "arg_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80317:For_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80317:If_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80317:If_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80317:Assign_L8_C8"}]
# -*- coding: UTF8 -*- # vim:filetype=python # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import racy.renv as renv # --- Global variables --- DEBUG ...
ajibawa-2023/Python-Code-Large/train/row_80319
68
139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80319:Import_L9_C0", "label": "racy.renv import renv", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0647, 0.0072, 0, 0.66, 0.0, 73, 0, 1, 0, 0, 73, 0, 0], "semantic": {"name": "racy.renv", "arg_names": [], "import_names": ["renv"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80319:FunctionDef_L117_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80319:Expr_L118_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80319:FunctionDef_L117_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80319:Assign_L122_C4"}, {"f": "ajibawa-2023/Python-...
# -*- coding: UTF8 -*- # vim:filetype=python #DEF += ['_USE_BOOST_REGEX']
ajibawa-2023/Python-Code-Large/train/row_80320
0
4
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import racy import ydefaults class ConfigReader(object): compiled = {} c...
ajibawa-2023/Python-Code-Large/train/row_80321
24
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80321:Import_L9_C0", "label": "racy import racy", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.2045, 0.0227, 0, 0.66, 0.0, 171, 0, 1, 0, 0, 171, 0, 0], "semantic": {"name": "racy", "arg_names": [], "import_names": ["racy"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80321:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80321:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80321:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80321:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** LOGLEVEL= { 'disable' : 0, 'fatal' : 1, 'error' : 2, 'warning...
ajibawa-2023/Python-Code-Large/train/row_80322
16
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80322:Assign_L10_C0", "label": "LOGLEVEL =", "type": "assigned_variable", "loc": [10, 18], "level": 0, "parent": null, "vector": [14, 0, 0.2857, 0.1837, 0, 0.66, 0.0, 238, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "LOGLEVEL", "arg_names": [], "import_names": [], "rhs_c...
[]
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** from racy import NotUsed RACY_DEFAULTS = { 'CONFIG_IMPORTED_MODULES' : ["sys"...
ajibawa-2023/Python-Code-Large/train/row_80323
4
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80323:ImportFrom_L9_C0", "label": "from racy import NotUsed", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.45, 0.05, 0, 0.66, 0.0, 171, 0, 1, 0, 0, 171, 0, 0], "semantic": {"name": "racy", "arg_names": [], "import_names": ["NotUsed"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80323:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80323:Return_L16_C4"}]
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** from racy.rutils import cached_property class Target(object): """Grab and sto...
ajibawa-2023/Python-Code-Large/train/row_80324
25
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80324:ImportFrom_L9_C0", "label": "from racy.rutils import cached_property", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.1607, 0.0179, 0, 0.66, 0.0, 585, 0, 1, 0, 0, 585, 0, 0], "semantic": {"name": "racy.rutils", "arg_names": [], "im...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80324:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80324:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80324:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80324:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** __all__ = ['dirs'] from options import Paths dirs = Paths() del Paths class sim...
ajibawa-2023/Python-Code-Large/train/row_80325
63
116
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80325:Assign_L9_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [9, 9], "level": 0, "parent": null, "vector": [14, 0, 0.0776, 0.0086, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80325:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80325:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80325:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80325:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** from SCons.Environment import Environment as Env from SCons import Action env_vars...
ajibawa-2023/Python-Code-Large/train/row_80326
84
155
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80326:ImportFrom_L8_C0", "label": "from SCons.Environment import Env", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.0516, 0.0065, 0, 0.66, 0.0, 437, 0, 1, 0, 0, 437, 0, 0], "semantic": {"name": "SCons.Environment", "arg_names": [], "im...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80326:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80326:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80326:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80326:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** from racy.renv import constants from racy.renv.options import get_option f...
ajibawa-2023/Python-Code-Large/train/row_80327
53
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_80327:ImportFrom_L9_C0", "label": "from racy.renv import constants", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.072, 0.008, 0, 0.66, 0.0, 73, 0, 1, 0, 0, 73, 0, 0], "semantic": {"name": "racy.renv", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80327:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80327:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80327:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80327:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import re import os import racy from racy.renv import constants from racy.renv...
ajibawa-2023/Python-Code-Large/train/row_80329
90
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_80329:Import_L9_C0", "label": "re import re", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0566, 0.0063, 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_80329:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80329:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80329:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80329:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** def get_tool(name): import sys __import__(name, globals(), locals(), []) ...
ajibawa-2023/Python-Code-Large/train/row_80330
4
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_80330:FunctionDef_L9_C0", "label": "get_tool", "type": "function", "loc": [9, 12], "level": 0, "parent": null, "vector": [2, 0, 0.8077, 0.3077, 0, 0.66, 0.0, 276, 0, 1, 1, 0, 0, 0, 3], "semantic": {"name": "get_tool", "arg_names": ["name"], "import_names": [], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80330:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80330:Import_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80330:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80330:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import string from racy.rutils import is_true, uniq class Flags(object): """...
ajibawa-2023/Python-Code-Large/train/row_80331
115
197
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80331:Import_L9_C0", "label": "string import string", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0457, 0.0051, 0, 0.66, 0.0, 890, 0, 1, 0, 0, 890, 0, 0], "semantic": {"name": "string", "arg_names": [], "import_names": ["string"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80331:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80331:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80331:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80331:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import os from os.path import join as opjoin import racy import racy.rutils as ...
ajibawa-2023/Python-Code-Large/train/row_80332
97
191
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80332:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0471, 0.0052, 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_80332:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80332:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80332:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80332:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import os import racy from cppunitproject import CppUnitProject KEYWORD = CppU...
ajibawa-2023/Python-Code-Large/train/row_80333
23
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_80333:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.0185, 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_80333:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80333:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80333:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80333:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import os import racy from racy.rproject import ConstructibleRacyProject, LibNam...
ajibawa-2023/Python-Code-Large/train/row_80334
38
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80334:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.1286, 0.0143, 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_80334:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80334:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80334:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80334:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Cod...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import os import racy from dependenciesproject import DepedenciesProject KEYWO...
ajibawa-2023/Python-Code-Large/train/row_80335
18
39
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80335:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.2308, 0.0256, 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_80335:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80335:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80335:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80335:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import os from os.path import join as opjoin import racy from racy.renv im...
ajibawa-2023/Python-Code-Large/train/row_80336
84
179
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80336:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0503, 0.0056, 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_80336:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80336:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80336:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80336:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import os import racy from doxygenproject import DoxygenProject KEYWORD = Doxy...
ajibawa-2023/Python-Code-Large/train/row_80337
17
39
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80337:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.2308, 0.0256, 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_80337:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80337:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80337:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80337:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** """SCons.Tool.qt Tool-specific initialization for Qt. There normally shouldn't be any need to import th...
ajibawa-2023/Python-Code-Large/train/row_80338
225
534
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80338:Expr_L8_C0", "label": "expression", "type": "expression", "loc": [8, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0234, 0.0187, 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_80338:FunctionDef_L67_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80338:Return_L68_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80338:If_L71_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80338:Expr_L72_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
import os import shutil import string from os.path import join as opjoin import racy import racy.rutils as rutils from racy.renv import constants from racy.rproject import ConstructibleRacyProject, LibName from racy.rutils import cached_property, memoize, run_once from global_dico import * from templating impo...
ajibawa-2023/Python-Code-Large/train/row_80340
85
184
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80340:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0054, 0.0054, 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_80340:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80340:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80340:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80340:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import os import shutil import string from os.path import join as opjoin import racy import racy.rutils as rutils from racy.renv import constants from racy.rproject import ConstructibleRacyProject, LibName from racy.rutils import cached_property, memoize, run_once, symlink from global_dico import * from templa...
ajibawa-2023/Python-Code-Large/train/row_80341
79
148
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80341:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0135, 0.0068, 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_80341:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80341:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80341:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80341:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Cod...
import os import os.path from mako.template import Template from mako import exceptions from mako.exceptions import RichTraceback import racy.rutils as rutils from mako.lookup import TemplateLookup def apply_template( string, dico): temp = Template(string) res ='' try: res = temp.render(**dico) ...
ajibawa-2023/Python-Code-Large/train/row_80342
51
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80342:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0133, 0.0133, 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_80342:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80342:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80342:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80342:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Co...
from __future__ import print_function import functools import multiprocessing import subprocess import sys def light_the_candle(prj, light_opts=[]): candle_arch = { '32':'x86', '64':'x64', } candle = ['candle.exe', '-arch' , candle_arch['${ARCH}'], prj+'...
ajibawa-2023/Python-Code-Large/train/row_80343
33
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_80343:ImportFrom_L1_C0", "label": "from __future__ import print_function", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0185, 0.0185, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "impor...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80343:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80343:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80343:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80343:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code...
import os import sys import shutil import string from os.path import join as opjoin import racy import racy.rutils as rutils from racy.renv import constants from racy.rproject import ConstructibleRacyProject, LibName from racy.rutils import cached_property, memoize, run_once from templating import * from glo...
ajibawa-2023/Python-Code-Large/train/row_80344
63
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_80344:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.016, 0.008, 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_80344:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80344:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80344:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80344:Assign_L20_C8"}, {"f": "ajibawa-2023/Python-...
import os import uuid import functools from os.path import join as opjoin import racy import glob import os.path from racy.rproject import ConstructibleRacyProject, LibName from racy.rutils import memoize, run_once from global_dico import * from templating import * class WixProjectError(racy.RacyProjectError)...
ajibawa-2023/Python-Code-Large/train/row_80345
105
245
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80345:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0041, 0.0041, 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_80345:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80345:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80345:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80345:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import racy import racy.renv import os import os.path from os.path import join as opjoin # this dictionary contains all varibles for templates dico_g = { 'RACY_INSTALL_DIR': racy.renv.dirs.install, 'RACY_SRC_DIR' : racy.renv.dirs.code, 'IDE_INSTALL_DIR' : opjoin(racy.renv.dirs.install, 'ide'), 'W...
ajibawa-2023/Python-Code-Large/train/row_80346
20
513
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80346:Import_L1_C0", "label": "racy import racy", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0019, 0.0019, 0, 0.66, 0.0, 171, 0, 1, 0, 0, 171, 0, 0], "semantic": {"name": "racy", "arg_names": [], "import_names": ["racy"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80346:If_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80346:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80346:If_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80346:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import os import racy from racy import renv from generategraph import generate_...
ajibawa-2023/Python-Code-Large/train/row_80348
35
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_80348:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.1233, 0.0137, 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_80348:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80348:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80348:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80348:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import os import racy from collections import defaultdict from itertools im...
ajibawa-2023/Python-Code-Large/train/row_80349
59
95
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80349:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0947, 0.0105, 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_80349:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80349:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80349:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80349:If_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** ENABLE_COLORACY_KEYWORD = 'COLORACY' COLORACY_PATTERN_HELP = """Defines colors an...
ajibawa-2023/Python-Code-Large/train/row_80350
20
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_80350:Assign_L9_C0", "label": "ENABLE_COLORACY_KEYWORD =", "type": "assigned_variable", "loc": [9, 9], "level": 0, "parent": null, "vector": [14, 0, 0.1169, 0.013, 0, 0.66, 0.0, 495, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "ENABLE_COLORACY_KEYWORD", "arg_names": [], ...
[]
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** """ Colors text in console mode application (win32). Uses ctypes and Win32 methods...
ajibawa-2023/Python-Code-Large/train/row_80351
73
136
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80351:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 16], "level": 0, "parent": null, "vector": [8, 0, 0.0919, 0.0588, 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_80351:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80351:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80351:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80351:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** __all__ = ["BaseColorText"] import sys class BaseColorText(object): cons = ...
ajibawa-2023/Python-Code-Large/train/row_80352
12
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_80352:Assign_L9_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [9, 9], "level": 0, "parent": null, "vector": [14, 0, 0.3333, 0.037, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80352:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80352:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80352:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80352:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Cod...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** from base import BaseColorText __all__ = ["Console", "ColorText"] class Console(...
ajibawa-2023/Python-Code-Large/train/row_80353
48
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_80353:ImportFrom_L9_C0", "label": "from base import BaseColorText", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.1216, 0.0135, 0, 0.66, 0.0, 47, 0, 1, 0, 0, 47, 0, 0], "semantic": {"name": "base", "arg_names": [], "import_names": ["Bas...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80353:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80353:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80353:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80353:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** __all__ = ["ColorText"] import platform import os is_win = platform.system() =...
ajibawa-2023/Python-Code-Large/train/row_80354
22
39
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80354:Assign_L10_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [10, 10], "level": 0, "parent": null, "vector": [14, 0, 0.2564, 0.0256, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80354:If_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80354:ImportFrom_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80354:If_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80354:ImportFrom_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import re from colorconsole import ColorText from colorizer import Colorizer clas...
ajibawa-2023/Python-Code-Large/train/row_80355
15
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_80355:Import_L8_C0", "label": "re import re", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.2581, 0.0323, 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_80355:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80355:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80355:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80355:Assign_L16_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import os import platform import sys import racy from racy.renv.options import ge...
ajibawa-2023/Python-Code-Large/train/row_80356
28
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80356:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.1286, 0.0143, 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_80356:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80356:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80356:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80356:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** __all__ = ['Colorizer'] import re from sys import stdout from os import linesep f...
ajibawa-2023/Python-Code-Large/train/row_80357
44
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80357:Assign_L8_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [8, 8], "level": 0, "parent": null, "vector": [14, 0, 0.1143, 0.0143, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80357:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80357:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80357:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80357:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import os import time import SCons.Defaults import SCons.Node from os.path impor...
ajibawa-2023/Python-Code-Large/train/row_80358
346
581
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80358:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0155, 0.0017, 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_80358:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80358:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80358:FunctionDef_L33_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80358:Assign_L34_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: UTF8 -*- import os import subprocess import SCons from racy.rutils import is_iterable, put_file_content ############################################################################### class CommandNotFound(SCons.Warnings.Warning): pass #############################################################...
ajibawa-2023/Python-Code-Large/train/row_80360
23
60
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80360:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.05, 0.0167, 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_80360:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80360:If_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80360:If_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80360:Assign_L19_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# -*- coding: UTF8 -*- import os import SCons.Node from racy.rutils import is_iterable def UnZipEmitter(target, source, env): assert len(target) <= 1 # Until multiple target is managed for node in target: env.Clean(node, node) return target, source def UnZip(target, source, env): import z...
ajibawa-2023/Python-Code-Large/train/row_80361
22
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_80361:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0732, 0.0244, 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_80361:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80361:For_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80361:For_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80361:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# -*- coding: UTF8 -*- import os import SCons.Node import shutil import utils def DeleteArgs(target, source, env): args = [] args.extend(env.get('ARGS',[])) return env.subst(args) @utils.marker_decorator def Delete(target, source, env): files = DeleteArgs(target, source, env) not_found = [ f f...
ajibawa-2023/Python-Code-Large/train/row_80362
24
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80362:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0682, 0.0227, 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_80362:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80362:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80362:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80362:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: UTF8 -*- import os import SCons import command class ConfigureNotFound(SCons.Warnings.Warning): pass def find_configure_path(_dir): path = None for root, dirs, files in os.walk(_dir): if "configure" in files: path = root break return path def Configure...
ajibawa-2023/Python-Code-Large/train/row_80364
21
50
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80364:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.06, 0.02, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80364:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80364:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80364:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80364:For_L13_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: UTF8 -*- import os import SCons import command def Patch(target, source, env): assert len(source) == 1 patch_pwd = os.path.abspath(source[0].get_abspath()) return command.Command( target, source, env, pwd = patch_pwd, command = env[...
ajibawa-2023/Python-Code-Large/train/row_80366
13
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80366:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0278, 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_80366:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80366:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80366:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80366:Return_L14_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: UTF8 -*- import os import SCons.Node def UnTarEmitter(target, source, env): assert len(target) <= 1 # Until multiple target is managed for node in target: env.Clean(node, node) return target, source def UnTar(target, source, env): import tarfile for s in source: s...
ajibawa-2023/Python-Code-Large/train/row_80367
21
39
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80367:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0256, 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_80367:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80367:For_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80367:For_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80367:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# -*- coding: UTF8 -*- import os import SCons import command def find_make_path(env, _dir): path = None makefile = env['MAKEFILE'] for root, dirs, files in os.walk(_dir): if makefile in files: path = root break return path def guess_make_cmd(): import racy.renv a...
ajibawa-2023/Python-Code-Large/train/row_80368
27
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_80368:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0492, 0.0164, 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_80368:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80368:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80368:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80368:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: UTF8 -*- import os import SCons.Node import utils def WriteArgs(target, source, env): files = [] files.extend(env.get('FILES',[])) files = map(env.subst, files) contents = [] contents.extend(env.get('CONTENTS',[])) contents = map(env.subst, contents) return files, contents ...
ajibawa-2023/Python-Code-Large/train/row_80369
26
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80369:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0682, 0.0227, 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_80369:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80369:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80369:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80369:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# -*- coding: UTF8 -*- import os import SCons.Node import shutil import utils def CopyArgs(target, source, env): args = [] args.extend(env.get('ARGS',[])) args = map(env.subst, args) return args[:-1], args[-1] @utils.marker_decorator def Copy(target, source, env): src, dst = CopyArgs(target, s...
ajibawa-2023/Python-Code-Large/train/row_80370
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_80370:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0667, 0.0222, 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_80370:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80370:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80370:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80370:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: UTF8 -*-
ajibawa-2023/Python-Code-Large/train/row_80371
0
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"]
[]
[]
# -*- coding: UTF8 -*- import os import SCons.Node import utils def MkdirArgs(target, source, env): args = [] args.extend(env.get('ARGS',[])) args = map(env.subst, args) return args @utils.marker_decorator def Mkdir(target, source, env): for d in MkdirArgs(target, source, env): env.Exe...
ajibawa-2023/Python-Code-Large/train/row_80372
20
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80372:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0278, 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_80372:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80372:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80372:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80372:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import SCons import pprint import os from hashlib import md5 def write(content, filename): with open(filename, 'w') as f: f.write(content) ############################################################################### markers = {} def marker(command, prj, options): res = '{dir}/{file}' ...
ajibawa-2023/Python-Code-Large/train/row_80373
47
89
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80373:Import_L2_C0", "label": "SCons import SCons", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0225, 0.0112, 0, 0.66, 0.0, 188, 0, 1, 0, 0, 188, 0, 0], "semantic": {"name": "SCons", "arg_names": [], "import_names": ["SCons"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80373:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80373:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80373:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80373:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: UTF8 -*- import os import SCons import utils from subprocessbuilder import SubProcessBuilder, SubProcessString def CommandArgs(target, source, env, command=None): args = [] command = env.get('COMMAND', command) if command: args.append(command) args.extend(env.get('ARGS',[])) ...
ajibawa-2023/Python-Code-Large/train/row_80374
38
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80374:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.04, 0.0133, 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_80374:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80374:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80374:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80374:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: UTF8 -*- # imported for disponibility in builder's expressions import re import os import SCons.Node import StringIO import functools import textwrap import difflib import utils def apply_expression(expr, source, target, mode='eval'): # inspired from http://code.activestate.com/recipes/437932/ ...
ajibawa-2023/Python-Code-Large/train/row_80375
68
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80375:Import_L4_C0", "label": "re import re", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0364, 0.0091, 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_80375:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80375:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80375:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80375:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import racy class LibextError(racy.RacyProjectError): "Linext exception class"...
ajibawa-2023/Python-Code-Large/train/row_80376
3
11
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80376:Import_L8_C0", "label": "racy import racy", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.7273, 0.0909, 0, 0.66, 0.0, 171, 0, 1, 0, 0, 171, 0, 0], "semantic": {"name": "racy", "arg_names": [], "import_names": ["racy"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80376:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80376:Expr_L11_C4"}]
import os import os.path import sys def main(): # racy tricks racy_bin = sys.argv[0] racy_bin_dir = os.path.split(racy_bin)[0] racy_root_dir = os.path.split(racy_bin_dir)[0] racy_config_dir = os.path.join(racy_root_dir,'Config') racy_python_dir = os.path.join(racy_root_dir,'Python') #r...
ajibawa-2023/Python-Code-Large/train/row_80379
27
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80379:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0357, 0.0179, 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_80379:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80379:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80379:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80379:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import subprocess def symlink(src, dest): try: from win32file import C...
ajibawa-2023/Python-Code-Large/train/row_80385
11
25
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80385:Import_L8_C0", "label": "subprocess import subprocess", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.32, 0.04, 0, 0.66, 0.0, 394, 0, 1, 0, 0, 394, 0, 0], "semantic": {"name": "subprocess", "arg_names": [], "import_names": ["subpr...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80385:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80385:Try_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80385:Try_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80385:ImportFrom_L12_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** from __future__ import print_function import os #-------------------------------...
ajibawa-2023/Python-Code-Large/train/row_80386
137
237
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80386:ImportFrom_L1_C0", "label": "from __future__ import print_function", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0042, 0.0042, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "impor...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80386:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80386:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80386:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80386:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** class InfoLogger(object): def __init__(self): self.info = {} ...
ajibawa-2023/Python-Code-Large/train/row_80387
27
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80387:ClassDef_L10_C0", "label": "InfoLogger", "type": "class", "loc": [10, 41], "level": 0, "parent": null, "vector": [3, 0, 0.593, 0.7442, 0, 0.66, 0.0, 726, 0, 5, 0, 0, 186, 0, 17], "semantic": {"name": "InfoLogger", "arg_names": [], "import_names": [], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80387:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80387:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80387:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80387:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-...
# ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** #!/usr/bin/env python # -*- coding: UTF8 -*- import pstats import sys p = pstats.Stats(sys.argv[1]) #p....
ajibawa-2023/Python-Code-Large/train/row_80389
5
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_80389:Import_L11_C0", "label": "pstats import pstats", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 0.6111, 0.0556, 0, 0.66, 0.0, 936, 0, 1, 0, 0, 936, 0, 0], "semantic": {"name": "pstats", "arg_names": [], "import_names": ["pstats"], ...
[]
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import os import textwrap licence = {} comments = {} comments['.cpp'] = { ...
ajibawa-2023/Python-Code-Large/train/row_80390
78
138
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80390:Import_L7_C0", "label": "os import os", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.0507, 0.0072, 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_80390:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80390:If_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80390:If_L49_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80390:Expr_L50_C16"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#!/usr/bin/env python # # <Simple Alarm clock written in PyGTK. # # Copyright (C) <2011> <vincent.hervieux@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ver...
ajibawa-2023/Python-Code-Large/train/row_80395
172
360
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80395:Import_L21_C0", "label": "gtk import gtk", "type": "import", "loc": [21, 21], "level": 0, "parent": null, "vector": [1, 0, 0.0583, 0.0028, 0, 0.66, 0.0, 166, 0, 1, 0, 0, 166, 0, 0], "semantic": {"name": "gtk", "arg_names": [], "import_names": ["gtk"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80395:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80395:FunctionDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80395:FunctionDef_L36_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80395:Expr_L38_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # # <Simple Alarm clock written in PyGTK. # # Copyright (C) <2011> <vincent.hervieux@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ver...
ajibawa-2023/Python-Code-Large/train/row_80396
172
360
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80396:Import_L21_C0", "label": "gtk import gtk", "type": "import", "loc": [21, 21], "level": 0, "parent": null, "vector": [1, 0, 0.0583, 0.0028, 0, 0.66, 0.0, 166, 0, 1, 0, 0, 166, 0, 0], "semantic": {"name": "gtk", "arg_names": [], "import_names": ["gtk"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80396:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80396:FunctionDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80396:FunctionDef_L36_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80396:Expr_L38_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # # <Simple Alarm clock written in PyGTK. # # Copyright (C) <2011> <vincent.hervieux@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ver...
ajibawa-2023/Python-Code-Large/train/row_80401
172
360
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80401:Import_L21_C0", "label": "gtk import gtk", "type": "import", "loc": [21, 21], "level": 0, "parent": null, "vector": [1, 0, 0.0583, 0.0028, 0, 0.66, 0.0, 166, 0, 1, 0, 0, 166, 0, 0], "semantic": {"name": "gtk", "arg_names": [], "import_names": ["gtk"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80401:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80401:FunctionDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80401:FunctionDef_L36_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80401:Expr_L38_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # # <Simple Alarm clock written in PyGTK. # # Copyright (C) <2011> <vincent.hervieux@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ver...
ajibawa-2023/Python-Code-Large/train/row_80402
172
360
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80402:Import_L21_C0", "label": "gtk import gtk", "type": "import", "loc": [21, 21], "level": 0, "parent": null, "vector": [1, 0, 0.0583, 0.0028, 0, 0.66, 0.0, 166, 0, 1, 0, 0, 166, 0, 0], "semantic": {"name": "gtk", "arg_names": [], "import_names": ["gtk"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80402:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80402:FunctionDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80402:FunctionDef_L36_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80402:Expr_L38_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/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_80403
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_80403: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/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_80404
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_80404: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...
[]
# vim:filetype=python #LOGLEVEL = { # 'fwRender' : 'trace', # 'basicVRCtrl' : 'trace', # 'vtkVR' : 'trace', # 'vtkNegato' : 'trace', # 'fwData' : 'trace', #}
ajibawa-2023/Python-Code-Large/train/row_80405
0
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# -*- coding: UTF8 -*- # vim:filetype=python DEF += ['_USE_BOOST_REGEX']
ajibawa-2023/Python-Code-Large/train/row_80406
0
4
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# vim:filetype=python # Use OPTIONS=var # Don't use space in option # One option by line # DEBUG = 'full' CONFIG = 'devel' #LOGLEVEL = 'warning' if racy.renv.system() == 'linux': dev_dir = '~/DEV' elif racy.renv.system() == 'darwin': dev_dir = '~/DEV' elif racy.renv.system() == 'windows': MSVC_V...
ajibawa-2023/Python-Code-Large/train/row_80407
14
28
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80407:Assign_L7_C0", "label": "DEBUG =", "type": "assigned_variable", "loc": [7, 7], "level": 0, "parent": null, "vector": [14, 0, 0.25, 0.0357, 0, 0.66, 0.0, 309, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "DEBUG", "arg_names": [], "import_names": [], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80407:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80407:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80407:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80407:If_L14_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_804...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** from project import * from projectsdb import *
ajibawa-2023/Python-Code-Large/train/row_80412
2
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80412:ImportFrom_L9_C0", "label": "from project import *", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.75, 0.0833, 0, 0.66, 0.0, 841, 0, 1, 0, 0, 841, 0, 0], "semantic": {"name": "project", "arg_names": [], "import_names": ["*"], "rhs...
[]
# -*- coding: UTF8 -*- # vim:filetype=python DEBUG = 'release' # LOGLEVEL : info, warning, trace ... LOGLEVEL = 'warning' USEVISIBILITY = 'no' DEF = [] # ... ALLOW_USER_OPTIONS = False OVERRIDE_PROJECT_VALUE['LOGLEVEL'] = LOGLEVEL
ajibawa-2023/Python-Code-Large/train/row_80414
6
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80414:Assign_L4_C0", "label": "DEBUG =", "type": "assigned_variable", "loc": [4, 4], "level": 0, "parent": null, "vector": [14, 0, 0.2667, 0.0667, 0, 0.66, 0.0, 309, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "DEBUG", "arg_names": [], "import_names": [], "rhs_call_name"...
[]
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** from racy import Undefined from racy.renv import constants LOGLEVEL = constan...
ajibawa-2023/Python-Code-Large/train/row_80415
34
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_80415:ImportFrom_L9_C0", "label": "from racy import Undefined", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.1059, 0.0118, 0, 0.66, 0.0, 171, 0, 1, 0, 0, 171, 0, 0], "semantic": {"name": "racy", "arg_names": [], "import_names": ["Undef...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80415:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80415:Expr_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80415:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80415:Import_L50_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: UTF8 -*- # vim:filetype=python from racy.renv.configs.default import * for k,v in locals().items(): if isinstance(v, (list, dict)): locals()[k] = v.__class__(v)
ajibawa-2023/Python-Code-Large/train/row_80417
4
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80417:ImportFrom_L4_C0", "label": "from racy.renv.configs.default import *", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.125, 0, 0.66, 0.0, 388, 0, 1, 0, 0, 388, 0, 0], "semantic": {"name": "racy.renv.configs.default", "arg_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80417:For_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80417:If_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80417:If_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80417:Assign_L8_C8"}]
# -*- coding: UTF8 -*- # vim:filetype=python # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import racy.renv as renv # --- Global variables --- DEBUG ...
ajibawa-2023/Python-Code-Large/train/row_80419
68
139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80419:Import_L9_C0", "label": "racy.renv import renv", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0647, 0.0072, 0, 0.66, 0.0, 73, 0, 1, 0, 0, 73, 0, 0], "semantic": {"name": "racy.renv", "arg_names": [], "import_names": ["renv"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80419:FunctionDef_L117_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80419:Expr_L118_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80419:FunctionDef_L117_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80419:Assign_L122_C4"}, {"f": "ajibawa-2023/Python-...
# -*- coding: UTF8 -*- # vim:filetype=python #DEF += ['_USE_BOOST_REGEX']
ajibawa-2023/Python-Code-Large/train/row_80420
0
4
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import racy import ydefaults class ConfigReader(object): compiled = {} c...
ajibawa-2023/Python-Code-Large/train/row_80421
24
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80421:Import_L9_C0", "label": "racy import racy", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.2045, 0.0227, 0, 0.66, 0.0, 171, 0, 1, 0, 0, 171, 0, 0], "semantic": {"name": "racy", "arg_names": [], "import_names": ["racy"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80421:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80421:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80421:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80421:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** LOGLEVEL= { 'disable' : 0, 'fatal' : 1, 'error' : 2, 'warning...
ajibawa-2023/Python-Code-Large/train/row_80422
16
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80422:Assign_L10_C0", "label": "LOGLEVEL =", "type": "assigned_variable", "loc": [10, 18], "level": 0, "parent": null, "vector": [14, 0, 0.2857, 0.1837, 0, 0.66, 0.0, 238, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "LOGLEVEL", "arg_names": [], "import_names": [], "rhs_c...
[]
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** from racy import NotUsed RACY_DEFAULTS = { 'CONFIG_IMPORTED_MODULES' : ["sys"...
ajibawa-2023/Python-Code-Large/train/row_80423
4
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80423:ImportFrom_L9_C0", "label": "from racy import NotUsed", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.45, 0.05, 0, 0.66, 0.0, 171, 0, 1, 0, 0, 171, 0, 0], "semantic": {"name": "racy", "arg_names": [], "import_names": ["NotUsed"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80423:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80423:Return_L16_C4"}]
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** from racy.rutils import cached_property class Target(object): """Grab and sto...
ajibawa-2023/Python-Code-Large/train/row_80424
25
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80424:ImportFrom_L9_C0", "label": "from racy.rutils import cached_property", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.1607, 0.0179, 0, 0.66, 0.0, 585, 0, 1, 0, 0, 585, 0, 0], "semantic": {"name": "racy.rutils", "arg_names": [], "im...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80424:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80424:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80424:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80424:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** __all__ = ['dirs'] from options import Paths dirs = Paths() del Paths class sim...
ajibawa-2023/Python-Code-Large/train/row_80425
63
116
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80425:Assign_L9_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [9, 9], "level": 0, "parent": null, "vector": [14, 0, 0.0776, 0.0086, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80425:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80425:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80425:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80425:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** from SCons.Environment import Environment as Env from SCons import Action env_vars...
ajibawa-2023/Python-Code-Large/train/row_80426
84
155
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_80426:ImportFrom_L8_C0", "label": "from SCons.Environment import Env", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.0516, 0.0065, 0, 0.66, 0.0, 437, 0, 1, 0, 0, 437, 0, 0], "semantic": {"name": "SCons.Environment", "arg_names": [], "im...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_80426:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80426:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80426:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80426:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code...