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 2006-2007 Lukas Lalinsky # Copyright 2005-2006 Joe Wreschnig # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. """Read and write ASF (Window Media Audio) files.""" __all_...
ajibawa-2023/Python-Code-Large/train/row_79527
441
704
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79527:Expr_L8_C0", "label": "expression", "type": "expression", "loc": [8, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0114, 0.0014, 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_79527:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79527:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79527:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79527:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
# mutagen aims to be an all purpose media tagging library # Copyright (C) 2005 Michael Urman # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. """Mutagen aims to be an all purpos...
ajibawa-2023/Python-Code-Large/train/row_79529
111
237
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79529:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 20], "level": 0, "parent": null, "vector": [8, 0, 0.0612, 0.0506, 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_79529:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79529:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79529:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79529:FunctionDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2009 Joe Wreschnig # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. from mutagen import Metadata from mutagen._util import DictMixin, dict_match, utf8 from mutagen.mp4...
ajibawa-2023/Python-Code-Large/train/row_79530
126
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_79530:ImportFrom_L7_C0", "label": "from mutagen import Metadata", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.0271, 0.0039, 0, 0.66, 0.0, 984, 0, 1, 0, 0, 984, 0, 0], "semantic": {"name": "mutagen", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79530:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79530:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79530:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79530:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- import os import sys sys.path.insert(0, os.path.abspath('../')) import mutagen extensions = ['sphinx.ext.autodoc'] source_suffix = '.rst' master_doc = 'index' project = 'mutagen' copyright = u'2013, Joe Wreschnig, Michael Urman, Lukáš Lalinský, Christoph Reiter & others' version = mutagen.ve...
ajibawa-2023/Python-Code-Large/train/row_79533
12
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79533:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1765, 0.0588, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[]
#!/usr/bin/env python ############################################################################ # # Copyright (C) 2012, 2013 PX4 Development Team. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
ajibawa-2023/Python-Code-Large/train/row_79534
228
473
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79534:Import_L53_C0", "label": "sys import sys", "type": "import", "loc": [53, 53], "level": 0, "parent": null, "vector": [1, 0, 0.1121, 0.0021, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79534:ClassDef_L67_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79534:Expr_L68_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79534:ClassDef_L67_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79534:Assign_L70_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python import serial import os import platform import sys import time from struct import pack def unix_get_maple_path(file_prefix): """Try to find the device file for the Maple on *nix; assuming that it looks like /dev/<file_prefix>*. If there are multiple possibilities, ask the user what ...
ajibawa-2023/Python-Code-Large/train/row_79535
41
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_79535:Import_L1_C0", "label": "serial import serial", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0169, 0.0169, 0, 0.66, 0.0, 601, 0, 1, 0, 0, 601, 0, 0], "semantic": {"name": "serial", "arg_names": [], "import_names": ["serial"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79535:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79535:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79535:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79535:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/env python ############################################################################ # # Copyright (C) 2012, 2013 PX4 Development Team. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
ajibawa-2023/Python-Code-Large/train/row_79536
57
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_79536:Import_L42_C0", "label": "sys import sys", "type": "import", "loc": [42, 42], "level": 0, "parent": null, "vector": [1, 0, 0.3818, 0.0091, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79536:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79536:Assign_L54_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79536:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79536:Assign_L55_C1"}, {"f": "ajibawa-2023/Python-Co...
# File: ADNS3080ImageGrabber.py import serial import string import math import time from Tkinter import * from threading import Timer comPort = 'COM8' #default com port comPortBaud = 115200 class App: grid_size = 15 num_pixels = 30 image_started = FALSE image_current_row = 0; se...
ajibawa-2023/Python-Code-Large/train/row_79538
112
180
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79538:Import_L3_C0", "label": "serial import serial", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0167, 0.0056, 0, 0.66, 0.0, 601, 0, 1, 0, 0, 601, 0, 0], "semantic": {"name": "serial", "arg_names": [], "import_names": ["serial"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79538:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79538:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79538:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79538:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright (c) 2009 Leif Johnson <leif@leifjohnson.net> # # 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 rights # to use, copy, modify,...
ajibawa-2023/Python-Code-Large/train/row_79539
94
240
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79539:Expr_L21_C0", "label": "expression", "type": "expression", "loc": [21, 47], "level": 0, "parent": null, "vector": [8, 0, 0.1417, 0.1125, 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_79539:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79539:Expr_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79539:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79539:FunctionDef_L55_C4"}, {"f": "ajibawa-2023/Python...
import setuptools setuptools.setup( name='perceptron', version='1.0', py_modules=['perceptron'], install_requires=['numpy'], author='Leif Johnson', author_email='leif@leifjohnson.net', description='A small library of perceptron variants.', long_description=open('README').read(), li...
ajibawa-2023/Python-Code-Large/train/row_79540
2
23
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79540:Import_L1_C0", "label": "setuptools import setuptools", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0435, 0.0435, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "setuptools", "arg_names": [], "import_names": ["s...
[]
# Copyright (c) 2009 Leif Johnson <leif@leifjohnson.net> # # 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 rights # to use, copy, modify,...
ajibawa-2023/Python-Code-Large/train/row_79541
60
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_79541:Expr_L21_C0", "label": "expression", "type": "expression", "loc": [21, 25], "level": 0, "parent": null, "vector": [8, 0, 0.2, 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_79541:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79541:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79541:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79541:For_L41_C4"}, {"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_79542
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_79542: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_79542:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79542:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79542:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79542:Assign_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/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_79543
189
572
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79543:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0297, 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_79543:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79543:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79543:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79543:Return_L54_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/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_79545
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_79545: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_79545:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79545:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79545:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79545:Expr_L46_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_79546
214
544
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79546:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0303, 0.0074, 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_79546:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79546:Import_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79546:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79546:Try_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
#!/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_79547
90
253
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79547:Import_L18_C0", "label": "base64 import base64", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0711, 0.004, 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_79547:Try_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79547:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79547:Try_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79547:Try_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# 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_79548
155
366
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79548:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0451, 0.0765, 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_79548:Try_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79548:Import_L41_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79548:Try_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79548:Try_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# 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_79550
348
953
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79550:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0173, 0.0042, 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_79550:Try_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79550:ImportFrom_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79550:Try_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79550:ImportFrom_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# 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_79551
37
113
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79551:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1504, 0.0442, 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_79551:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79551:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79551:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79551:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# 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_79552
38
92
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79552:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1848, 0.0543, 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_79552:Try_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79552:Import_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79552:Try_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79552:Try_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# 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_79553
55
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79553:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1491, 0.0439, 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_79553:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79553:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79553:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79553:FunctionDef_L34_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_79554
374
940
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79554:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 20], "level": 0, "parent": null, "vector": [8, 0, 0.0186, 0.0064, 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_79554:ClassDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79554:Expr_L52_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79554:ClassDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79554:FunctionDef_L54_C2"}, {"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_79555
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_79555: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_79555:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79555:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79555:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79555: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_79556
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_79556: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_79556:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79556:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79556:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79556: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_79557
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_79557: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_79557:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79557:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79557:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79557:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# 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_79558
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_79558: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_79558:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79558:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79558:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79558:ImportFrom_L34_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_79560
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_79560: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_79560:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79560:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79560:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79560:Assign_L36_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_79562
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_79562: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_79562:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79562:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79562:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79562: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_79563
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_79563: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_79563:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79563:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79563:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79563:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Cod...
#!/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_79564
145
366
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79564:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0546, 0.0191, 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_79564:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79564:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79564:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79564:FunctionDef_L53_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/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_79565
49
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79565:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.0439, 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_79565:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79565:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79565:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79565:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" 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_79566
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_79566: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_79566:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79566:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79566:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79566:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Co...
"""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_79568
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_79568: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_79568:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79568:Expr_L97_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79568:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79568:Assign_L102_C4"}, {"f": "ajibawa-2023/Python-Cod...
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_79569
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_79569: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_79569:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79569:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79569:FunctionDef_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79569:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code...
# 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_79570
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_79570: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_79570:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79570:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79570:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79570: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_79571
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_79571: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_79571:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79571:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79571:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79571:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_79572
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_79572: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_79572:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79572:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79572:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79572:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
ajibawa-2023/Python-Code-Large/train/row_79574
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_79574: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_79574:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79574:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79574:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79574:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/env python # # Copyright 2009 The Rhizosphere Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
ajibawa-2023/Python-Code-Large/train/row_79575
128
395
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79575:Import_L83_C0", "label": "httplib import httplib", "type": "import", "loc": [83, 83], "level": 0, "parent": null, "vector": [1, 0, 0.2101, 0.0025, 0, 0.66, 0.0, 2, 0, 1, 0, 0, 2, 0, 0], "semantic": {"name": "httplib", "arg_names": [], "import_names": ["httplib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79575:FunctionDef_L92_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79575:Expr_L93_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79575:FunctionDef_L92_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79575:Assign_L98_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # # Copyright 2010 The Rhizosphere Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
ajibawa-2023/Python-Code-Large/train/row_79576
107
249
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79576:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 74], "level": 0, "parent": null, "vector": [8, 0, 0.1827, 0.2329, 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_79576:ClassDef_L89_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79576:Expr_L90_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79576:ClassDef_L89_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79576:FunctionDef_L92_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python # # Copyright 2010 The Rhizosphere Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
ajibawa-2023/Python-Code-Large/train/row_79577
39
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_79577:Import_L17_C0", "label": "os import os", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.1735, 0.0102, 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_79577:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79577:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79577:FunctionDef_L28_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79577:Assign_L29_C6"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # # Copyright 2010 The Rhizosphere Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
ajibawa-2023/Python-Code-Large/train/row_79578
18
46
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79578:Import_L17_C0", "label": "os.path import os.path", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.3696, 0.0217, 0, 0.66, 0.0, 79, 0, 1, 0, 0, 79, 0, 0], "semantic": {"name": "os.path", "arg_names": [], "import_names": ["os.path"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79578:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79578:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79578:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79578:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # # Copyright 2010 The Rhizosphere Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
ajibawa-2023/Python-Code-Large/train/row_79579
21
50
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79579:Import_L17_C0", "label": "os.path import os.path", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.34, 0.02, 0, 0.66, 0.0, 79, 0, 1, 0, 0, 79, 0, 0], "semantic": {"name": "os.path", "arg_names": [], "import_names": ["os.path"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79579:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79579:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79579:FunctionDef_L27_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79579:Assign_L28_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # # Copyright 2010 The Rhizosphere Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
ajibawa-2023/Python-Code-Large/train/row_79580
20
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_79580:Import_L17_C0", "label": "os import os", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.3269, 0.0192, 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_79580:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79580:FunctionDef_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79580:FunctionDef_L27_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79580:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # # Copyright 2010 The Rhizosphere Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
ajibawa-2023/Python-Code-Large/train/row_79582
218
478
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79582:Import_L23_C0", "label": "datetime import datetime", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.0481, 0.0021, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["date...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79582:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79582:Expr_L44_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79582:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79582:Return_L45_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # # Copyright 2010 The Rhizosphere Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
ajibawa-2023/Python-Code-Large/train/row_79583
33
89
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79583:Import_L17_C0", "label": "os import os", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.191, 0.0112, 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_79583:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79583:Expr_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79583:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79583:Return_L25_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_79585
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_79585: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_79585:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79585:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79585:FunctionDef_L32_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79585:Assign_L33_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python import sys import os import os.path import ConfigParser import csv import httplib cwd = os.path.abspath((os.path.dirname(sys.argv[0]))) config_file = os.path.join(cwd, 'fetch_samples.conf') #print 'config file: %s' % config_file config = ConfigParser.RawConfigParser() config.read(config_file) samp...
ajibawa-2023/Python-Code-Large/train/row_79586
29
39
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79586:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0256, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79586:If_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79586:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79586:For_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79586:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
#!/usr/bin/python import sys import os import os.path import ConfigParser from xml.etree import ElementTree cwd = os.path.abspath((os.path.dirname(sys.argv[0]))) config_file = os.path.join(cwd, 'analyze_samples.conf') #print 'config file: %s' % config_file config = ConfigParser.RawConfigParser() config.read(config_f...
ajibawa-2023/Python-Code-Large/train/row_79587
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_79587:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0938, 0.0312, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79587:For_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79587:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79587:For_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79587:Try_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
#!/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_79588
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_79588: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_79588:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79588:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79588:FunctionDef_L32_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79588:Assign_L33_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
ajibawa-2023/Python-Code-Large/train/row_79589
63
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79589:Import_L5_C0", "label": "logging import logging", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0118, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79589:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79589:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79589:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79589:FunctionDef_L17_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
ajibawa-2023/Python-Code-Large/train/row_79590
20
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79590:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.037, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79590:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79590:Assign_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79590:For_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79590:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
ajibawa-2023/Python-Code-Large/train/row_79591
50
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79591:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0631, 0.0991, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79591:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79591:Return_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79591:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79591:Assign_L57_C2"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
ajibawa-2023/Python-Code-Large/train/row_79592
42
149
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79592:Import_L3_C0", "label": "datetime import datetime", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0201, 0.0067, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetim...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79592:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79592:Assign_L83_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79592:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79592:Expr_L85_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
ajibawa-2023/Python-Code-Large/train/row_79593
44
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79593:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0088, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79593:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79593:Expr_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79593:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79593:Assign_L71_C2"}, {"f": "ajibawa-2023/Python-Code...
# Copyright 2009 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 writing, ...
ajibawa-2023/Python-Code-Large/train/row_79594
72
174
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79594:Import_L15_C0", "label": "cgi import cgi", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0862, 0.0057, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79594:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79594:Return_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79594:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79594:If_L33_C2"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright 2009 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 writing, ...
ajibawa-2023/Python-Code-Large/train/row_79595
53
102
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79595:ImportFrom_L15_C0", "label": "from datetime import datetime", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1471, 0.0098, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79595:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79595:Return_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79595:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79595:FunctionDef_L32_C2"}, {"f": "ajibawa-2023/Python-...
# Copyright 2009 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 writing, ...
ajibawa-2023/Python-Code-Large/train/row_79596
8
23
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79596:ImportFrom_L15_C0", "label": "from google.appengine.ext import db", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.6522, 0.0435, 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_79596:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79596:Assign_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79596:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79596:Assign_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
ajibawa-2023/Python-Code-Large/train/row_79597
38
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79597:Import_L26_C0", "label": "os import os", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.3514, 0.0135, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79597:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79597:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79597:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79597:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python import imageshack import sys if __name__ == "__main__": if len(sys.argv)!=3: print "Usage upload.py <devkey> <filename/url>" sys.exit(1) u = imageshack.Uploader(sys.argv[1]) try: if sys.argv[2].startswith("http://"): print u.uploadURL(sys.argv[2]...
ajibawa-2023/Python-Code-Large/train/row_79599
2
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79599:Import_L1_C0", "label": "imageshack import imageshack", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 115, 0, 1, 0, 0, 115, 0, 0], "semantic": {"name": "imageshack", "arg_names": [], "import_names": ["i...
[]
#!/usr/bin/env python import yfrog import sys if __name__ == "__main__": if len(sys.argv)<4: print "Usage upload.py <username> <password> <filename/url> [<text>] [<source>]" sys.exit(1) u = yfrog.Uploader() if len(sys.argv)>=5: msg = sys.argv[4] else: msg = None if...
ajibawa-2023/Python-Code-Large/train/row_79600
2
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79600:Import_L1_C0", "label": "yfrog import yfrog", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "yfrog", "arg_names": [], "import_names": ["yfrog"], "rhs_ca...
[]
#!/usr/bin/env python ''' Client API library to upload images and videos to yfrog.com Using Yfrog public API, as described here: http://yfrog.com/api.php ''' import urllib2_file import urllib2 import socket from mimetypes import guess_type from xml.dom.minidom import parseString from os.path import exists API_UR...
ajibawa-2023/Python-Code-Large/train/row_79602
100
216
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79602:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0301, 0.037, 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_79602:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79602:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79602:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79602:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' yfrog api ''' from upload import *
ajibawa-2023/Python-Code-Large/train/row_79603
2
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_79603:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.1667, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
#!/usr/bin/env python ''' Client API library to upload images and videos to imageshack.us Using "Unified upload API" as described here: http://reg.imageshack.us/content.php?page=developerpublic ''' import urllib2_file import urllib2 import socket import httplib from mimetypes import guess_type from xml.dom.minido...
ajibawa-2023/Python-Code-Large/train/row_79605
123
252
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79605:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0258, 0.0317, 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_79605:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79605:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79605:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79605:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python ''' Client API library for chuncked video uploading to imageshack.us Using "Streaming upload API" as described here: http://code.google.com/p/imageshackapi/wiki/StreamingAPI ''' import os import urllib import httplib import urllib2 from urlparse import urlparse from os.path import exists fro...
ajibawa-2023/Python-Code-Large/train/row_79606
107
176
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79606:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0369, 0.0455, 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_79606:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79606:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79606:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79606:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' imageshack api ''' from upload import * from chuncked_upload import Uploader as ChunkedUploader
ajibawa-2023/Python-Code-Large/train/row_79607
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_79607:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.25, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[]
"""A utils colection for serial port management""" import serial def scan(): """scan for available ports. return a list of tuples (num, name)""" available = [] for i in range(256): try: s = serial.Serial(i) available.append( (i, s.name)) s.close() # e...
ajibawa-2023/Python-Code-Large/train/row_79609
15
19
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79609:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0526, 0.0526, 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_79609:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79609:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79609:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79609:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""Interface for Aladin Pro""" import utils import serial import sys def main(): """Main function""" #Look for ports ports = utils.scan() availnumbers = [] print "Found ports:" for number, name in ports: print "(%d) %s" % (number, name) availnumbers.append(n...
ajibawa-2023/Python-Code-Large/train/row_79610
34
50
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79610:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.02, 0.02, 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_79610:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79610:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79610:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79610:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/python # -*- coding: utf8 -*- from decimal import Decimal TIPOS_OP = {1: 'Compraventa de granos', 2: u'Consignación de granos'} GRANOS = { 1: 'LINO', 2: 'GIRASOL', 3: 'MANI EN CAJA', 4: 'GIRASOL DESCASCARADO', 5: 'MANI PARA INDUSTRIA DE SELECCION', 6: 'MANI PARA INDUSTRIA ACEITERA'...
ajibawa-2023/Python-Code-Large/train/row_79615
11
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79615:ImportFrom_L3_C0", "label": "from decimal import Decimal", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0088, 0, 0.66, 0.0, 349, 0, 1, 0, 0, 349, 0, 0], "semantic": {"name": "decimal", "arg_names": [], "import_names": ["D...
[]
[{'components': [{'name': 'lblWebservice', 'pos': (18, 10), 'text': u'Webservice:', 'type': 'Label'}, {'items': [u'wsfe', u'wsfev1', u'wsfexv1'], 'name': 'cboWebservice', 'pos': (102, 5), 'size':...
ajibawa-2023/Python-Code-Large/train/row_79619
1
144
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79619:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 144], "level": 0, "parent": null, "vector": [8, 0, 0.5035, 1.0, 0, 0.66, 0.0, 0, 0, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/python # -*- coding: latin-1 -*- # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by the # Free Software Foundation; either version 3, or (at your option) any later # version. # # This program is distributed in ...
ajibawa-2023/Python-Code-Large/train/row_79620
63
277
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79620:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0505, 0.0036, 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_79620:ClassDef_L181_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79620:FunctionDef_L184_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79620:FunctionDef_L184_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79620:Expr_L186_C8"}, {"f": "ajibawa-2023/Pytho...
#!/usr/bin/python # -*- coding: utf8 -*- # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 3, or (at your option) any later # version. # # This program is distributed in the hope th...
ajibawa-2023/Python-Code-Large/train/row_79621
57
88
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79621:Expr_L13_C0", "label": "expression", "type": "expression", "loc": [13, 13], "level": 0, "parent": null, "vector": [8, 0, 0.1477, 0.0114, 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_79621:ClassDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79621:FunctionDef_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79621:FunctionDef_L51_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79621:Expr_L52_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python # -*- coding: utf8 -*- # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 3, or (at your option) any later # version. # # This program is distributed in the hope th...
ajibawa-2023/Python-Code-Large/train/row_79622
252
544
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79622:Expr_L13_C0", "label": "expression", "type": "expression", "loc": [13, 13], "level": 0, "parent": null, "vector": [8, 0, 0.0239, 0.0018, 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_79622:ClassDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79622:FunctionDef_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79622:FunctionDef_L51_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79622:Expr_L52_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python # -*- coding: latin-1 -*- # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by the # Free Software Foundation; either version 3, or (at your option) any later # version. # # This program is distributed in t...
ajibawa-2023/Python-Code-Large/train/row_79625
16
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_79625:Expr_L16_C0", "label": "expression", "type": "expression", "loc": [16, 16], "level": 0, "parent": null, "vector": [8, 0, 0.1455, 0.0091, 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_79625:For_L102_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79625:Assign_L103_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79625:For_L102_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79625:If_L104_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# -*- coding: utf-8 -*- """ The LAS Object Header module. :Author: - 2010-2012 Nicola Creati and Roberto Vidmar :Revision: $Revision: 5 $ $Date: 2012-11-08 14:52:33 +0100 (Thu, 08 Nov 2012) $ :Copyright: 2010-2012 Nicola Creati <ncreati@inogs.it> Roberto Vidmar <r...
ajibawa-2023/Python-Code-Large/train/row_79627
700
1,669
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79627:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 16], "level": 0, "parent": null, "vector": [8, 0, 0.0054, 0.009, 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_79627:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79627:ImportFrom_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79627:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79627:Assign_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- coding: utf-8 -*- """ The LAS Object module. Read and write LAS files :Author: - 2010-2012 Nicola Creati and Roberto Vidmar :Revision: $Revision: 8 $ $Date: 2013-02-01 10:12:57 +0100 (Fri, 01 Feb 2013) $ :Copyright: 2010-2012 Nicola Creati <ncreati@inogs.it> ...
ajibawa-2023/Python-Code-Large/train/row_79628
80
227
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79628:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0441, 0.0749, 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_79628:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79628:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79628:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79628:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ :class:`ALASPy` Exception Classes :Author: - 2009-2012 Roberto Vidmar :Revision: $Revision: 2 $ $Date: 2012-10-22 15:55:02 +0200 (Mon, 22 Oct 2012) $ :Copyright: 2009-2012 Nicola Creati <ncreati@inogs.it> Roberto Vidmar <r...
ajibawa-2023/Python-Code-Large/train/row_79629
38
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79629:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 16], "level": 0, "parent": null, "vector": [8, 0, 0.1286, 0.2143, 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_79629:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79629:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79629:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79629:FunctionDef_L20_C2"}, {"f": "ajibawa-2023/Python-Code-...
""" ALASpy module to read and write LAS files. :Author: - 2010-2012 Nicola Creati and Roberto Vidmar """
ajibawa-2023/Python-Code-Large/train/row_79630
1
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_79630:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.6, 1.0, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ...
[]
# -*- coding: utf-8 -*- """ The complete (?) list of pairs (key values, descriptions) for a GEOTIFF implementation :Author: - 20120816-20121017 Roberto Vidmar :Revision: $Revision: 2 $ $Date: 2012-10-22 15:55:02 +0200 (Mon, 22 Oct 2012) $ :Copyright: 2012-2012 N...
ajibawa-2023/Python-Code-Large/train/row_79631
3
1,977
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79631:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0048, 0.0081, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[]
# -*- coding: utf-8 -*- """ A Python interface module to some GDAL library functions to translate LAS Variable Record content (Geotiff keys) into WKT or Proj4 strings :Author: - 20120816-20120929 Roberto Vidmar :Revision: $Revision: 8 $ $Date: 2013-02-01 10:12:57 +0100 (Fri,...
ajibawa-2023/Python-Code-Large/train/row_79632
180
464
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79632:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0205, 0.0345, 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_79632:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79632:Assign_L44_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79632:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79632:Assign_L45_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
''' Created on Sep 4, 2011 @author: jordanh The XigInactiveSessionCommandParser is the default command parser. When there is no active sessions characters are accumulated into an object instance of this class, parsed and delimited by CR or LF characters by XBee address. The output of this parser is used by the XigI...
ajibawa-2023/Python-Code-Large/train/row_79636
37
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79636:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 14], "level": 0, "parent": null, "vector": [8, 0, 0.1071, 0.2, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79636:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79636:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79636:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79636:Assign_L21_C8"}, {"f": "ajibawa-2023/Python-...
"""Simulate some of the functions of the logging module""" import sys try: import logging #@UnusedImport except: # logging module does not exist on this platform, insert this module instead sys.modules['logging'] = sys.modules[__name__] DEBUG = 0 INFO = 1 WARN = 2 WARNING = 2 ERROR = 3 CRI...
ajibawa-2023/Python-Code-Large/train/row_79640
56
88
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79640:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0114, 0.0114, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79640:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79640:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79640:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79640:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_7...
class Addr(str): """Generic Address class to store MAC and IP addresses""" NUM_BYTES = None DELIMITER = ":" BASE = 16 BYTES_PER_SEGMENT = 1 CHARS = {10: "0123456789", 16: "0123456789abcdefABCDEF"} def __new__(cls, value = 0): #value may be a string (with spacers), ...
ajibawa-2023/Python-Code-Large/train/row_79641
178
266
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79641:ClassDef_L1_C0", "label": "Addr", "type": "class", "loc": [1, 97], "level": 0, "parent": null, "vector": [3, 0, 0.1842, 0.3647, 0, 0.66, 0.0, 645, 0, 7, 0, 0, 52, 0, 33], "semantic": {"name": "Addr", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79641:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79641:Expr_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79641:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79641:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# sermsdos.py # # History: # # 3rd September 2002 Dave Haynes # 1. First defined # # Although this code should run under the latest versions of # Python, on DOS-based platforms such as Windows 95 and 98, # it has been specifically written to be compatible with # PyDOS, available at: # http://ww...
ajibawa-2023/Python-Code-Large/train/row_79644
76
200
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79644:Import_L38_C0", "label": "os import os", "type": "import", "loc": [38, 38], "level": 0, "parent": null, "vector": [1, 0, 0.19, 0.005, 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_79644:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79644:Return_L64_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79644:ClassDef_L66_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79644:Expr_L67_C4"}, {"f": "ajibawa-2023/Python-Code-La...
#! python # # Python Serial Port Extension for Win32, Linux, BSD, Jython # see __init__.py # # This module implements a special URL handler that uses the port listing to # find ports by searching the string descriptions. # # (C) 2011 Chris Liechti <cliechti@gmx.net> # this is distributed under a free software license, ...
ajibawa-2023/Python-Code-Large/train/row_79647
20
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_79647:Import_L14_C0", "label": "serial import serial", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.3111, 0.0222, 0, 0.66, 0.0, 601, 0, 1, 0, 0, 601, 0, 0], "semantic": {"name": "serial", "arg_names": [], "import_names": ["serial"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79647:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79647:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79647:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79647:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-...
#! python # # Python Serial Port Extension for Win32, Linux, BSD, Jython # see ../__init__.py # # This is a thin wrapper to load the rfc2271 implementation. # # (C) 2011 Chris Liechti <cliechti@gmx.net> # this is distributed under a free software license, see license.txt from serial.rfc2217 import Serial
ajibawa-2023/Python-Code-Large/train/row_79648
1
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_79648:ImportFrom_L11_C0", "label": "from serial.rfc2217 import Serial", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 1.0, 0.0909, 0, 0.66, 0.0, 621, 0, 1, 0, 0, 621, 0, 0], "semantic": {"name": "serial.rfc2217", "arg_names": [], "impor...
[]
from ctypes import * from ctypes.wintypes import HANDLE from ctypes.wintypes import BOOL from ctypes.wintypes import LPCWSTR _stdcall_libraries = {} _stdcall_libraries['kernel32'] = WinDLL('kernel32') from ctypes.wintypes import DWORD from ctypes.wintypes import WORD from ctypes.wintypes import BYTE INVALID_HANDLE_VAL...
ajibawa-2023/Python-Code-Large/train/row_79650
26
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_79650:ImportFrom_L1_C0", "label": "from ctypes import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0278, 0.0278, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79650:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79650:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79650:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79650:Return_L11_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import glob import sys import os import tempfile import re # The comports function is expected to return an iterable that yields tuples of # 3 strings: port name, human readable description and a hardware ID. # # as currently no method is known to get the second two strings easily, they # are currently jus...
ajibawa-2023/Python-Code-Large/train/row_79651
119
193
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79651:Import_L1_C0", "label": "glob import glob", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0052, 0.0052, 0, 0.66, 0.0, 958, 0, 1, 0, 0, 958, 0, 0], "semantic": {"name": "glob", "arg_names": [], "import_names": ["glob"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79651:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79651:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79651:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79651:Try_L19_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import ctypes import re def ValidHandle(value, func, arguments): if value == 0: raise ctypes.WinError() return value import serial from serial.win32 import ULONG_PTR, is_64bit from ctypes.wintypes import HANDLE from ctypes.wintypes import BOOL from ctypes.wintypes import HWND from ctypes....
ajibawa-2023/Python-Code-Large/train/row_79652
129
207
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79652:Import_L1_C0", "label": "ctypes import ctypes", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0048, 0.0048, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["ctypes"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79652:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79652:If_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79652:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79652:Return_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # portable serial port access with python # this is a wrapper module for different platform implementations of the # port enumeration feature # # (C) 2011 Chris Liechti <cliechti@gmx.net> # this is distributed under a free software license, see license.txt """\ This module will provide a functio...
ajibawa-2023/Python-Code-Large/train/row_79653
37
99
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79653:Expr_L10_C0", "label": "expression", "type": "expression", "loc": [10, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1364, 0.0808, 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_79653:If_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79653:ImportFrom_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79653:If_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79653:If_L28_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/usr/bin/env python # portable serial port access with python # this is a wrapper module for different platform implementations # # (C) 2001-2010 Chris Liechti <cliechti@gmx.net> # this is distributed under a free software license, see license.txt VERSION = '2.6' import sys if sys.platform == 'cli': from ser...
ajibawa-2023/Python-Code-Large/train/row_79657
32
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79657:Assign_L9_C0", "label": "VERSION =", "type": "assigned_variable", "loc": [9, 9], "level": 0, "parent": null, "vector": [14, 0, 0.1139, 0.0127, 0, 0.66, 0.0, 557, 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_79657:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79657:ImportFrom_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79657:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79657:Import_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#! python # Python Serial Port Extension for Win32, Linux, BSD, Jython # serial driver for win32 # see __init__.py # # (C) 2001-2011 Chris Liechti <cliechti@gmx.net> # this is distributed under a free software license, see license.txt # # Initial patch to use ctypes by Giovanni Bajo <rasky@develer.com> import ctypes f...
ajibawa-2023/Python-Code-Large/train/row_79658
255
408
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79658:Import_L11_C0", "label": "ctypes import ctypes", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 0.027, 0.0025, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["ctypes"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79658:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79658:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79658:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79658:Return_L19_C4"}, {"f": "ajibawa-2023/Python-Code...
"""\ XIG Configuration File Modify the contents of the below XigConfig object in order to change the configuration of the Xig. Each option is commented as to what it does. """ class XigConfig(object): ## Session Types # Enable/disable session types; disable sessions by c...
ajibawa-2023/Python-Code-Large/train/row_79660
14
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_79660:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0367, 0.0642, 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_79660:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79660:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79660:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79660:Assign_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
import json import webob import sys, glob try: import serial.tools.list_ports except: pass class SerialPortsHandler: def __init__(self): self.com_ports = set() def poll(self, refresh=False): new_ports = self.get_ports() if refresh or new_ports != self.co...
ajibawa-2023/Python-Code-Large/train/row_79662
33
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79662:Import_L1_C0", "label": "json import json", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0213, 0.0213, 0, 0.66, 0.0, 463, 0, 1, 0, 0, 463, 0, 0], "semantic": {"name": "json", "arg_names": [], "import_names": ["json"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79662:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79662:Import_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79662:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79662:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
import os import mimetypes import webob class StaticHandler: def __init__(self): self.static_folder = os.path.join(os.path.dirname(__file__), '..', 'static') if not os.path.exists(self.static_folder): self.static_folder = os.path.join(os.path.curdir, 'static') ...
ajibawa-2023/Python-Code-Large/train/row_79663
37
51
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79663:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0196, 0.0196, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79663:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79663:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79663:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79663:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
import webob import json import socket import select import threading import logging class XigConsoleHandler(threading.Thread): def __init__(self, port = None): threading.Thread.__init__(self) threading.Thread.setDaemon(self,True) self.port = port self.udp_sd = socket.so...
ajibawa-2023/Python-Code-Large/train/row_79664
44
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_79664:Import_L1_C0", "label": "webob import webob", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0189, 0.0189, 0, 0.66, 0.0, 787, 0, 1, 0, 0, 787, 0, 0], "semantic": {"name": "webob", "arg_names": [], "import_names": ["webob"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79664:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79664:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79664:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79664:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-...
import webob import json import rci class idigiHandler: def __init__(self): self.connected = None def poll(self, refresh=False): if refresh or self.connected != rci.connected(): return self.get_connected_string() return None def g...
ajibawa-2023/Python-Code-Large/train/row_79665
23
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79665:Import_L1_C0", "label": "webob import webob", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0323, 0.0323, 0, 0.66, 0.0, 787, 0, 1, 0, 0, 787, 0, 0], "semantic": {"name": "webob", "arg_names": [], "import_names": ["webob"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79665:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79665:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79665:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79665:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
import webob import json from simulator_settings import settings class SettingsHandler: def __init__(self): self.callbacks = {} # key, callback self.poll_data = {} # key, value def callback(self, key, new_value, old_value): self.poll_data[key] = new_value ...
ajibawa-2023/Python-Code-Large/train/row_79666
41
61
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79666:Import_L1_C0", "label": "webob import webob", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0164, 0.0164, 0, 0.66, 0.0, 787, 0, 1, 0, 0, 787, 0, 0], "semantic": {"name": "webob", "arg_names": [], "import_names": ["webob"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79666:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79666:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79666:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79666:Assign_L9_C8"}, {"f": "ajibawa-2023/Python-Code...
import os import webob class IndexHandler: def __call__(self, request): if request.method == 'GET': # return the main page filename = os.path.join(os.path.dirname(__file__), '..', 'templates', 'index.html') if not os.path.exists(filename): ...
ajibawa-2023/Python-Code-Large/train/row_79667
15
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_79667:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0476, 0.0476, 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_79667:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79667:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79667:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79667:If_L7_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
import webob import json import logging import time logs = [] class CustomHandler(logging.Handler): def handle(self, record): global logs logs.append(record) custom_handler = CustomHandler() logger = logging.getLogger('') logger.addHandler(custom_handler) class LogsHandler: ...
ajibawa-2023/Python-Code-Large/train/row_79668
27
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_79668:Import_L1_C0", "label": "webob import webob", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0278, 0.0278, 0, 0.66, 0.0, 787, 0, 1, 0, 0, 787, 0, 0], "semantic": {"name": "webob", "arg_names": [], "import_names": ["webob"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79668:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79668:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79668:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79668:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-...