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) 2008, appengine-utilities project 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 list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_77484
134
258
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77484:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.0523, 0.1008, 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_77484:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77484:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77484:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77484:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" Copyright (c) 2008, appengine-utilities project 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 list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_77485
252
482
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77485:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.028, 0.0539, 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_77485:ClassDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77485:Expr_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77485:ClassDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77485:Assign_L62_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
ajibawa-2023/Python-Code-Large/train/row_77486
14
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77486:FunctionDef_L22_C0", "label": "loadProperties", "type": "function", "loc": [22, 37], "level": 0, "parent": null, "vector": [2, 0, 0.7973, 0.4324, 0, 0.66, 0.0, 366, 0, 1, 1, 0, 0, 0, 11], "semantic": {"name": "loadProperties", "arg_names": ["fileName"], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77486:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77486:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77486:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77486:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Co...
""" Copyright (c) 2008, appengine-utilities project 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 list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_77487
27
76
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77487:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1776, 0.3421, 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_77487:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77487:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77487:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77487:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" Copyright (c) 2008, appengine-utilities project 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 list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_77488
31
97
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77488:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1392, 0.268, 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_77488:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77488:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77488:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77488:FunctionDef_L59_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
ajibawa-2023/Python-Code-Large/train/row_77489
57
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_77489:Import_L22_C0", "label": "model import model", "type": "import", "loc": [22, 22], "level": 0, "parent": null, "vector": [1, 0, 0.2018, 0.0092, 0, 0.66, 0.0, 722, 0, 1, 0, 0, 722, 0, 0], "semantic": {"name": "model", "arg_names": [], "import_names": ["model"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77489:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77489:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77489:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77489:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python version = "1.7" version_info = (1,7,0,"rc-2") __revision__ = "$Rev: 72 $" """ Python-Markdown =============== Converts Markdown to HTML. Basic usage as a module: import markdown md = Markdown() html = md.convert(your_text_string) See http://www.freewisdom.org/projects/python-mark...
ajibawa-2023/Python-Code-Large/train/row_77490
891
1,930
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77490:Assign_L3_C0", "label": "version =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.0016, 0.0005, 0, 0.66, 0.0, 623, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "version", "arg_names": [], "import_names": [], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77490:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77490:Expr_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77490:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77490:Assign_L56_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software ...
ajibawa-2023/Python-Code-Large/train/row_77491
19
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_77491:Import_L23_C0", "label": "wsgiref.handlers import wsgiref.handlers", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.4694, 0.0204, 0, 0.66, 0.0, 709, 0, 1, 0, 0, 709, 0, 0], "semantic": {"name": "wsgiref.handlers", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77491:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77491:FunctionDef_L33_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77491:FunctionDef_L33_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_77491:Expr_L34_C2"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python import struct from StringIO import StringIO from google.appengine.api import images def resize(image, maxwidth, maxheight): imageinfo = getimageinfo(image) width = float(imageinfo[1]) height = float(imageinfo[2]) ratio = width / height dwidth = maxheight * ratio dheight = ma...
ajibawa-2023/Python-Code-Large/train/row_77492
54
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_77492:Import_L2_C0", "label": "struct import struct", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.026, 0.013, 0, 0.66, 0.0, 399, 0, 1, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names": ["struct"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77492:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77492:Assign_L8_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77492:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77492:Assign_L9_C1"}, {"f": "ajibawa-2023/Python-Code-L...
import simplejson import cgi class JSONFilter(object): def __init__(self, app, mime_type='text/x-json'): self.app = app self.mime_type = mime_type def __call__(self, environ, start_response): # Read JSON POST input to jsonfilter.json if matching mime type response = {...
ajibawa-2023/Python-Code-Large/train/row_77493
31
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77493:Import_L1_C0", "label": "simplejson import simplejson", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.025, 0.025, 0, 0.66, 0.0, 386, 0, 1, 0, 0, 386, 0, 0], "semantic": {"name": "simplejson", "arg_names": [], "import_names": ["sim...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77493:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77493:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77493:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77493:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
""" Implementation of JSONDecoder """ import re import sys from simplejson.scanner import Scanner, pattern try: from simplejson import _speedups except: _speedups = None FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL def _floatconstants(): import struct import sys _BYTES = '7FF800...
ajibawa-2023/Python-Code-Large/train/row_77494
177
331
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77494:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.006, 0.0091, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77494:Try_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77494:ImportFrom_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77494:Try_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77494:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
""" Iterator based sre token scanner """ import sre_parse, sre_compile, sre_constants from sre_constants import BRANCH, SUBPATTERN from re import VERBOSE, MULTILINE, DOTALL import re __all__ = ['Scanner', 'pattern'] FLAGS = (VERBOSE | MULTILINE | DOTALL) class Scanner(object): def __init__(self, lexic...
ajibawa-2023/Python-Code-Large/train/row_77495
47
64
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77495:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0312, 0.0469, 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_77495:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77495:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77495:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77495:Assign_L14_C8"}, {"f": "ajibawa-2023/Python-...
""" Implementation of JSONEncoder """ import re try: from simplejson import _speedups except ImportError: _speedups = None ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]') ESCAPE_ASCII = re.compile(r'([\\"/]|[^\ -~])') ESCAPE_DCT = { '\\': '\\\\', '"': '\\"', '\b': '\\b', '\f': '...
ajibawa-2023/Python-Code-Large/train/row_77496
199
376
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77496:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0053, 0.008, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77496:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77496:ImportFrom_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77496:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77496:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Aff...
ajibawa-2023/Python-Code-Large/train/row_77498
282
391
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77498:ImportFrom_L24_C0", "label": "from google.appengine.ext import db", "type": "import", "loc": [24, 24], "level": 0, "parent": null, "vector": [1, 0, 0.0614, 0.0026, 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_77498:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77498:Assign_L29_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77498:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77498:Assign_L30_C1"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_77499
218
605
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77499:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0281, 0.0017, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77499:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77499:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77499:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77499:Return_L54_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_77500
133
305
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77500:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0557, 0.0033, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77500:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77500:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77500:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77500:Assign_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
ajibawa-2023/Python-Code-Large/train/row_77502
8
18
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77502:Assign_L3_C0", "label": "manual_verstr =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 189, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "manual_verstr", "arg_names": [], "import_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77502:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77502:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77502:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77502:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_77503
9
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77503:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.575, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77503:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77503:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77503:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77503:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_77504
10
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77504:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.2927, 0.561, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77504:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77504:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77504:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77504:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
ajibawa-2023/Python-Code-Large/train/row_77506
155
378
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77506:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0437, 0.0741, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77506:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77506:Expr_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77506:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77506:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_77507
396
1,139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77507:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0145, 0.0035, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77507:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77507:ImportFrom_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77507:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77507:ImportFrom_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_77508
46
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77508:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1604, 0.0472, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77508:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77508:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77508:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77508:FunctionDef_L35_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_77509
63
124
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77509:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1371, 0.0403, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77509:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77509:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77509:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77509:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
ajibawa-2023/Python-Code-Large/train/row_77511
86
244
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77511:Import_L18_C0", "label": "base64 import base64", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0738, 0.0041, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77511:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77511:Expr_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77511:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77511:FunctionDef_L39_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_77512
33
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77512:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1619, 0.0476, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77512:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77512:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77512:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77512:Expr_L63_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_77514
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_77514: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_77515
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_77515: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_77515:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77515:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77515:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77515:Try_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
ajibawa-2023/Python-Code-Large/train/row_77516
115
168
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77516:Import_L1_C0", "label": "Cookie import Cookie", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.006, 0.006, 0, 0.66, 0.0, 32, 0, 1, 0, 0, 32, 0, 0], "semantic": {"name": "Cookie", "arg_names": [], "import_names": ["Cookie"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77516:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77516:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77516:FunctionDef_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77516:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
ajibawa-2023/Python-Code-Large/train/row_77517
57
172
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77517:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0814, 0.1105, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77517:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77517:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77517:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77517:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_77519
201
483
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77519:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0342, 0.0083, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77519:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77519:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77519:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77519:ImportFrom_L34_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_77520
154
385
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77520:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0519, 0.0182, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77520:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77520:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77520:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77520:FunctionDef_L53_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_77522
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_77522: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_77522:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77522:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77522:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77522: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_77523
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_77523: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_77523:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77523:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77523:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77523: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_77524
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_77524: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_77524:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77524:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77524:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77524: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_77526
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_77526: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_77526:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77526:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77526:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77526:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_77527
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_77527: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_77528
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_77528: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_77528:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77528:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77528:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77528: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_77529
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_77529: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_77529:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77529:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77529:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77529: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_77530
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_77530: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_77530:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77530:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77530:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77530: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_77531
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_77531: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_77531:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77531:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77531:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77531: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_77532
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_77532: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_77532:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77532:Expr_L97_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77532:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77532: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_77533
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_77533: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_77533:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77533:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77533:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77533:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Co...
''' Module which brings history information about files from Mercurial. @author: Rodrigo Damazio ''' import re import subprocess REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*') def _GetOutputLines(args): ''' Runs an external process and returns its output as a list of lines. @param args: the argume...
ajibawa-2023/Python-Code-Large/train/row_77536
38
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77536:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0319, 0.0532, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77536:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77536:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77536:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77536:Assign_L18_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python ''' Entry point for My Tracks i18n tool. @author: Rodrigo Damazio ''' import mytracks.files import mytracks.translate import mytracks.validate import sys def Usage(): print 'Usage: %s <command> [<language> ...]\n' % sys.argv[0] print 'Commands are:' print ' cleanup' print ' translate' p...
ajibawa-2023/Python-Code-Large/train/row_77537
58
96
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77537:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0417, 0.0521, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77537:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77537:Expr_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77537:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77537:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-L...
''' Module which prompts the user for translations and saves them. TODO: implement @author: Rodrigo Damazio ''' class Translator(object): ''' classdocs ''' def __init__(self, language): ''' Constructor ''' self._language = language def Translate(self, string_names): print string_names
ajibawa-2023/Python-Code-Large/train/row_77538
8
21
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77538:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1905, 0.3333, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77538:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77538:Expr_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77538:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77538:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-La...
''' Module which compares languague files to the master file and detects issues. @author: Rodrigo Damazio ''' import os from mytracks.parser import StringsParser import mytracks.history class Validator(object): def __init__(self, languages): ''' Builds a strings file validator. Params: @para...
ajibawa-2023/Python-Code-Large/train/row_77539
65
115
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77539:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0304, 0.0522, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77539:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77539:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77539:FunctionDef_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77539:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Co...
''' Module for dealing with resource files (but not their contents). @author: Rodrigo Damazio ''' import os.path from glob import glob import re MYTRACKS_RES_DIR = 'MyTracks/res' ANDROID_MASTER_VALUES = 'values' ANDROID_VALUES_MASK = 'values-*' def GetMyTracksDir(): ''' Returns the directory in which the MyTrac...
ajibawa-2023/Python-Code-Large/train/row_77540
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_77540:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0667, 0.1111, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77540:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77540:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77540:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77540:Assign_L19_C2"}, {"f": "ajibawa-2023/Python-Code...
''' Module which parses a string XML file. @author: Rodrigo Damazio ''' from xml.parsers.expat import ParserCreate import re #import xml.etree.ElementTree as ET class StringsParser(object): ''' Parser for string XML files. This object is not thread-safe and should be used for parsing a single file at a time...
ajibawa-2023/Python-Code-Large/train/row_77541
54
115
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77541:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0261, 0.0435, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77541:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77541:Expr_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77541:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77541:FunctionDef_L19_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python # Copyright 2011 Google, Inc. All Rights Reserved. # simple script to walk source tree looking for third-party licenses # dumps resulting html page to stdout import os, re, mimetypes, sys # read source directories to scan from command line SOURCE = sys.argv[1:] # regex to find /* */ style commen...
ajibawa-2023/Python-Code-Large/train/row_77542
51
98
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77542:Import_L8_C0", "label": "os import os, re, mimetypes\u2026", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.0816, 0.0102, 0, 0.66, 0.0, 688, 0, 4, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77542:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77542:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77542:FunctionDef_L32_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77542:Assign_L33_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python ''' @author: bastien ''' from src.controller.gameHandler import * # Importing some of Google's AppEngine modules: from google.appengine.ext import webapp from google.appengine.ext.webapp import util # This is the main method that maps the URLs # of your application with controller classes. # If...
ajibawa-2023/Python-Code-Large/train/row_77543
9
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_77543:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 4], "level": 0, "parent": null, "vector": [8, 0, 0.12, 0.12, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77543:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77543:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77543:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77543:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code...
 #!/usr/bin/env python ''' @author: bastien ''' from src.model.Game import * from src.model.Player import * import json from google.appengine.ext import webapp class GameHandler(webapp.RequestHandler): games = {} players = {} def get(self): args = self.request.arguments() if("req" in...
ajibawa-2023/Python-Code-Large/train/row_77544
70
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77544:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0213, 0.0319, 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_77544:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77544:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77544:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77544:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
''' Created on 17 janv. 2013 @author: rouis ''' import random import os.path '''Check if the word is in the dictionnary or not return true or false''' dictionary = os.path.dirname(__file__) + '/anglais.txt' class Dict: def __init__(self): self.dict = dictionary def validWordKo(self,wor...
ajibawa-2023/Python-Code-Large/train/row_77545
35
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_77545:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0556, 0.0926, 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_77545:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77545:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77545:FunctionDef_L14_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77545:Assign_L15_C8"}, {"f": "ajibawa-2023/Python-...
''' Created on 14 janv. 2013 @author: rouis ''' class Player: def __init__(self, name): self.name = name self.score = 0 def displayScore(self): print "The player :", self.name, " ,The Score :", self.score '''update the score of the player by adding points equals t...
ajibawa-2023/Python-Code-Large/train/row_77546
17
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_77546:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0938, 0.1562, 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_77546:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77546:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77546:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77546:Assign_L9_C8"}, {"f": "ajibawa-2023/Python-Code...
''' Created on 20 janv. 2013 @author: rouis ''' class Cell: def __init__(self,letter, position): self.letter = letter self.isActivated = False self.position = position def get_letter(self): return self.letter def set_letter(self, car): self.letter = car ...
ajibawa-2023/Python-Code-Large/train/row_77548
22
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77548:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0811, 0.1351, 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_77548:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77548:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77548:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77548:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python import urllib2 import shutil import os from os.path import join, exists, dirname, abspath from glob import glob from subprocess import call from zipfile import ZipFile JASMINE_REPORTER_URL='https://github.com/larrymyers/jasmine-reporters/zipball/0.2.1' BASE = abspath(dirname(__file__)) REPORT_DI...
ajibawa-2023/Python-Code-Large/train/row_77551
39
52
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77551:Import_L2_C0", "label": "urllib2 import urllib2", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0192, 0, 0.66, 0.0, 345, 0, 1, 0, 0, 345, 0, 0], "semantic": {"name": "urllib2", "arg_names": [], "import_names": ["urllib2"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77551:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77551:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77551:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77551:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code...
import os THIS_PATH = os.path.dirname(__file__) GOLDEN_OUTPUT = os.path.join(THIS_PATH, 'golden_suite', 'output.xml') GOLDEN_OUTPUT2 = os.path.join(THIS_PATH, 'golden_suite', 'output2.xml') GOLDEN_JS = os.path.join(THIS_PATH, 'golden_suite', 'expected.js')
ajibawa-2023/Python-Code-Large/train/row_77552
5
7
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77552:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.1429, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[]
__author__ = 'janne'
ajibawa-2023/Python-Code-Large/train/row_77553
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_77553:Assign_L1_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_call_n...
[]
#!/usr/bin/env python import fileinput from os.path import join, dirname, abspath import sys import os BASEDIR = dirname(abspath(__file__)) OUTPUT = join(BASEDIR, 'output.xml') sys.path.insert(0, join(BASEDIR, '..', '..', '..', '..', 'src')) import robot from robot.conf.settings import RebotSettings from robot.repo...
ajibawa-2023/Python-Code-Large/train/row_77554
41
57
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77554:Import_L3_C0", "label": "fileinput import fileinput", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0175, 0, 0.66, 0.0, 286, 0, 1, 0, 0, 286, 0, 0], "semantic": {"name": "fileinput", "arg_names": [], "import_names": ["file...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77554:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77554:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77554:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77554:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python import sys import os from os.path import join, dirname from distutils.core import setup execfile(join(dirname(__file__), 'src', 'robot', 'version.py')) # Maximum width in Windows installer seems to be 70 characters -------| DESCRIPTION = """ Robot Framework is a generic test automation framewor...
ajibawa-2023/Python-Code-Large/train/row_77556
4
5
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77556:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": "", ...
[]
#!/usr/bin/env python """A script for running Robot Framework's acceptance tests. Usage: run_atests.py interpreter [options] datasource(s) Data sources are paths to directories or files under `robot` folder. Available options are the same that can be used with Robot Framework. See its help (e.g. `pybot --help`) fo...
ajibawa-2023/Python-Code-Large/train/row_77557
44
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77557:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1081, 0.1712, 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_77557:FunctionDef_L67_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77557:If_L68_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77557:If_L68_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77557:Expr_L69_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
import subprocess import os import signal import ctypes import time class ProcessManager(object): def __init__(self): self._process = None self._stdout = '' self._stderr = '' def start_process(self, *args): args = args[0].split() + list(args[1:]) self._process = subpr...
ajibawa-2023/Python-Code-Large/train/row_77558
52
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_77558:Import_L1_C0", "label": "subprocess import subprocess", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0137, 0, 0.66, 0.0, 394, 0, 1, 0, 0, 394, 0, 0], "semantic": {"name": "subprocess", "arg_names": [], "import_names": ["s...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77558:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77558:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77558:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77558:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-C...
from __future__ import with_statement import os from os.path import abspath, dirname, join from subprocess import call, STDOUT import tempfile from robot.utils.asserts import assert_equals ROBOT_SRC = join(dirname(abspath(__file__)), '..', '..', '..', 'src') class TidyLib(object): def __init__(self, interpret...
ajibawa-2023/Python-Code-Large/train/row_77559
43
59
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77559:ImportFrom_L1_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0169, 0.0169, 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_77559:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77559:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77559:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77559:Assign_L16_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
ajibawa-2023/Python-Code-Large/train/row_77560
28
59
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77560:ImportFrom_L15_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2542, 0.0169, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "im...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77560:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77560:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77560:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77560:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import os import tempfile from os.path import join, dirname, abspath from subprocess import call, STDOUT from robot.api import logger from robot.utils import decode_output ROBOT_SRC = join(dirname(abspath(__file__)), '..', '..', '..', 'src') class LibDocLib(object): def __init__(self, interpreter): self...
ajibawa-2023/Python-Code-Large/train/row_77561
21
26
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77561:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0385, 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_77561:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77561:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77561:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77561:Assign_L14_C8"}, {"f": "ajibawa-2023/Python-...
from __future__ import with_statement import os from robot.utils import utf8open def output_should_have_correct_line_separators(path): with utf8open(path) as infile: content = infile.read() content = content.replace(os.linesep, '') incorrect = content.count('\n') if incorrect: err = A...
ajibawa-2023/Python-Code-Large/train/row_77562
10
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77562:ImportFrom_L1_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0625, 0.0625, 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_77562:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77562:Assign_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77562:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77562:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-...
from __future__ import with_statement from robot.api import logger class WrongStat(AssertionError): ROBOT_CONTINUE_ON_FAILURE = True def get_total_stats(path): return get_all_stats(path)[0] def get_tag_stats(path): return get_all_stats(path)[1] def get_suite_stats(path): return get_all_stats(path)...
ajibawa-2023/Python-Code-Large/train/row_77563
29
42
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77563:ImportFrom_L1_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0238, 0.0238, 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_77563:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77563:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77563:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77563:Return_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
from robot.libraries.BuiltIn import BuiltIn BIN = BuiltIn() def start_keyword(*args): if BIN.get_variables()['${TESTNAME}'] == 'Listener Using BuiltIn': BIN.set_test_variable('${SET BY LISTENER}', 'quux')
ajibawa-2023/Python-Code-Large/train/row_77564
5
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77564:ImportFrom_L1_C0", "label": "from robot.libraries.BuiltIn import BuiltIn", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.1111, 0, 0.66, 0.0, 588, 0, 1, 0, 0, 588, 0, 0], "semantic": {"name": "robot.libraries.BuiltIn", "arg...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77564:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77564:If_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77564:If_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77564:Expr_L8_C8"}]
from __future__ import with_statement from os.path import abspath, dirname, join from fnmatch import fnmatchcase from operator import eq from robot.api import logger CURDIR = dirname(abspath(__file__)) def verify_output(actual, expected): actual = _read_file(actual, 'Actual') expected = _read_file(join(CURD...
ajibawa-2023/Python-Code-Large/train/row_77565
17
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_77565:ImportFrom_L1_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0357, 0.0357, 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_77565:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77565:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77565:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77565:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Co...
import os import tempfile import time class ListenAll: ROBOT_LISTENER_API_VERSION = '2' def __init__(self, *path): if not path: path = os.path.join(tempfile.gettempdir(), 'listen_all.txt') else: path = ':'.join(path) self.outfile = open(path, 'w') def sta...
ajibawa-2023/Python-Code-Large/train/row_77566
54
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77566:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0122, 0.0122, 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_77566:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77566:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77566:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77566:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import os import tempfile class OldListenAll: def __init__(self, *path): if not path: path = os.path.join(tempfile.gettempdir(), 'listen_all.txt') else: path = ':'.join(path) self.outfile = open(path, 'w') def start_suite(self, name, doc): self.outfile...
ajibawa-2023/Python-Code-Large/train/row_77567
37
55
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77567:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0182, 0.0182, 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_77567:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77567:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77567:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77567:If_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
import os import tempfile outpath = os.path.join(tempfile.gettempdir(), 'listen_by_module.txt') OUTFILE = open(outpath, 'w') ROBOT_LISTENER_API_VERSION = 2 def start_suite(name, attrs): metastr = ' '.join('%s: %s' % (k, v) for k, v in attrs['metadata'].items()) OUTFILE.write("SUITE START: %s '%s' [%s]\n" ...
ajibawa-2023/Python-Code-Large/train/row_77568
43
64
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77568:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0156, 0.0156, 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_77568:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77568:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77568:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77568:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import os import tempfile class ListenSome: def __init__(self): outpath = os.path.join(tempfile.gettempdir(), 'listen_some.txt') self.outfile = open(outpath, 'w') def startTest(self, name, doc, tags): self.outfile.write(name + '\n') def endSuite(self, stat, msg): ...
ajibawa-2023/Python-Code-Large/train/row_77569
21
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_77569:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0278, 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_77569:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77569:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77569:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77569:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
import os import tempfile import logging from robot.libraries.BuiltIn import BuiltIn from robot.api import logger class ListenSome: ROBOT_LISTENER_API_VERSION = '2' def __init__(self): outpath = os.path.join(tempfile.gettempdir(), 'listen_some.txt') self.outfile = open(outpath, 'w') def...
ajibawa-2023/Python-Code-Large/train/row_77570
66
118
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77570:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0085, 0.0085, 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_77570:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77570:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77570:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77570:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-...
import os import tempfile outpath = os.path.join(tempfile.gettempdir(), 'listen_by_module.txt') OUTFILE = open(outpath, 'w') def start_suite(name, doc): OUTFILE.write("SUITE START: %s '%s'\n" % (name, doc)) def start_test(name, doc, tags): tags = [ str(tag) for tag in tags ] OUTFILE.write("TEST START: %...
ajibawa-2023/Python-Code-Large/train/row_77571
33
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_77571:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0204, 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_77571:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77571:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77571:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77571:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import os import tempfile ROBOT_LISTENER_API_VERSION = '2' OUTFILE = open(os.path.join(tempfile.gettempdir(), 'listener_attrs.txt'), 'w') START_ATTRS = 'doc starttime ' END_ATTRS = START_ATTRS + 'endtime elapsedtime status ' EXPECTED_TYPES = {'elapsedtime': (int, long), 'tags': list, 'args': list, '...
ajibawa-2023/Python-Code-Large/train/row_77572
34
53
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77572:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0189, 0.0189, 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_77572:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77572:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77572:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77572:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-L...
def get_variables(*args): return { 'PPATH_VARFILE_2' : ' '.join(args), 'LIST__PPATH_VARFILE_2' : args }
ajibawa-2023/Python-Code-Large/train/row_77573
2
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"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77573:FunctionDef_L1_C0", "label": "get_variables", "type": "function", "loc": [1, 3], "level": 0, "parent": null, "vector": [2, 0, 0.5, 0.75, 0, 0.66, 0.0, 461, 0, 1, 1, 0, 0, 0, 1], "semantic": {"name": "get_variables", "arg_names": ["args"], "import_names": [], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77573:FunctionDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77573:Return_L2_C4"}]
PPATH_VARFILE = "Variable from variable file in PYTHONPATH"
ajibawa-2023/Python-Code-Large/train/row_77574
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_77574:Assign_L1_C0", "label": "PPATH_VARFILE =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 799, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "PPATH_VARFILE", "arg_names": [], "import_names": [], "rhs_...
[]
list1 = [1, 2, 3, 4, 'foo', 'bar'] dictionary1 = {'a': 1} dictionary2 = {'a': 1, 'b': 2}
ajibawa-2023/Python-Code-Large/train/row_77575
3
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77575:Assign_L1_C0", "label": "list1 =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 150, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "list1", "arg_names": [], "import_names": [], "rhs_call_name"...
[]
class TraceLogArgsLibrary(object): def only_mandatory(self, mand1, mand2): pass def mandatory_and_default(self, mand, default="default value"): pass def multiple_default_values(self, a=1, a2=2, a3=3, a4=4): pass def mandatory_and_varargs(self, mand, *varargs): pass ...
ajibawa-2023/Python-Code-Large/train/row_77576
15
30
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77576:ClassDef_L1_C0", "label": "TraceLogArgsLibrary", "type": "class", "loc": [1, 19], "level": 0, "parent": null, "vector": [3, 0, 0.3333, 0.6333, 0, 0.66, 0.0, 552, 0, 6, 0, 0, 186, 0, 2], "semantic": {"name": "TraceLogArgsLibrary", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77576:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77576:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77576:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77576:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Co...
class FailUntilSucceeds: ROBOT_LIBRARY_SCOPE = 'TESTCASE' def __init__(self, times_to_fail=0): self.times_to_fail = int(times_to_fail) def fail_until_retried_often_enough(self, message="Hello"): self.times_to_fail -= 1 if self.times_to_fail >= 0: raise Exce...
ajibawa-2023/Python-Code-Large/train/row_77577
7
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_77577:ClassDef_L1_C0", "label": "FailUntilSucceeds", "type": "class", "loc": [1, 12], "level": 0, "parent": null, "vector": [3, 0, 0.5417, 1.0, 0, 0.66, 0.0, 243, 0, 2, 0, 0, 0, 0, 2], "semantic": {"name": "FailUntilSucceeds", "arg_names": [], "import_names": [], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77577:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77577:Assign_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77577:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77577:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import exceptions class ObjectToReturn: def __init__(self, name): self.name = name def __str__(self): return self.name def exception(self, name, msg=""): exception = getattr(exceptions, name) raise exception, msg
ajibawa-2023/Python-Code-Large/train/row_77578
8
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_77578:Import_L1_C0", "label": "exceptions import exceptions", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0833, 0, 0.66, 0.0, 63, 0, 1, 0, 0, 63, 0, 0], "semantic": {"name": "exceptions", "arg_names": [], "import_names": ["exc...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77578:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77578:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77578:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77578:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
class SameNamesAsInBuiltIn: def noop(self): """Using this keyword without libname causes an error"""
ajibawa-2023/Python-Code-Large/train/row_77579
3
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"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77579:ClassDef_L1_C0", "label": "SameNamesAsInBuiltIn", "type": "class", "loc": [1, 4], "level": 0, "parent": null, "vector": [3, 0, 0.625, 1.0, 0, 0.66, 0.0, 82, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "SameNamesAsInBuiltIn", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77579:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77579:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77579:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77579:Expr_L4_C8"}]
from robot.libraries.BuiltIn import BuiltIn class NamespaceUsingLibrary(object): def __init__(self): self._importing_suite = BuiltIn().get_variable_value('${SUITE NAME}') self._easter = BuiltIn().get_library_instance('Easter') def get_importing_suite(self): return self._importing_suit...
ajibawa-2023/Python-Code-Large/train/row_77580
9
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_77580:ImportFrom_L1_C0", "label": "from robot.libraries.BuiltIn import BuiltIn", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0769, 0, 0.66, 0.0, 588, 0, 1, 0, 0, 588, 0, 0], "semantic": {"name": "robot.libraries.BuiltIn", "arg...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77580:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77580:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77580:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77580:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
class ZipLib: def kw_from_zip(self, arg): print '*INFO*', arg return arg * 2
ajibawa-2023/Python-Code-Large/train/row_77581
4
7
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77581:ClassDef_L1_C0", "label": "ZipLib", "type": "class", "loc": [1, 5], "level": 0, "parent": null, "vector": [3, 0, 0.4286, 0.7143, 0, 0.66, 0.0, 240, 0, 1, 0, 0, 0, 0, 1], "semantic": {"name": "ZipLib", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77581:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77581:FunctionDef_L3_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77581:FunctionDef_L3_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_77581:Expr_L4_C2"}, {"f": "ajibawa-2023/Python-Code-L...
class PythonVarArgsConstructor: def __init__(self, mandatory, *varargs): self.mandatory = mandatory self.varargs = varargs def get_args(self): return self.mandatory, ' '.join(self.varargs)
ajibawa-2023/Python-Code-Large/train/row_77582
6
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77582:ClassDef_L1_C0", "label": "PythonVarArgsConstructor", "type": "class", "loc": [1, 8], "level": 0, "parent": null, "vector": [3, 0, 0.5, 0.8889, 0, 0.66, 0.0, 282, 0, 2, 0, 0, 0, 0, 1], "semantic": {"name": "PythonVarArgsConstructor", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77582:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77582:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77582:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77582:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code...
import ExampleJavaLibrary import DefaultArgs class ExtendJavaLib(ExampleJavaLibrary): def kw_in_java_extender(self, arg): return arg*2 def javaSleep(self, secs): raise Exception('Overridden kw executed!') def using_method_from_java_parent(self): self.divByZero() class ExtendJa...
ajibawa-2023/Python-Code-Large/train/row_77584
21
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77584:Import_L1_C0", "label": "ExampleJavaLibrary import ExampleJavaLibrary", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.027, 0.027, 0, 0.66, 0.0, 716, 0, 1, 0, 0, 716, 0, 0], "semantic": {"name": "ExampleJavaLibrary", "arg_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77584:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77584:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77584:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77584:Return_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
class ArgumentsPython: # method docs are used in unit tests as expected min and max args def a_0(self): """(0,0)""" return 'a_0' def a_1(self, arg): """(1,1)""" return 'a_1: ' + arg def a_3(self, arg1, arg2, arg3): """(3,3)""" return ' ...
ajibawa-2023/Python-Code-Large/train/row_77586
25
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77586:ClassDef_L1_C0", "label": "ArgumentsPython", "type": "class", "loc": [1, 35], "level": 0, "parent": null, "vector": [3, 0, 0.5, 0.9722, 0, 0.66, 0.0, 360, 0, 8, 0, 0, 0, 0, 8], "semantic": {"name": "ArgumentsPython", "arg_names": [], "import_names": [], "rhs_call_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77586:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77586:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77586:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77586:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-L...
from robot import utils class RunKeywordLibrary: ROBOT_LIBRARY_SCOPE = 'TESTCASE' def __init__(self): self.kw_names = ['Run Keyword That Passes', 'Run Keyword That Fails'] def get_keyword_names(self): return self.kw_names def run_keyword(self, name, args): try: m...
ajibawa-2023/Python-Code-Large/train/row_77587
24
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_77587:ImportFrom_L1_C0", "label": "from robot import utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0244, 0.0244, 0, 0.66, 0.0, 735, 0, 1, 0, 0, 735, 0, 0], "semantic": {"name": "robot", "arg_names": [], "import_names": ["utils"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77587:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77587:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77587:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77587:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-La...
def keyword_from_deeper_submodule(): return 'hi again' class Sub: def keyword_from_class_in_deeper_submodule(self): return 'bye'
ajibawa-2023/Python-Code-Large/train/row_77588
5
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77588:FunctionDef_L1_C0", "label": "keyword_from_deeper_submodule", "type": "function", "loc": [1, 2], "level": 0, "parent": null, "vector": [2, 0, 0.1667, 0.2222, 0, 0.66, 0.0, 11, 0, 0, 1, 0, 0, 0, 0], "semantic": {"name": "keyword_from_deeper_submodule", "arg_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77588:FunctionDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77588:Return_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77588:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77588:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code...
attribute = 42
ajibawa-2023/Python-Code-Large/train/row_77589
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_77589:Assign_L1_C0", "label": "attribute =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 355, 1, 0, 0, 0, 0, 1, 0], "semantic": {"name": "attribute", "arg_names": [], "import_names": [], "rhs_call_nam...
[]
library = "It should be OK to have an attribute with same name as the module" def keyword_from_submodule(arg='World'): return "Hello, %s!" % arg
ajibawa-2023/Python-Code-Large/train/row_77590
3
5
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77590:Assign_L1_C0", "label": "library =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.2, 0.2, 0, 0.66, 0.0, 860, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "library", "arg_names": [], "import_names": [], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77590:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77590:Return_L5_C4"}]
some_string = 'Hello, World!' class _SomeObject: pass some_object = _SomeObject()
ajibawa-2023/Python-Code-Large/train/row_77591
3
6
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77591:Assign_L1_C0", "label": "some_string =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.1667, 0, 0.66, 0.0, 913, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "some_string", "arg_names": [], "import_names": [], "rh...
[]
class KwargsLibrary(object): def __init__(self, arg1=None, arg2=None): self.arg1 = arg1 self.arg2 = arg2 def check_init_arguments(self, exp_arg1, exp_arg2): if self.arg1 != exp_arg1 or self.arg2 != exp_arg2: raise AssertionError('Wrong initialization values. Got (%s, %s), e...
ajibawa-2023/Python-Code-Large/train/row_77592
16
25
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77592:ClassDef_L1_C0", "label": "KwargsLibrary", "type": "class", "loc": [1, 25], "level": 0, "parent": null, "vector": [3, 0, 0.52, 1.0, 0, 0.66, 0.0, 328, 0, 7, 0, 0, 186, 0, 2], "semantic": {"name": "KwargsLibrary", "arg_names": [], "import_names": [], "rhs_call_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77592:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77592:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77592:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77592:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code...
class ParameterLibrary: def __init__(self, host='localhost', port='8080'): self.host = host self.port = port def parameters(self): return self.host, self.port
ajibawa-2023/Python-Code-Large/train/row_77593
6
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_77593:ClassDef_L1_C0", "label": "ParameterLibrary", "type": "class", "loc": [1, 8], "level": 0, "parent": null, "vector": [3, 0, 0.5625, 1.0, 0, 0.66, 0.0, 341, 0, 2, 0, 0, 0, 0, 0], "semantic": {"name": "ParameterLibrary", "arg_names": [], "import_names": [], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77593:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77593:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77593:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77593:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code...
from robot import utils def passing_handler(*args): for arg in args: print arg, return ', '.join(args) def failing_handler(*args): if len(args) == 0: msg = 'Failure' else: msg = 'Failure: %s' % ' '.join(args) raise AssertionError(msg) class GetKeywordNamesLibrary: ...
ajibawa-2023/Python-Code-Large/train/row_77594
23
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77594:ImportFrom_L1_C0", "label": "from robot import utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.027, 0.027, 0, 0.66, 0.0, 735, 0, 1, 0, 0, 735, 0, 0], "semantic": {"name": "robot", "arg_names": [], "import_names": ["utils"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77594:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77594:For_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77594:For_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77594:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
class Mandatory: def __init__(self, mandatory1, mandatory2): self.mandatory1 = mandatory1 self.mandatory2 = mandatory2 def get_args(self): return self.mandatory1, self.mandatory2 class Defaults(object): def __init__(self, mandatory, default1='value', default2=None): self...
ajibawa-2023/Python-Code-Large/train/row_77596
19
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_77596:ClassDef_L1_C0", "label": "Mandatory", "type": "class", "loc": [1, 8], "level": 0, "parent": null, "vector": [3, 0, 0.1406, 0.25, 0, 0.66, 0.0, 745, 0, 2, 0, 0, 0, 0, 0], "semantic": {"name": "Mandatory", "arg_names": [], "import_names": [], "rhs_call_name": "", "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77596:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77596:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77596:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77596:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code...
from ExampleLibrary import ExampleLibrary class ExtendPythonLib(ExampleLibrary): def kw_in_python_extender(self, arg): return arg/2 def print_many(self, *msgs): raise Exception('Overridden kw executed!') def using_method_from_python_parent(self): self.exception('Asser...
ajibawa-2023/Python-Code-Large/train/row_77598
7
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_77598:ImportFrom_L1_C0", "label": "from ExampleLibrary import ExampleLibrary", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0833, 0, 0.66, 0.0, 472, 0, 1, 0, 0, 472, 0, 0], "semantic": {"name": "ExampleLibrary", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77598:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77598:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77598:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77598:Return_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
__version__ = 'N/A' # This should be ignored when version is parsed class NameLibrary: handler_count = 10 def simple1(self): """Simple 1""" def simple2___(self): """Simple 2""" def underscore_name(self): """Underscore Name""" def underscore_name2_(self): """Undersc...
ajibawa-2023/Python-Code-Large/train/row_77599
123
164
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77599:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0061, 0.0061, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77599:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77599:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77599:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77599:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-La...
class NewStyleClassLibrary(object): def mirror(self, arg): arg = list(arg) arg.reverse() return ''.join(arg) def _property_getter(self): raise SystemExit('This should not be called, ever!!!') prop = property(_property_getter) class NewStyleClassArgsLibrar...
ajibawa-2023/Python-Code-Large/train/row_77600
19
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_77600:ClassDef_L1_C0", "label": "NewStyleClassLibrary", "type": "class", "loc": [1, 11], "level": 0, "parent": null, "vector": [3, 0, 0.1765, 0.3235, 0, 0.66, 0.0, 12, 0, 2, 0, 0, 186, 0, 5], "semantic": {"name": "NewStyleClassLibrary", "arg_names": [], "import_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77600:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77600:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77600:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77600:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code...
class LibClass1: def verify_libclass1(self): return 'LibClass 1 works' class LibClass2: def verify_libclass2(self): return 'LibClass 2 works also'
ajibawa-2023/Python-Code-Large/train/row_77601
6
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_77601:ClassDef_L1_C0", "label": "LibClass1", "type": "class", "loc": [1, 4], "level": 0, "parent": null, "vector": [3, 0, 0.2273, 0.3636, 0, 0.66, 0.0, 529, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "LibClass1", "arg_names": [], "import_names": [], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77601:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77601:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77601:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77601:Return_L4_C8"}, {"f": "ajibawa-2023/Python-Code...