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
#!/usr/bin/python # # Copyright (C) 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 ...
ajibawa-2023/Python-Code-Large/train/row_79244
21
55
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79244:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.3091, 0.0182, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79244:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79244:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79244:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79244:Assign_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python # # Copyright (C) 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 ...
ajibawa-2023/Python-Code-Large/train/row_79245
0
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# -*-*- encoding: utf-8 -*-*- # # This is the base file for the PicasaWeb python client. # It is used for lower level operations. # # $Id: __init__.py 148 2007-10-28 15:09:19Z havard.gulldahl $ # # Copyright 2007 Håvard Gulldahl # Portions (C) 2006 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "L...
ajibawa-2023/Python-Code-Large/train/row_79246
599
1,112
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79246:Expr_L23_C0", "label": "expression", "type": "expression", "loc": [23, 34], "level": 0, "parent": null, "vector": [8, 0, 0.0256, 0.0108, 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_79246:Try_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79246:ImportFrom_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79246:Try_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79246:Try_L44_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
#!/usr/bin/python # # Copyright (C) 2006 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_79248
390
835
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79248:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 21], "level": 0, "parent": null, "vector": [8, 0, 0.0234, 0.0048, 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_79248:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79248:ImportFrom_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79248:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79248:Try_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
#!/usr/bin/env 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 ...
ajibawa-2023/Python-Code-Large/train/row_79250
71
134
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79250:Expr_L21_C0", "label": "expression", "type": "expression", "loc": [21, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1716, 0.0373, 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_79250:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79250:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79250:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79250:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env 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 ...
ajibawa-2023/Python-Code-Large/train/row_79251
70
201
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79251:Import_L17_C0", "label": "atom.data import atom.data", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.0846, 0.005, 0, 0.66, 0.0, 778, 0, 1, 0, 0, 778, 0, 0], "semantic": {"name": "atom.data", "arg_names": [], "import_names": ["at...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79251:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79251:Expr_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79251:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79251:Assign_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python # # Copyright (C) 2010-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...
ajibawa-2023/Python-Code-Large/train/row_79252
305
1,175
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79252:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0153, 0.0009, 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_79252:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79252:Expr_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79252:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79252:Assign_L41_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python # # Copyright (C) 2010-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...
ajibawa-2023/Python-Code-Large/train/row_79253
92
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_79253:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 24], "level": 0, "parent": null, "vector": [8, 0, 0.0886, 0.0295, 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_79253:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79253:Expr_L44_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79253:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79253:Assign_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python # # Copyright (C) 2010-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...
ajibawa-2023/Python-Code-Large/train/row_79254
1
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_79254:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 21], "level": 0, "parent": null, "vector": [8, 0, 0.9286, 0.1905, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[]
#!/usr/bin/env python # # Copyright (C) 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 ...
ajibawa-2023/Python-Code-Large/train/row_79255
137
269
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79255:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0669, 0.0037, 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_79255:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79255:Expr_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79255:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79255:FunctionDef_L46_C2"}, {"f": "ajibawa-2023/Python-Code-...
"""Class returned by TLSConnection.makefile().""" class FileObject: """This class provides a file object interface to a L{tlslite.TLSConnection.TLSConnection}. Call makefile() on a TLSConnection to create a FileObject instance. This class was copied, with minor modifications, from the _fileobject...
ajibawa-2023/Python-Code-Large/train/row_79259
153
220
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79259:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0045, 0.0045, 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_79259:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79259:Expr_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79259:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79259:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
"""Miscellaneous helper functions.""" from utils.compat import * from utils.cryptomath import * import hmac import md5 import sha #1024, 1536, 2048, 3072, 4096, 6144, and 8192 bit groups] goodGroupParameters = [(2,0xEEAF0AB9ADB38DD69C33F80AFA8FC5E86072618775FF3C0B9EA2314C9C256576D674DF7496EA81D3383B4813D692C6E0E0D5D...
ajibawa-2023/Python-Code-Large/train/row_79260
104
170
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79260:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0059, 0.0059, 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_79260:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79260:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79260:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79260:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Co...
""" A helper class for using TLS Lite with stdlib clients (httplib, xmlrpclib, imaplib, poplib). """ from gdata.tlslite.Checker import Checker class ClientHelper: """This is a helper class used to integrate TLS Lite with various TLS clients (e.g. poplib, smtplib, httplib, etc.)""" def __init__...
ajibawa-2023/Python-Code-Large/train/row_79261
33
163
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79261:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0153, 0.0245, 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_79261:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79261:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79261:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79261:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""TLS Lite + imaplib.""" import socket from imaplib import IMAP4 from gdata.tlslite.TLSConnection import TLSConnection from gdata.tlslite.integration.ClientHelper import ClientHelper # IMAP TLS PORT IMAP4_TLS_PORT = 993 class IMAP4_TLS(IMAP4, ClientHelper): """This class extends L{imaplib.IMAP4} with TLS suppor...
ajibawa-2023/Python-Code-Large/train/row_79262
22
132
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79262:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0076, 0.0076, 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_79262:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79262:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79262:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79262:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-...
"""TLS Lite + SocketServer.""" from gdata.tlslite.TLSConnection import TLSConnection class TLSSocketServerMixIn: """ This class can be mixed in with any L{SocketServer.TCPServer} to add TLS support. To use this class, define a new class that inherits from it and some L{SocketServer.TCPServer} (wi...
ajibawa-2023/Python-Code-Large/train/row_79265
10
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_79265:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0169, 0.0169, 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_79265:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79265:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79265:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79265:FunctionDef_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""TLS Lite + httplib.""" import socket import httplib from gdata.tlslite.TLSConnection import TLSConnection from gdata.tlslite.integration.ClientHelper import ClientHelper class HTTPBaseTLSConnection(httplib.HTTPConnection): """This abstract class provides a framework for adding TLS support to httplib.""" ...
ajibawa-2023/Python-Code-Large/train/row_79266
30
169
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79266:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0059, 0.0059, 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_79266:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79266:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79266:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79266:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
"""TLS Lite + smtplib.""" from smtplib import SMTP from gdata.tlslite.TLSConnection import TLSConnection from gdata.tlslite.integration.ClientHelper import ClientHelper class SMTP_TLS(SMTP): """This class extends L{smtplib.SMTP} with TLS support.""" def starttls(self, username=None, password...
ajibawa-2023/Python-Code-Large/train/row_79267
17
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_79267:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0088, 0.0088, 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_79267:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79267:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79267:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79267:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""TLS Lite + asyncore.""" import asyncore from gdata.tlslite.TLSConnection import TLSConnection from AsyncStateMachine import AsyncStateMachine class TLSAsyncDispatcherMixIn(AsyncStateMachine): """This class can be "mixed in" with an L{asyncore.dispatcher} to add TLS support. This class es...
ajibawa-2023/Python-Code-Large/train/row_79268
48
139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79268:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0072, 0.0072, 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_79268:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79268:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79268:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79268:FunctionDef_L76_C4"}, {"f": "ajibawa-2023/Python-Code-La...
class IntegrationHelper: def __init__(self, username=None, password=None, sharedKey=None, certChain=None, privateKey=None, cryptoID=None, protocol=None, x509Fingerprint=None, x509TrustList=None, x509CommonName=None, setti...
ajibawa-2023/Python-Code-Large/train/row_79269
21
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_79269:ClassDef_L2_C0", "label": "IntegrationHelper", "type": "class", "loc": [2, 52], "level": 0, "parent": null, "vector": [3, 0, 0.5192, 0.9808, 0, 0.66, 0.0, 128, 0, 1, 0, 0, 0, 0, 3], "semantic": {"name": "IntegrationHelper", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79269:ClassDef_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79269:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79269:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79269:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-Cod...
"""Classes for integrating TLS Lite with other packages.""" __all__ = ["AsyncStateMachine", "HTTPTLSConnection", "POP3_TLS", "IMAP4_TLS", "SMTP_TLS", "XMLRPCTransport", "TLSSocketServerMixIn", "TLSAsyncDispatcherMixIn", "TLSTwisted...
ajibawa-2023/Python-Code-Large/train/row_79270
4
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_79270:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0588, 0.0588, 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_79270:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79270:Import_L14_C4"}]
"""TLS Lite + xmlrpclib.""" import xmlrpclib import httplib from gdata.tlslite.integration.HTTPTLSConnection import HTTPTLSConnection from gdata.tlslite.integration.ClientHelper import ClientHelper class XMLRPCTransport(xmlrpclib.Transport, ClientHelper): """Handles an HTTPS transaction to an XML-RPC server.""" ...
ajibawa-2023/Python-Code-Large/train/row_79271
16
137
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79271:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0073, 0.0073, 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_79271:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79271:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79271:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79271:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-La...
""" A state machine for using TLS Lite with asynchronous I/O. """ class AsyncStateMachine: """ This is an abstract class that's used to integrate TLS Lite with asyncore and Twisted. This class signals wantsReadsEvent() and wantsWriteEvent(). When the underlying socket has become readabl...
ajibawa-2023/Python-Code-Large/train/row_79272
118
235
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79272:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0085, 0.0128, 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_79272:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79272:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79272:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79272:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""Class for post-handshake certificate checking.""" from utils.cryptomath import hashAndBase64 from X509 import X509 from X509CertChain import X509CertChain from errors import * class Checker: """This class is passed to a handshake function to check the other party's certificate chain. If a handshake f...
ajibawa-2023/Python-Code-Large/train/row_79273
46
146
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79273:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0068, 0.0068, 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_79273:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79273:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79273:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79273:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-La...
"""Class for storing SRP password verifiers.""" from utils.cryptomath import * from utils.compat import * import mathtls from BaseDB import BaseDB class VerifierDB(BaseDB): """This class represent an in-memory or on-disk database of SRP password verifiers. A VerifierDB can be passed to a server handshake...
ajibawa-2023/Python-Code-Large/train/row_79274
38
90
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79274:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0111, 0.0111, 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_79274:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79274:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79274:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79274:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""OpenSSL/M2Crypto 3DES implementation.""" from cryptomath import * from TripleDES import * if m2cryptoLoaded: def new(key, mode, IV): return OpenSSL_TripleDES(key, mode, IV) class OpenSSL_TripleDES(TripleDES): def __init__(self, key, mode, IV): TripleDES.__init__(self, key, mo...
ajibawa-2023/Python-Code-Large/train/row_79275
31
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79275:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0227, 0.0227, 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_79275:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79275:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79275:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79275:Return_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
"""PyCrypto RC4 implementation.""" from cryptomath import * from RC4 import * if pycryptoLoaded: import Crypto.Cipher.ARC4 def new(key): return PyCrypto_RC4(key) class PyCrypto_RC4(RC4): def __init__(self, key): RC4.__init__(self, key, "pycrypto") self.context = ...
ajibawa-2023/Python-Code-Large/train/row_79276
15
22
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79276:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0455, 0.0455, 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_79276:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79276:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79276:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79276:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
"""OpenSSL/M2Crypto RSA implementation.""" from cryptomath import * from RSAKey import * from Python_RSAKey import Python_RSAKey #copied from M2Crypto.util.py, so when we load the local copy of m2 #we can still use it def password_callback(v, prompt1='Enter private key passphrase:', prompt...
ajibawa-2023/Python-Code-Large/train/row_79277
104
148
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79277:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0068, 0.0068, 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_79277:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79277:ImportFrom_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79277:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79277:While_L13_C4"}, {"f": "ajibawa-2023/Python...
"""Factory functions for asymmetric cryptography. @sort: generateRSAKey, parseXMLKey, parsePEMKey, parseAsPublicKey, parseAsPrivateKey """ from compat import * from RSAKey import RSAKey from Python_RSAKey import Python_RSAKey import cryptomath if cryptomath.m2cryptoLoaded: from OpenSSL_RSAKey import OpenSSL_RSAK...
ajibawa-2023/Python-Code-Large/train/row_79279
73
243
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79279:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0103, 0.0165, 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_79279:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79279:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79279:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79279:ImportFrom_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import os #Functions for manipulating datetime objects #CCYY-MM-DDThh:mm:ssZ def parseDateClass(s): year, month, day = s.split("-") day, tail = day[:2], day[2:] hour, minute, second = tail[1:].split(":") second = second[:2] year, month, day = int(year), int(month), int(day) hour, minute, secon...
ajibawa-2023/Python-Code-Large/train/row_79280
48
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79280:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0267, 0.0133, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79280:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79280:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79280:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79280:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-L...
"""Miscellaneous functions to mask Python version differences.""" import sys import os if sys.version_info < (2,2): raise AssertionError("Python 2.2 or later required") if sys.version_info < (2,3): def enumerate(collection): return zip(range(len(collection)), collection) class Set: def ...
ajibawa-2023/Python-Code-Large/train/row_79281
97
139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79281:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0072, 0.0072, 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_79281:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79281:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79281:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79281:Return_L12_C8"}, {"f": "ajibawa-2023/Python-Code-La...
"""Pure-Python RC4 implementation.""" from RC4 import RC4 from cryptomath import * def new(key): return Python_RC4(key) class Python_RC4(RC4): def __init__(self, key): RC4.__init__(self, key, "python") keyBytes = stringToBytes(key) S = [i for i in range(256)] j = 0 for...
ajibawa-2023/Python-Code-Large/train/row_79282
32
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_79282:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0256, 0.0256, 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_79282:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79282:Return_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79282:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79282:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Cod...
"""OpenSSL/M2Crypto RC4 implementation.""" from cryptomath import * from RC4 import RC4 if m2cryptoLoaded: def new(key): return OpenSSL_RC4(key) class OpenSSL_RC4(RC4): def __init__(self, key): RC4.__init__(self, key, "openssl") self.rc4 = m2.rc4_new() m2...
ajibawa-2023/Python-Code-Large/train/row_79283
17
25
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79283:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.04, 0.04, 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_79283:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79283:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79283:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79283:Return_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
"""Class for parsing ASN.1""" from compat import * from codec import * #Takes a byte array which has a DER TLV field at its head class ASN1Parser: def __init__(self, bytes): p = Parser(bytes) p.get(1) #skip Type #Get Length self.length = self._getASN1Length(p) #Get Value ...
ajibawa-2023/Python-Code-Large/train/row_79284
23
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79284:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0294, 0.0294, 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_79284:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79284:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79284:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79284:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
"""HMAC (Keyed-Hashing for Message Authentication) Python module. Implements the HMAC algorithm as described by RFC 2104. (This file is modified from the standard library version to do faster copying) """ def _strxor(s1, s2): """Utility method. XOR the two strings s1 and s2 (must have same length). """ r...
ajibawa-2023/Python-Code-Large/train/row_79285
50
104
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79285:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0385, 0.0673, 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_79285:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79285:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79285:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79285:Return_L12_C4"}, {"f": "ajibawa-2023/Python-Code-L...
"""OpenSSL/M2Crypto AES implementation.""" from cryptomath import * from AES import * if m2cryptoLoaded: def new(key, mode, IV): return OpenSSL_AES(key, mode, IV) class OpenSSL_AES(AES): def __init__(self, key, mode, IV): AES.__init__(self, key, mode, IV, "openssl") ...
ajibawa-2023/Python-Code-Large/train/row_79286
36
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79286:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0204, 0.0204, 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_79286:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79286:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79286:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79286:Return_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
"""Abstract class for AES.""" class AES: def __init__(self, key, mode, IV, implementation): if len(key) not in (16, 24, 32): raise AssertionError() if mode != 2: raise AssertionError() if len(IV) != 16: raise AssertionError() self.isBlockCipher = ...
ajibawa-2023/Python-Code-Large/train/row_79288
17
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_79288:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0323, 0.0323, 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_79288:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79288:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79288:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79288:If_L5_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" A pure python (slow) implementation of rijndael with a decent interface To include - from rijndael import rijndael To do a key setup - r = rijndael(key, block_size = 16) key must be a string of length 16, 24, or 32 blocksize must be 16, 24, or 32. Default is 16 To use - ciphertext = r.encrypt(plaintext) plai...
ajibawa-2023/Python-Code-Large/train/row_79289
220
392
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79289:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 21], "level": 0, "parent": null, "vector": [8, 0, 0.0281, 0.0536, 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_79289:If_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79289:Import_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79289:If_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79289:If_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_792...
"""Cryptlib 3DES implementation.""" from cryptomath import * from TripleDES import * if cryptlibpyLoaded: def new(key, mode, IV): return Cryptlib_TripleDES(key, mode, IV) class Cryptlib_TripleDES(TripleDES): def __init__(self, key, mode, IV): TripleDES.__init__(self, key, mode,...
ajibawa-2023/Python-Code-Large/train/row_79290
26
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79290:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0286, 0.0286, 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_79290:If_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79290:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79290:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79290:Return_L10_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
"""Abstract class for RC4.""" from compat import * #For False class RC4: def __init__(self, keyBytes, implementation): if len(keyBytes) < 16 or len(keyBytes) > 256: raise ValueError() self.isBlockCipher = False self.name = "rc4" self.implementation = implementation ...
ajibawa-2023/Python-Code-Large/train/row_79291
10
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_79291:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0588, 0.0588, 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_79291:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79291:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79291:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79291:If_L7_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""PyCrypto RSA implementation.""" from cryptomath import * from RSAKey import * from Python_RSAKey import Python_RSAKey if pycryptoLoaded: from Crypto.PublicKey import RSA class PyCrypto_RSAKey(RSAKey): def __init__(self, n=0, e=0, d=0, p=0, q=0, dP=0, dQ=0, qInv=0): if not d: ...
ajibawa-2023/Python-Code-Large/train/row_79292
42
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_79292:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0164, 0.0164, 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_79292:If_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79292:ImportFrom_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79292:If_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79292:ClassDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
"""PyCrypto AES implementation.""" from cryptomath import * from AES import * if pycryptoLoaded: import Crypto.Cipher.AES def new(key, mode, IV): return PyCrypto_AES(key, mode, IV) class PyCrypto_AES(AES): def __init__(self, key, mode, IV): AES.__init__(self, key, mode, IV, ...
ajibawa-2023/Python-Code-Large/train/row_79293
15
22
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79293:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0455, 0.0455, 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_79293:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79293:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79293:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79293:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
"""Abstract class for 3DES.""" from compat import * #For True class TripleDES: def __init__(self, key, mode, IV, implementation): if len(key) != 24: raise ValueError() if mode != 2: raise ValueError() if len(IV) != 8: raise ValueError() self.isBl...
ajibawa-2023/Python-Code-Large/train/row_79294
13
26
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79294:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0385, 0.0385, 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_79294:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79294:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79294:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79294:If_L7_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""Cryptlib RC4 implementation.""" from cryptomath import * from RC4 import RC4 if cryptlibpyLoaded: def new(key): return Cryptlib_RC4(key) class Cryptlib_RC4(RC4): def __init__(self, key): RC4.__init__(self, key, "cryptlib") self.context = cryptlib_py.cryptCreateCon...
ajibawa-2023/Python-Code-Large/train/row_79295
20
28
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79295:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0357, 0.0357, 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_79295:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79295:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79295:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79295:Return_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
"""Abstract class for RSA.""" from cryptomath import * class RSAKey: """This is an abstract base class for RSA keys. Particular implementations of RSA keys, such as L{OpenSSL_RSAKey.OpenSSL_RSAKey}, L{Python_RSAKey.Python_RSAKey}, and L{PyCrypto_RSAKey.PyCrypto_RSAKey}, inherit from this. ...
ajibawa-2023/Python-Code-Large/train/row_79296
102
264
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79296:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0038, 0.0038, 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_79296:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79296:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79296:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79296:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""Pure-Python AES implementation.""" from cryptomath import * from AES import * from rijndael import rijndael def new(key, mode, IV): return Python_AES(key, mode, IV) class Python_AES(AES): def __init__(self, key, mode, IV): AES.__init__(self, key, mode, IV, "python") self.rijndael = rijnda...
ajibawa-2023/Python-Code-Large/train/row_79298
38
68
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79298:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0147, 0.0147, 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_79298:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79298:Return_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79298:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79298:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Co...
"""Toolkit for crypto and other stuff.""" __all__ = ["AES", "ASN1Parser", "cipherfactory", "codec", "Cryptlib_AES", "Cryptlib_RC4", "Cryptlib_TripleDES", "cryptomath: cryptomath module", "dateFuncs", "hmac", "...
ajibawa-2023/Python-Code-Large/train/row_79299
2
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79299:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0323, 0.0323, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
"""Pure-Python RSA implementation.""" from cryptomath import * import xmltools from ASN1Parser import ASN1Parser from RSAKey import * class Python_RSAKey(RSAKey): def __init__(self, n=0, e=0, d=0, p=0, q=0, dP=0, dQ=0, qInv=0): if (n and not e) or (e and not n): raise AssertionError() ...
ajibawa-2023/Python-Code-Large/train/row_79300
138
208
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79300:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0048, 0.0048, 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_79300:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79300:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79300:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79300:If_L10_C8"}, {"f": "ajibawa-2023/Python-Code-La...
"""Cryptlib AES implementation.""" from cryptomath import * from AES import * if cryptlibpyLoaded: def new(key, mode, IV): return Cryptlib_AES(key, mode, IV) class Cryptlib_AES(AES): def __init__(self, key, mode, IV): AES.__init__(self, key, mode, IV, "cryptlib") sel...
ajibawa-2023/Python-Code-Large/train/row_79301
26
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79301:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0294, 0.0294, 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_79301:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79301:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79301:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79301:Return_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
"""Factory functions for symmetric cryptography.""" import os import Python_AES import Python_RC4 import cryptomath tripleDESPresent = False if cryptomath.m2cryptoLoaded: import OpenSSL_AES import OpenSSL_RC4 import OpenSSL_TripleDES tripleDESPresent = True if cryptomath.cryptlibpyLoaded: impo...
ajibawa-2023/Python-Code-Large/train/row_79302
59
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_79302:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.009, 0.009, 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_79302:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79302:Import_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79302:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79302:Import_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
"""PyCrypto 3DES implementation.""" from cryptomath import * from TripleDES import * if pycryptoLoaded: import Crypto.Cipher.DES3 def new(key, mode, IV): return PyCrypto_TripleDES(key, mode, IV) class PyCrypto_TripleDES(TripleDES): def __init__(self, key, mode, IV): TripleDE...
ajibawa-2023/Python-Code-Large/train/row_79303
15
22
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79303:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0455, 0.0455, 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_79303:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79303:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79303:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79303:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
"""Classes for reading/writing binary data (such as TLS records).""" from compat import * class Writer: def __init__(self, length=0): #If length is zero, then this is just a "trial run" to determine length self.index = 0 self.bytes = createByteArrayZeros(length) def add(self, x, lengt...
ajibawa-2023/Python-Code-Large/train/row_79304
61
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79304:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0106, 0.0106, 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_79304:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79304:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79304:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79304:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
"""Constants used in various places.""" class CertificateType: x509 = 0 openpgp = 1 cryptoID = 2 class HandshakeType: hello_request = 0 client_hello = 1 server_hello = 2 certificate = 11 server_key_exchange = 12 certificate_request = 13 server_hello_done = 14 certificate_ve...
ajibawa-2023/Python-Code-Large/train/row_79306
148
225
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79306:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0044, 0.0044, 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_79306:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79306:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79306:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79306:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
"""Class for storing shared keys.""" from utils.cryptomath import * from utils.compat import * from mathtls import * from Session import Session from BaseDB import BaseDB class SharedKeyDB(BaseDB): """This class represent an in-memory or on-disk database of shared keys. A SharedKeyDB can be passed to a s...
ajibawa-2023/Python-Code-Large/train/row_79307
25
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79307:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0172, 0.0172, 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_79307:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79307:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79307:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79307:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-La...
"""Class for setting handshake parameters.""" from constants import CertificateType from utils import cryptomath from utils import cipherfactory class HandshakeSettings: """This class encapsulates various parameters that can be used with a TLS handshake. @sort: minKeySize, maxKeySize, cipherNames, certifi...
ajibawa-2023/Python-Code-Large/train/row_79308
59
159
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79308:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0063, 0.0063, 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_79308:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79308:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79308:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79308:FunctionDef_L75_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""Class for caching TLS sessions.""" import thread import time class SessionCache: """This class is used by the server to cache TLS sessions. Caching sessions allows the client to use TLS session resumption and avoid the expense of a full handshake. To use this class, simply pass a SessionCache ins...
ajibawa-2023/Python-Code-Large/train/row_79309
42
103
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79309:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0097, 0.0097, 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_79309:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79309:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79309:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79309:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""Class representing a TLS session.""" from utils.compat import * from mathtls import * from constants import * class Session: """ This class represents a TLS session. TLS distinguishes between connections and sessions. A new handshake creates both a connection and a session. Data is transmitt...
ajibawa-2023/Python-Code-Large/train/row_79310
65
131
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79310:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0076, 0.0076, 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_79310:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79310:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79310:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79310:FunctionDef_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""Base class for SharedKeyDB and VerifierDB.""" import anydbm import thread class BaseDB: def __init__(self, filename, type): self.type = type self.filename = filename if self.filename: self.db = None else: self.db = {} self.lock = thre...
ajibawa-2023/Python-Code-Large/train/row_79311
66
120
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79311:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0083, 0.0083, 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_79311:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79311:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79311:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_79311:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
"""Exception classes. @sort: TLSError, TLSAbruptCloseError, TLSAlert, TLSLocalAlert, TLSRemoteAlert, TLSAuthenticationError, TLSNoAuthenticationError, TLSAuthenticationTypeError, TLSFingerprintError, TLSAuthorizationError, TLSValidationError, TLSFaultError """ from constants import AlertDescription, AlertLevel class ...
ajibawa-2023/Python-Code-Large/train/row_79312
46
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_79312:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0201, 0.0336, 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_79312:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79312:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79312:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79312:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
""" TLS Lite is a free python library that implements SSL v3, TLS v1, and TLS v1.1. TLS Lite supports non-traditional authentication methods such as SRP, shared keys, and cryptoIDs, in addition to X.509 certificates. TLS Lite is pure python, however it can access OpenSSL, cryptlib, pycrypto, and GMPY for faster crypt...
ajibawa-2023/Python-Code-Large/train/row_79313
3
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_79313:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 18], "level": 0, "parent": null, "vector": [8, 0, 0.2436, 0.4615, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[]
"""Import this module for easy access to TLS Lite objects. The TLS Lite API consists of classes, functions, and variables spread throughout this package. Instead of importing them individually with:: from tlslite.TLSConnection import TLSConnection from tlslite.HandshakeSettings import HandshakeSettings f...
ajibawa-2023/Python-Code-Large/train/row_79315
24
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79315:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 44], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.5867, 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_79315:Try_L65_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79315:Import_L66_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79315:Try_L65_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79315:ImportFrom_L68_C4"}]
#!/usr/bin/python # # Copyright 2009 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_79327
93
184
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79327:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1141, 0.0489, 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_79327:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79327:Expr_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79327:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79327:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright 2009 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_79328
110
189
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79328:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1111, 0.0476, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79328:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79328:Expr_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79328:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79328:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 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 writ...
ajibawa-2023/Python-Code-Large/train/row_79332
68
137
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79332:Assign_L16_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [16, 16], "level": 0, "parent": null, "vector": [14, 0, 0.1168, 0.0073, 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_79332:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79332:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79332:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79332:Assign_L45_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright (C) 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 ...
ajibawa-2023/Python-Code-Large/train/row_79343
29
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79343:Assign_L21_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [21, 21], "level": 0, "parent": null, "vector": [14, 0, 0.3043, 0.0145, 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_79343:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79343:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79343:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79343:Assign_L34_C2"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- """ Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this ...
ajibawa-2023/Python-Code-Large/train/row_79345
504
1,000
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79345:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 27], "level": 0, "parent": null, "vector": [8, 0, 0.0145, 0.026, 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_79345:ClassDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79345:Expr_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79345:ClassDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79345:Assign_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_79347
46
121
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79347:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1116, 0.2149, 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_79347:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79347:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79347:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79347:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_79348
27
76
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79348:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1776, 0.3421, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79348:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79348:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79348:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79348:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_79349
43
119
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79349:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1134, 0.2185, 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_79349:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79349:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79349:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79349:FunctionDef_L63_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_79350
9
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_79350:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.2935, 0.5652, 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_79350:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79350:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79350:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79350:FunctionDef_L38_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: utf-8 -*- """ Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this ...
ajibawa-2023/Python-Code-Large/train/row_79351
138
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_79351:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 27], "level": 0, "parent": null, "vector": [8, 0, 0.0523, 0.0939, 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_79351:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79351:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79351:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79351:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python # # Copyright (C) 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 ...
ajibawa-2023/Python-Code-Large/train/row_79353
31
72
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79353:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.25, 0.0139, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79353:For_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79353:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79353:For_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79353:Expr_L50_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_7...
#!/usr/bin/python # # Copyright 2009 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_79355
12
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_79355:Import_L17_C0", "label": "getpass import getpass", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.3036, 0.0179, 0, 0.66, 0.0, 784, 0, 1, 0, 0, 784, 0, 0], "semantic": {"name": "getpass", "arg_names": [], "import_names": ["getpass...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79355:For_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79355:Assign_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79355:For_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79355:Expr_L53_C2"}]
#!/usr/bin/python # # Copyright 2009 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_79356
10
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_79356:Import_L17_C0", "label": "getpass import getpass", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.4359, 0.0256, 0, 0.66, 0.0, 784, 0, 1, 0, 0, 784, 0, 0], "semantic": {"name": "getpass", "arg_names": [], "import_names": ["getpass...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79356:For_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79356:Expr_L39_C2"}]
#!/usr/bin/python # # Copyright 2009 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_79357
9
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_79357:Import_L17_C0", "label": "getpass import getpass", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.34, 0.02, 0, 0.66, 0.0, 784, 0, 1, 0, 0, 784, 0, 0], "semantic": {"name": "getpass", "arg_names": [], "import_names": ["getpass"], ...
[]
#!/usr/bin/python # # Copyright 2009 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_79358
14
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_79358:Import_L17_C0", "label": "getpass import getpass", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.4146, 0.0244, 0, 0.66, 0.0, 784, 0, 1, 0, 0, 784, 0, 0], "semantic": {"name": "getpass", "arg_names": [], "import_names": ["getpass...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79358:For_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79358:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79358:For_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79358:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
#!/usr/bin/python # # Copyright 2009 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
ajibawa-2023/Python-Code-Large/train/row_79359
9
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_79359:Import_L17_C0", "label": "getpass import getpass", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.4595, 0.027, 0, 0.66, 0.0, 784, 0, 1, 0, 0, 784, 0, 0], "semantic": {"name": "getpass", "arg_names": [], "import_names": ["getpass"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_79359:For_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79359:Expr_L37_C2"}]
#==================================================================== # 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_79360
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_79360: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_79360:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79360:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79360:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79360:For_L37_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_79361
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_79361: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_79361:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79361:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79361:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79361: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_79362
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_79362: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_79362:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79362:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79362:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79362: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_79364
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_79364: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_79364:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79364:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79364:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79364: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_79365
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_79365: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_79365:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79365:Import_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79365:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79365: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_79366
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_79366: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_79366:Try_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79366:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79366:Try_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79366: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_79367
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_79367: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_79367:Try_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79367:Import_L41_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79367:Try_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79367: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_79369
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_79369: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_79369:Try_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79369:ImportFrom_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79369:Try_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79369: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_79370
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_79370: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_79370:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79370:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79370:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79370: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_79371
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_79371: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_79371:Try_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79371:Import_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79371:Try_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79371: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_79372
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_79372: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_79372:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79372:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79372:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79372: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_79373
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_79373: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_79373:ClassDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79373:Expr_L52_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79373:ClassDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79373: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_79374
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_79374: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_79374:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79374:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79374:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79374: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_79375
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_79375: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_79375:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79375:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79375:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79375: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_79376
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_79376: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_79376:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79376:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79376:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79376: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_79377
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_79377: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_79377:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79377:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79377:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79377: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_79379
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_79379: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_79379:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79379:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79379:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79379: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_79381
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_79381: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_79381:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79381:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79381:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79381: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_79382
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_79382: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_79382:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79382:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79382:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79382: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_79383
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_79383: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_79383:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79383:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79383:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79383: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_79384
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_79384: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_79384:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79384:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79384:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79384: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_79385
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_79385: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_79385:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79385:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79385:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79385: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_79387
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_79387: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_79387:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79387:Expr_L97_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79387:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79387: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_79388
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_79388: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_79388:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79388:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79388:FunctionDef_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79388:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code...