code stringlengths 1 1.49M | file_id stringlengths 42 46 | node_count int64 0 7.38k | total_lines int64 1 20.9k | vector_dim int64 15 15 | vector_labels stringclasses 1
value | nodes stringlengths 2 3.75M | connections stringlengths 2 964k |
|---|---|---|---|---|---|---|---|
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | ajibawa-2023/Python-Code-Large/train/row_79919 | 16 | 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_79919:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.0735, 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_79919:Try_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79919:Import_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79919:Try_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79919:Try_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# 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 req... | ajibawa-2023/Python-Code-Large/train/row_79920 | 93 | 246 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79920:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0976, 0.0528, 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_79920:For_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79920:If_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79920:If_L49_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79920:Assign_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79... |
# 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 of... | ajibawa-2023/Python-Code-Large/train/row_79922 | 155 | 408 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79922:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0404, 0.0686, 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_79922:ClassDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79922:Expr_L54_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79922:ClassDef_L58_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79922:Expr_L59_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_79923 | 461 | 1,364 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79923:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0121, 0.0029, 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_79923:Try_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79923:ImportFrom_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79923:Try_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79923:Assign_L44_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
# 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_79924 | 52 | 123 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79924:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1382, 0.0407, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79924:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79924:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79924:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79924:Expr_L37_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_79925 | 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_79925:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1269, 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_79925:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79925:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79925:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79925:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Cod... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright (C) 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | ajibawa-2023/Python-Code-Large/train/row_79927 | 132 | 377 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79927:Import_L18_C0", "label": "base64 import base64", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0477, 0.0027, 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_79927:Try_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79927:ImportFrom_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79927:Try_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79927:ClassDef_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/env python
#
# Copyright 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 o... | ajibawa-2023/Python-Code-Large/train/row_79928 | 50 | 192 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79928:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0938, 0.0052, 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_79928:Try_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79928:ImportFrom_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79928:Try_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79928:ImportFrom_L37_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_79930 | 44 | 153 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79930:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1111, 0.0327, 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_79930:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79930:Expr_L61_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79930:ClassDef_L65_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79930:Expr_L66_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
__version__ = "1.1"
GOOGLE_AUTH_URI = 'https://accounts.google.com/o/oauth2/auth'
GOOGLE_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'
GOOGLE_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token'
| ajibawa-2023/Python-Code-Large/train/row_79932 | 4 | 5 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79932:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.2, 0.2, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call... | [] |
# 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 or agreed to in writ... | ajibawa-2023/Python-Code-Large/train/row_79933 | 34 | 109 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79933:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.1514, 0.0367, 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_79933:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79933:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79933:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79933:FunctionDef_L50_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_79934 | 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_79934: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_79934:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79934:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79934:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79934:Try_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_... |
#!/usr/bin/python2.5
#
# Copyright 2010 the Melange authors.
#
# 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_79935 | 41 | 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_79935:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1504, 0.0088, 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_79935:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79935:Expr_L41_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79935:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79935:Assign_L54_C2"}, {"f": "ajibawa-2023/Python-Code... |
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | ajibawa-2023/Python-Code-Large/train/row_79937 | 7 | 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_79937:Expr_L13_C0", "label": "expression", "type": "expression", "loc": [13, 13], "level": 0, "parent": null, "vector": [8, 0, 0.5909, 0.0455, 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_79937:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79937:Expr_L20_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79937:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79937:Assign_L21_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# 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 ... | ajibawa-2023/Python-Code-Large/train/row_79938 | 36 | 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_79938:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 28], "level": 0, "parent": null, "vector": [8, 0, 0.3108, 0.1486, 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_79938:If_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79938:Expr_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79938:For_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79938:Assign_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_... |
# 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_79939 | 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_79939: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_79939:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79939:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79939:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79939:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code... |
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | ajibawa-2023/Python-Code-Large/train/row_79940 | 120 | 274 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79940:Expr_L13_C0", "label": "expression", "type": "expression", "loc": [13, 16], "level": 0, "parent": null, "vector": [8, 0, 0.0529, 0.0146, 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_79940:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79940:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79940:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79940:Expr_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Larg... |
#!/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_79942 | 154 | 385 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79942:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0519, 0.0182, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79942:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79942:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79942:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79942: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_79944 | 61 | 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_79944:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1387, 0.0365, 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_79944:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79944:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79944:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79944:Expr_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
__version__ = "1.1"
| ajibawa-2023/Python-Code-Large/train/row_79945 | 1 | 1 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79945:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call... | [] |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | ajibawa-2023/Python-Code-Large/train/row_79946 | 119 | 312 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79946:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 58], "level": 0, "parent": null, "vector": [8, 0, 0.117, 0.141, 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_79946:ClassDef_L70_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79946:Expr_L71_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79946:ClassDef_L70_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79946:FunctionDef_L73_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# Early, and incomplete implementation of -04.
#
import re
import urllib
RESERVED = ":/?#[]@!$&'()*+,;="
OPERATOR = "+./;?|!@"
EXPLODE = "*+"
MODIFIER = ":^"
TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE)
VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part... | ajibawa-2023/Python-Code-Large/train/row_79947 | 112 | 147 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79947:Import_L3_C0", "label": "re import re", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0068, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79947:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79947:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79947:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79947:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro... |
# 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_79949 | 16 | 64 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79949:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.2656, 0.0781, 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_79949:Try_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79949:Import_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79949:Try_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79949:Try_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_... |
#!/usr/bin/python
#
# Copyright 2011 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_79955 | 20 | 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_79955:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.3393, 0.0893, 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_79955:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79955:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79955:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79955:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2011 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_79956 | 41 | 93 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79956:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.2151, 0.0753, 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_79956:FunctionDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79956:Expr_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79956:FunctionDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79956:Assign_L54_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2011 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_79957 | 22 | 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_79957:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.3016, 0.0794, 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_79957:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79957:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79957:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79957:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2011 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_79959 | 20 | 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_79959:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.3364, 0.0727, 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_79959:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79959:Expr_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79959:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79959:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2011 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_79960 | 35 | 79 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79960:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2468, 0.0759, 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_79960:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79960:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79960:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79960:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2011 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_79961 | 25 | 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_79961:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2826, 0.087, 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_79961:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79961:Expr_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79961:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79961:Assign_L41_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2011 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_79963 | 25 | 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_79963:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2826, 0.087, 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_79963:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79963:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79963:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79963:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2011 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_79964 | 24 | 67 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79964:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2761, 0.0597, 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_79964:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79964:Expr_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79964:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79964:Assign_L40_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2011 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_79965 | 21 | 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_79965:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.319, 0.069, 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_79965:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79965:Expr_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79965:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79965:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2011 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_79967 | 30 | 80 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79967:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2437, 0.075, 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_79967:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79967:Expr_L52_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79967:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79967:Assign_L53_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2011 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_79968 | 24 | 67 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79968:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.291, 0.0896, 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_79968:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79968:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79968:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79968:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2012 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_79969 | 16 | 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_79969:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.4022, 0.087, 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_79969:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79969:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79969:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79969:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2012 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_79970 | 20 | 51 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79970:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.3627, 0.0784, 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_79970:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79970:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79970:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79970:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2012 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_79971 | 26 | 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_79971:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2681, 0.058, 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_79971:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79971:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79971:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79971:Assign_L48_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2012 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_79972 | 27 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79972:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2372, 0.0513, 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_79972:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79972:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79972:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79972:Assign_L48_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 2012 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_79973 | 24 | 64 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79973:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2891, 0.0625, 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_79973:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79973:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79973:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79973:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | ajibawa-2023/Python-Code-Large/train/row_79981 | 34 | 81 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79981:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 25], "level": 0, "parent": null, "vector": [8, 0, 0.2593, 0.1111, 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_79981:ClassDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79981:FunctionDef_L51_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79981:FunctionDef_L51_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_79981:Assign_L52_C4"}, {"f": "ajibawa-2023/Python-... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Query with ranked results against the shopping search API"""
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
def main():
"""Get and prin... | ajibawa-2023/Python-Code-Large/train/row_79989 | 21 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79989:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1111, 0.0185, 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_79989:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79989:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79989:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79989:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Full text search query against the shopping search API"""
import pprint
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
def main():
"""... | ajibawa-2023/Python-Code-Large/train/row_79991 | 14 | 40 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79991:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.15, 0.025, 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_79991:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79991:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79991:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79991:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Basic query against the public shopping search API"""
import pprint
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
def main():
"""Get ... | ajibawa-2023/Python-Code-Large/train/row_79992 | 14 | 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_79992:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1875, 0.0312, 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_79992:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79992:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79992:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79992:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Query that is restricted by a parameter against the public shopping search
API"""
import pprint
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfI... | ajibawa-2023/Python-Code-Large/train/row_79993 | 14 | 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_79993:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1477, 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_79993:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79993:Expr_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79993:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79993:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Queries with paginated results against the shopping search API"""
import pprint
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
def main(... | ajibawa-2023/Python-Code-Large/train/row_79994 | 21 | 47 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79994:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1277, 0.0213, 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_79994:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79994:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79994:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79994:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Query with grouping against the shopping search API"""
import pprint
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
def main():
"""Get... | ajibawa-2023/Python-Code-Large/train/row_79995 | 14 | 48 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79995:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.125, 0.0208, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_79995:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79995:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79995:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79995:Assign_L37_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Query with ranked results against the shopping search API"""
import pprint
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
def main():
... | ajibawa-2023/Python-Code-Large/train/row_79996 | 14 | 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_79996:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1304, 0.0217, 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_79996:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79996:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79996:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79996:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/env python
#
# Copyright 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | ajibawa-2023/Python-Code-Large/train/row_79998 | 57 | 124 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_79998:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1613, 0.0565, 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_79998:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79998:Assign_L50_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79998:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79998:Assign_L51_C2"}, {"f": "ajibawa-2023/Python-Co... |
#!/usr/bin/python
#
# Copyright 2011 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_79999 | 61 | 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_79999:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1272, 0.0592, 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_79999:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79999:Expr_L64_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_79999:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_79999:Assign_L74_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | ajibawa-2023/Python-Code-Large/train/row_80000 | 36 | 97 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80000:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 34], "level": 0, "parent": null, "vector": [8, 0, 0.2629, 0.1856, 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_80000:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80000:FunctionDef_L62_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80000:FunctionDef_L62_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_80000:Try_L63_C4"}, {"f": "ajibawa-2023/Python-Cod... |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | ajibawa-2023/Python-Code-Large/train/row_80003 | 37 | 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_80003:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1802, 0.0631, 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_80003:ClassDef_L72_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80003:FunctionDef_L75_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80003:FunctionDef_L75_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_80003:Assign_L76_C4"}, {"f": "ajibawa-2023/Python-... |
#!/usr/bin/python
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("""Error: Can't find the file 'settings.py' in the
directory containing %r. It appears you've customized things. You'll
have to run... | ajibawa-2023/Python-Code-Large/train/row_80005 | 8 | 15 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80005:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1333, 0.0667, 0, 0.66, 0.0, 879, 0, 1, 0, 0, 879, 0, 0], "semantic": {"name": "django.core.management"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80005:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80005:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80005:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80005:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8... |
import pickle
import base64
from django.contrib import admin
from django.contrib.auth.models import User
from django.db import models
from oauth2client.django_orm import FlowField
from oauth2client.django_orm import CredentialsField
class CredentialsModel(models.Model):
id = models.ForeignKey(User, primary_key=Tr... | ajibawa-2023/Python-Code-Large/train/row_80006 | 12 | 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_80006:Import_L1_C0", "label": "pickle import pickle", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0476, 0.0476, 0, 0.66, 0.0, 848, 0, 1, 0, 0, 848, 0, 0], "semantic": {"name": "pickle", "arg_names": [], "import_names": ["pickle"], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80006:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80006:Assign_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80006:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80006:Assign_L14_C2"}] |
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
""... | ajibawa-2023/Python-Code-Large/train/row_80007 | 7 | 24 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80007:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1458, 0.25, 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_80007:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80007:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80007:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80007:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Co... |
import os
import logging
import httplib2
from apiclient.discovery import build
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.http import HttpResponse
from django.http import HttpResponseBadRequest
from django.http import HttpResponseRedirect
from dja... | ajibawa-2023/Python-Code-Large/train/row_80008 | 38 | 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_80008:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0164, 0.0164, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80008:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80008:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80008:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80008:Assign_L33_C2"}, {"f": "ajibawa-2023/Python-Co... |
import os
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
(r'^$', 'django_sample.plus.views.index'),
(r'^oauth2callback', 'django_sample.plus.views.auth_return'),
# ... | ajibawa-2023/Python-Code-Large/train/row_80009 | 5 | 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_80009:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.04, 0.04, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "a... | [] |
# Django settings for django_sample project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'mydatabase'
}
}
# Local time zone for t... | ajibawa-2023/Python-Code-Large/train/row_80010 | 19 | 83 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80010:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0241, 0.012, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",... | [] |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# 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 ... | ajibawa-2023/Python-Code-Large/train/row_80011 | 10 | 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_80011:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 21], "level": 0, "parent": null, "vector": [8, 0, 0.4432, 0.0909, 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_80011:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80011:Assign_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80011:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80011:Assign_L37_C2"}, {"f": "ajibawa-2023/Python-Co... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# 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 ... | ajibawa-2023/Python-Code-Large/train/row_80012 | 19 | 65 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80012:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 28], "level": 0, "parent": null, "vector": [8, 0, 0.3538, 0.1692, 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_80012:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80012:Assign_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80012:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80012:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Co... |
# 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 writi... | ajibawa-2023/Python-Code-Large/train/row_80013 | 24 | 57 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80013:Import_L15_C0", "label": "webapp2 import webapp2", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2632, 0.0175, 0, 0.66, 0.0, 123, 0, 1, 0, 0, 123, 0, 0], "semantic": {"name": "webapp2", "arg_names": [], "import_names": ["webapp2... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80013:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80013:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80013:FunctionDef_L31_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_80013:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-... |
# Set up the system so that this development
# version of google-api-python-client is run, even if
# an older version is installed on the system.
#
# To make this totally automatic add the following to
# your ~/.bash_profile:
#
# export PYTHONPATH=/path/to/where/you/checked/out/apiclient
import sys
import os
sys.path.... | ajibawa-2023/Python-Code-Large/train/row_80014 | 3 | 12 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80014:Import_L9_C0", "label": "sys import sys", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.75, 0.0833, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": ... | [] |
#!/usr/bin/env python
import codecs
import re
import jinja2
import markdown
def process_slides():
with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile:
md = codecs.open('slides.md', encoding='utf8').read()
md_slides = md.split('\n---\n')
print 'Compiled %s slides.' % len(m... | ajibawa-2023/Python-Code-Large/train/row_80015 | 41 | 57 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80015:Import_L3_C0", "label": "codecs import codecs", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0175, 0, 0.66, 0.0, 220, 0, 1, 0, 0, 220, 0, 0], "semantic": {"name": "codecs", "arg_names": [], "import_names": ["codecs"], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80015:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80015:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80015:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80015:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
"""
Module implementing Queue.
"""
from PyQt4.QtGui import QWidget
from PyQt4.QtCore import pyqtSignature
from Ui_queue import Ui_Form
class Queue(QWidget, Ui_Form):
"""
Class documentation goes here.
"""
def __init__(self, parent = None):
"""
Constructor
... | ajibawa-2023/Python-Code-Large/train/row_80016 | 11 | 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_80016:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.1818, 0.1364, 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_80016:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80016:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80016:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80016:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/godlike/eric/aranduka/queue.ui'
#
# Created: Wed Sep 1 00:32:14 2010
# by: PyQt4 UI code generator 4.7.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_Form(object):
def se... | ajibawa-2023/Python-Code-Large/train/row_80017 | 55 | 70 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80017:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore, QtGui", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0143, 0, 0.66, 0.0, 154, 0, 2, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80017:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80017:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80017:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80017:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Co... |
# -*- coding: utf-8 -*-
"""
Module implementing MainView.
"""
from PyQt4.QtGui import *
from PyQt4.QtCore import pyqtSignature
from Ui_main import Ui_Form
class MainView(QWidget, Ui_Form):
"""
Class documentation goes here.
"""
def __init__(self, parent = None):
"""
Constructor
... | ajibawa-2023/Python-Code-Large/train/row_80018 | 19 | 30 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80018:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.1333, 0.1, 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_80018:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80018:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80018:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80018:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/godlike/eric/aranduka/aranduka.ui'
#
# Created: Wed Sep 1 00:32:14 2010
# by: PyQt4 UI code generator 4.7.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_MainWindow(object):
... | ajibawa-2023/Python-Code-Large/train/row_80019 | 59 | 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_80019:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore, QtGui", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.1351, 0.0135, 0, 0.66, 0.0, 154, 0, 2, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80019:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80019:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80019:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80019:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Co... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/godlike/eric/aranduka/main.ui'
#
# Created: Wed Sep 1 00:32:15 2010
# by: PyQt4 UI code generator 4.7.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_Form(object):
def set... | ajibawa-2023/Python-Code-Large/train/row_80020 | 124 | 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_80020:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore, QtGui", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.0719, 0.0072, 0, 0.66, 0.0, 154, 0, 2, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80020:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80020:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80020:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80020:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Co... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Module implementing MainWindow.
"""
import sys
from PyQt4.QtGui import QMainWindow, QApplication
from PyQt4.QtCore import pyqtSignature
from Ui_aranduka import Ui_MainWindow
from main import MainView
from queue import Queue
class MainWindow(QMainWindow, Ui_MainWindow):
... | ajibawa-2023/Python-Code-Large/train/row_80021 | 29 | 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_80021:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0962, 0.0577, 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_80021:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80021:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80021:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80021:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-... |
import collections
import gdata.books.service
BookMetadata = collections.namedtuple('BookMetadata', 'title thumbnail date subjects authors description')
SERVICES = {'google_books':'Google Books', 'service_x':'Service X'}
google_books = gdata.books.service.BookService()
def get_metadata(query, service='google_books'... | ajibawa-2023/Python-Code-Large/train/row_80022 | 15 | 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_80022:Import_L1_C0", "label": "collections import collections", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0357, 0.0357, 0, 0.66, 0.0, 193, 0, 1, 0, 0, 193, 0, 0], "semantic": {"name": "collections", "arg_names": [], "import_names": ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80022:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80022:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80022:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80022:If_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
# -*- coding: utf-8 -*-
import string
def validate_ISBN10(isbn):
"""
Validate ISBN10 code. Returns the ISBN or False if is not valid.
"""
isbn = isbn.replace("-", "").replace(" ", "")
if len(isbn) == 10 and not [x for x in isbn if x not in (
string.digits + "X")]:
total = 0
... | ajibawa-2023/Python-Code-Large/train/row_80023 | 29 | 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_80023:Import_L3_C0", "label": "string import string", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.06, 0.02, 0, 0.66, 0.0, 890, 0, 1, 0, 0, 890, 0, 0], "semantic": {"name": "string", "arg_names": [], "import_names": ["string"], "rhs_ca... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80023:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80023:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80023:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80023:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, urllib2
from gdata.books.service import BookService
from PyQt4 import QtCore, QtGui, uic
from utils import validate_ISBN
servicio = BookService()
app = QtGui.QApplication(sys.argv)
form_class, base_class = uic.loadUiType('interface.ui')
class GBooks(QtG... | ajibawa-2023/Python-Code-Large/train/row_80024 | 52 | 98 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80024:Import_L4_C0", "label": "sys import sys, urllib2", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0408, 0.0102, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "urllib... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80024:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80024:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80024:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80024:Expr_L21_C8"}, {"f": "ajibawa-2023/Python-Co... |
from gdata.books.service import BookService
servicio = BookService()
busqueda = raw_input('Ingresa el ISBN que quieres buscar:')
resultado = servicio.search('ISBN' + busqueda)
if resultado.entry:
datos = resultado.entry[0].to_dict()
print 'Datos del libro:'
print 'Titulo:', datos['title']
print 'Tapa:... | ajibawa-2023/Python-Code-Large/train/row_80025 | 15 | 19 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80025:ImportFrom_L1_C0", "label": "from gdata.books.service import BookService", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 427, 0, 1, 0, 0, 427, 0, 0], "semantic": {"name": "gdata.books.service", "arg_nam... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80025:If_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80025:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80025:If_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80025:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80025... |
#!/usr/bin/python
# -*- coding: UTF8 -*-
# archivo : certificado_asistencia.py
#
###############################################################################
#
#
# Copyright (c) 2007 Javier Castrillo // riverplatense at gmail dot com
#Este programa es software libre; usted puede redistruirlo y/o modificarlo bajo
#lo... | ajibawa-2023/Python-Code-Large/train/row_80026 | 16 | 48 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80026:ImportFrom_L25_C0", "label": "from reportlab.pdfgen import canvas", "type": "import", "loc": [25, 25], "level": 0, "parent": null, "vector": [1, 0, 0.5208, 0.0208, 0, 0.66, 0.0, 446, 0, 1, 0, 0, 446, 0, 0], "semantic": {"name": "reportlab.pdfgen", "arg_names": [],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80026:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80026:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80026:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80026:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
# -*- coding: UTF8 -*-
# archivo : gpl.py
#
###############################################################################
#
#
# Sancabase - Administrador general para centros de Formación Profesional
# Copyright (c) 2007 Javier Castrillo // riverplatense at gmail dot com
#Este programa es software l... | ajibawa-2023/Python-Code-Large/train/row_80027 | 1 | 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_80027:Assign_L26_C0", "label": "licenseText =", "type": "assigned_variable", "loc": [26, 305], "level": 0, "parent": null, "vector": [14, 0, 0.5426, 0.918, 0, 0.66, 0.0, 823, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "licenseText", "arg_names": [], "import_names": [], ... | [] |
#!/usr/bin/python
# -*- coding: UTF8 -*-
# archivo : gpl.py
#
###############################################################################
#
#
# Sancabase - Administrador general para centros de Formación Profesional
# Copyright (c) 2007 Javier Castrillo // riverplatense at gmail dot com
#Este programa es software l... | ajibawa-2023/Python-Code-Large/train/row_80028 | 1 | 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_80028:Assign_L26_C0", "label": "licenseText =", "type": "assigned_variable", "loc": [26, 305], "level": 0, "parent": null, "vector": [14, 0, 0.5426, 0.918, 0, 0.66, 0.0, 823, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "licenseText", "arg_names": [], "import_names": [], ... | [] |
#!/usr/bin/python
# -*- coding: UTF8 -*-
# archivo : certificado_asistencia.py
#
###############################################################################
#
#
# Copyright (c) 2007 Javier Castrillo // riverplatense at gmail dot com
#Este programa es software libre; usted puede redistruirlo y/o modificarlo bajo
#lo... | ajibawa-2023/Python-Code-Large/train/row_80029 | 16 | 48 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80029:ImportFrom_L25_C0", "label": "from reportlab.pdfgen import canvas", "type": "import", "loc": [25, 25], "level": 0, "parent": null, "vector": [1, 0, 0.5208, 0.0208, 0, 0.66, 0.0, 446, 0, 1, 0, 0, 446, 0, 0], "semantic": {"name": "reportlab.pdfgen", "arg_names": [],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80029:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80029:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80029:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80029:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code... |
# Speaker hole drill pattern
# a simple script that draws a speaker pattern with the wellknown 8-16-20-20-20... holes pattern
# feel free to reuse!
# Japalan @ http://kalshagar.wikispaces.com/
# 2012/08/16
from tkinter import *
import math
def cercle (x,y,rayon, couleur='black', pfill=''):
can1.create_oval... | ajibawa-2023/Python-Code-Large/train/row_80030 | 26 | 53 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80030:ImportFrom_L7_C0", "label": "from tkinter import *", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1321, 0.0189, 0, 0.66, 0.0, 562, 0, 1, 0, 0, 562, 0, 0], "semantic": {"name": "tkinter", "arg_names": [], "import_names": ["*"], "r... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80030:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80030:Expr_L11_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80030:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80030:For_L14_C1"}, {"f": "ajibawa-2023/Python-Code-La... |
import time
import struct
f = open(r'\\.\pipe\TricolorUsbSignalManagerIn', 'r+b', 0)
i = 1
while True:
s = "hello monde\r\n"
f.write(bytes(s, 'UTF-8'))
f.seek(0)
## f.write(struct.pack('I', 70)) # Write str length and str
## f.seek(0) # EDIT: This is ... | ajibawa-2023/Python-Code-Large/train/row_80031 | 10 | 20 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80031:Import_L1_C0", "label": "time import time", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.05, 0.05, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_name"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80031:While_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80031:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80031:While_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80031:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row... |
from datetime import datetime
import time
import BaseHTTPServer
import re
import urllib
import shutil
import ConfigParser
#local custom scripts
import wmbErrorParser
###########################################
## CONSTANTS
###########################################
HOST_NAME = ''
PORT_NUMBER = 8001 #... | ajibawa-2023/Python-Code-Large/train/row_80032 | 148 | 306 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80032:ImportFrom_L1_C0", "label": "from datetime import datetime", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0033, 0.0033, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80032:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80032:FunctionDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80032:FunctionDef_L36_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80032:Assign_L37_C8"}, {"f": "ajibawa-2023/Python-... |
#!/usr/bin/python
# Copyright 2011 Google, Inc. All Rights Reserved.
# simple script to walk source tree looking for third-party licenses
# dumps resulting html page to stdout
import os, re, mimetypes, sys
# read source directories to scan from command line
SOURCE = sys.argv[1:]
# regex to find /* */ style commen... | ajibawa-2023/Python-Code-Large/train/row_80033 | 51 | 98 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80033:Import_L8_C0", "label": "os import os, re, mimetypes\u2026", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.0816, 0.0102, 0, 0.66, 0.0, 688, 0, 4, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os",... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80033:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80033:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80033:FunctionDef_L32_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_80033:Assign_L33_C8"}, {"f": "ajibawa-2023/Python-... |
#====================================================================
# 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_80034 | 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_80034: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_80034:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80034:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80034:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80034: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_80036 | 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_80036: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_80036:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80036:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80036:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80036: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_80037 | 218 | 605 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80037:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0281, 0.0017, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80037:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80037:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80037:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80037: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_80039 | 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_80039: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_80039:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80039:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80039:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80039:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/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_80041 | 86 | 244 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80041:Import_L18_C0", "label": "base64 import base64", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0738, 0.0041, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80041:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80041:Expr_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80041:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80041:FunctionDef_L39_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# Copyright 2011 Google Inc. All Rights Reserved.
"""Multi-credential file store with lock support.
This module implements a JSON credential store where multiple
credentials can be stored in one file. That file supports locking
both in a single process and across processes.
The credential themselves are keyed off o... | ajibawa-2023/Python-Code-Large/train/row_80043 | 155 | 378 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80043:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0437, 0.0741, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80043:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80043:Expr_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80043:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80043:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | ajibawa-2023/Python-Code-Large/train/row_80044 | 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_80044: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_80044:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80044:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80044:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80044:Try_L28_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_80046 | 396 | 1,139 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80046:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0145, 0.0035, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80046:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80046:ImportFrom_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80046:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80046:ImportFrom_L39_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_80047 | 33 | 105 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80047:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1619, 0.0476, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80047:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80047:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80047:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80047:Expr_L63_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_80048 | 46 | 106 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80048:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1604, 0.0472, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80048:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80048:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80048:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80048:FunctionDef_L35_C2"}, {"f": "ajibawa-2023/Python-Code-... |
__version__ = "1.0c2"
| ajibawa-2023/Python-Code-Large/train/row_80049 | 1 | 1 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80049:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call... | [] |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | ajibawa-2023/Python-Code-Large/train/row_80050 | 63 | 124 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80050:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1371, 0.0403, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_80050:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80050:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80050:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80050:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Cod... |
# 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_80052 | 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_80052: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_80052:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80052:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80052:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80052: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_80053 | 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_80053: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_80053:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80053:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80053:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80053: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_80054 | 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_80054: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_80054:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80054:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80054:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80054: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_80055 | 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_80055: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_80055:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80055:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80055:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80055: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_80057 | 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_80057: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_80057:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80057:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80057:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80057: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_80059 | 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_80059: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_80059:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80059:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80059:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80059: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_80060 | 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_80060: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_80060:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80060:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_80060:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_80060:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Cod... |
__version__ = "1.0c2"
| ajibawa-2023/Python-Code-Large/train/row_80061 | 1 | 1 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_80061:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call... | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.