code stringlengths 1 1.49M | file_id stringlengths 42 46 | node_count int64 0 7.38k | total_lines int64 1 20.9k | vector_dim int64 15 15 | vector_labels stringclasses 1
value | nodes stringlengths 2 3.75M | connections stringlengths 2 964k |
|---|---|---|---|---|---|---|---|
#!/usr/bin/python
# -*- coding: utf-8 -*-
# mingus - Music theory Python package, extra package.
# Copyright (C) 2008-2009, Bart Spaans
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foun... | ajibawa-2023/Python-Code-Large/train/row_76995 | 3 | 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_76995:Import_L20_C0", "label": "lilypond import lilypond", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.6667, 0.0333, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "lilypond", "arg_names": [], "import_names": ["lilypo... | [] |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
*** Description ***
Converts a progression to chords and plays them using fluidsynth.
You should specify the SF2 soundfont file.
"""
from mingus.core import progressions, intervals
from mingus.core import chords as ch
from mingus.containers import NoteContainer,... | ajibawa-2023/Python-Code-Large/train/row_76997 | 44 | 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_76997:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0823, 0.1013, 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_76997:If_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_76997:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_76997:If_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_76997:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_769... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
*** Description ***
Converts a progression to chords, orchestrates them and plays
them using fluidsynth.
Make sure to set SF2 to a valid soundfont file.
Based on play_progression.py
"""
from mingus.core import progressions, intervals
from mingus.core im... | ajibawa-2023/Python-Code-Large/train/row_76998 | 114 | 175 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_76998:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 13], "level": 0, "parent": null, "vector": [8, 0, 0.0457, 0.0629, 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_76998:If_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_76998:Expr_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_76998:If_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_76998:Expr_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_769... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# PythonTidy.py
# 2006 Oct 27 . ccr
'''PythonTidy.py cleans up, regularizes, and reformats the text of
Python scripts.
===========================================
Copyright © 2006 Charles Curtis Rhode
===========================================
This program is free software... | ajibawa-2023/Python-Code-Large/train/row_77000 | 2,743 | 4,544 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77000:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 95], "level": 0, "parent": null, "vector": [8, 0, 0.0112, 0.0196, 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_77000:If_L213_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77000:Import_L214_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77000:If_L213_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77000:Import_L215_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# mingus - Music theory Python package, generate_wiki_docs module.
# Copyright (C) 2008, 2009, Bart Spaans
# Copyright (C) 2011, Carlo Stemberger
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Pub... | ajibawa-2023/Python-Code-Large/train/row_77001 | 129 | 220 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77001:Expr_L21_C0", "label": "expression", "type": "expression", "loc": [21, 24], "level": 0, "parent": null, "vector": [8, 0, 0.1023, 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_77001:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77001:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77001:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77001:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large... |
from distutils.core import setup
setup(name= "mingus",
version = "0.5.0",
description = "mingus is a music package for Python",
long_description =
"""mingus is a package for Python used by programmers, musicians, \
composers and researchers to make and investigate music. At the core of mingus is mu... | ajibawa-2023/Python-Code-Large/train/row_77002 | 2 | 49 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77002:ImportFrom_L1_C0", "label": "from distutils.core import setup", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0204, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "import... | [] |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# mingus - Music theory Python package, run_fluidsynth_tests module.
# Copyright (C) 2008, Bart Spaans
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Soft... | ajibawa-2023/Python-Code-Large/train/row_77003 | 5 | 29 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77003:Expr_L20_C0", "label": "expression", "type": "expression", "loc": [20, 24], "level": 0, "parent": null, "vector": [8, 0, 0.7586, 0.1724, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [] |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# mingus - Music theory Python package, run_tests module.
# Copyright (C) 2008, Bart Spaans
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Founda... | ajibawa-2023/Python-Code-Large/train/row_77004 | 26 | 88 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77004:Expr_L20_C0", "label": "expression", "type": "expression", "loc": [20, 24], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.0568, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [] |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# mingus - Music theory Python package, run_lilypond_tests module.
# Copyright (C) 2008, Bart Spaans
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Softwa... | ajibawa-2023/Python-Code-Large/train/row_77005 | 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_77005:Expr_L20_C0", "label": "expression", "type": "expression", "loc": [20, 20], "level": 0, "parent": null, "vector": [8, 0, 0.8, 0.04, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio... | [] |
#!/usr/bin/env python
#
# !!!!!!!!! WARNING !!!!!!!!!!!!!!!
# This Script was bastardized To Read Password From /home/bspaans/.googlecode
#
#
#
# Copyright 2006, 2007 Google Inc. All Rights Reserved.
# Author: danderson@google.com (David Anderson)
#
# Script for uploading files to a Google Code project.
#
# This is int... | ajibawa-2023/Python-Code-Large/train/row_77006 | 103 | 281 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77006:Expr_L51_C0", "label": "expression", "type": "expression", "loc": [51, 52], "level": 0, "parent": null, "vector": [8, 0, 0.1833, 0.0071, 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_77006:FunctionDef_L67_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77006:Expr_L68_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77006:FunctionDef_L67_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77006:Assign_L72_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright 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 ag... | ajibawa-2023/Python-Code-Large/train/row_77007 | 136 | 390 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77007:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.05, 0.0154, 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_77007:FunctionDef_L151_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77007:Expr_L152_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77007:FunctionDef_L151_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77007:Return_L165_C2"}, {"f": "ajibawa-2023/Python-... |
# 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_77008 | 16 | 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_77008:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.2615, 0.0769, 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_77008:Try_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77008:Import_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77008:Try_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77008:Try_L35_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_77009 | 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_77009: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_77009:For_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77009:If_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77009:If_L49_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77009:Assign_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77... |
# 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_77011 | 169 | 452 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77011:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0365, 0.0619, 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_77011:ClassDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77011:Expr_L54_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77011:ClassDef_L58_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77011: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_77012 | 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_77012: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_77012:Try_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77012:ImportFrom_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77012:Try_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77012: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_77013 | 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_77013: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_77013:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77013:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77013:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77013: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_77014 | 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_77014: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_77014:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77014:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77014:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77014: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_77016 | 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_77016: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_77016:Try_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77016:ImportFrom_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77016:Try_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77016: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_77017 | 52 | 196 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77017:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0918, 0.0051, 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_77017:Try_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77017:ImportFrom_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77017:Try_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77017: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_77019 | 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_77019: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_77019:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77019:Expr_L61_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77019:ClassDef_L65_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77019: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_77021 | 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_77021: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_77022 | 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_77022: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_77022:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77022:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77022:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77022: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_77023 | 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_77023: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_77023:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77023:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77023:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77023: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_77024 | 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_77024: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_77024:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77024:Expr_L41_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77024:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77024: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_77026 | 6 | 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_77026:Expr_L13_C0", "label": "expression", "type": "expression", "loc": [13, 13], "level": 0, "parent": null, "vector": [8, 0, 0.619, 0.0476, 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_77026:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77026:Expr_L20_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77026:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77026:Assign_L21_C2"}] |
# 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_77027 | 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_77027: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_77027:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77027:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77027:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77027: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_77028 | 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_77028: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_77028:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77028:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77028:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77028: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_77030 | 154 | 383 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77030:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0522, 0.0183, 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_77030:ClassDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77030:Expr_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77030:ClassDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77030:FunctionDef_L50_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_77032 | 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_77032: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_77032:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77032:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77032:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77032:Expr_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
# Copyright (C) 2013 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_77033 | 27 | 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_77033:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.1774, 0.043, 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_77033:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77033:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77033:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77033:If_L57_C2"}, {"f": "ajibawa-2023/Python-Code-Lar... |
__version__ = "1.1"
| ajibawa-2023/Python-Code-Large/train/row_77034 | 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_77034: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_77035 | 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_77035: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_77035:ClassDef_L70_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77035:Expr_L71_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77035:ClassDef_L70_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77035: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_77036 | 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_77036: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_77036:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77036:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77036:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77036:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro... |
#!/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_77037 | 20 | 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_77037:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 19], "level": 0, "parent": null, "vector": [8, 0, 0.319, 0.0345, 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_77037:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77037:Assign_L44_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77037:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77037:If_L45_C2"}, {"f": "ajibawa-2023/Python-Code-L... |
# 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_77038 | 16 | 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_77038:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.2698, 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_77038:Try_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77038:Import_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77038:Try_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77038:Try_L35_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_77044 | 19 | 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_77044:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.3333, 0.0877, 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_77044:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77044:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77044:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77044:Try_L39_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_77045 | 40 | 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_77045: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_77045:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77045:Assign_L51_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77045:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77045:Assign_L56_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_77046 | 21 | 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_77046:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.2969, 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_77046:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77046:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77046:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77046:Try_L39_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_77048 | 19 | 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_77048:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.3304, 0.0714, 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_77048:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77048:Assign_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77048:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77048:Try_L38_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_77049 | 34 | 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_77049: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_77049:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77049:Assign_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77049:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77049:Assign_L46_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_77050 | 24 | 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_77050:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2786, 0.0857, 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_77050:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77050:Assign_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77050:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77050:Assign_L45_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_77052 | 24 | 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_77052: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_77052:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77052:Assign_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77052:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77052:Assign_L46_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_77053 | 24 | 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_77053:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2721, 0.0588, 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_77053:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77053:Assign_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77053:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77053:Assign_L44_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_77054 | 20 | 59 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77054:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.3136, 0.0678, 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_77054:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77054:Assign_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77054:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77054:Try_L38_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_77055 | 27 | 75 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77055:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.26, 0.08, 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_77055:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77055:Assign_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77055:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77055: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_77056 | 23 | 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_77056: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_77056:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77056:Assign_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77056:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77056:Assign_L46_C2"}, {"f": "ajibawa-2023/Python-Co... |
#!/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_77057 | 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_77057: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_77057:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77057:Assign_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77057:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77057:Try_L37_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_77058 | 18 | 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_77058: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_77058:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77058:Assign_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77058:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77058:Try_L37_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_77059 | 20 | 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_77059:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.3033, 0.0656, 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_77059:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77059:Assign_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77059:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77059:Assign_L46_C2"}, {"f": "ajibawa-2023/Python-Co... |
#!/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_77060 | 25 | 75 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77060:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2467, 0.0533, 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_77060:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77060:Assign_L45_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77060:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77060:Assign_L49_C2"}, {"f": "ajibawa-2023/Python-Co... |
#!/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_77061 | 21 | 62 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77061:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2984, 0.0645, 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_77061:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77061:Assign_L41_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77061:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77061:Assign_L45_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_77066 | 13 | 66 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77066:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 34], "level": 0, "parent": null, "vector": [8, 0, 0.3939, 0.2576, 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_77066:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77066:Assign_L44_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77066:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77066:Try_L48_C2"}, {"f": "ajibawa-2023/Python-Code-... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 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_77068 | 19 | 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_77068:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 20], "level": 0, "parent": null, "vector": [8, 0, 0.3276, 0.0517, 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_77068:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77068:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77068:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77068:Try_L36_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"""
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
def main():
"""Get and prin... | ajibawa-2023/Python-Code-Large/train/row_77070 | 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_77070: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_77070:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77070:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77070:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77070: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_77072 | 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_77072: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_77072:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77072:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77072:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77072: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_77073 | 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_77073: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_77073:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77073:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77073:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77073: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_77074 | 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_77074: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_77074:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77074:Expr_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77074:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77074: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_77075 | 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_77075: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_77075:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77075:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77075:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77075: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_77076 | 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_77076: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_77076:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77076:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77076:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77076: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_77077 | 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_77077: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_77077:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77077:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77077:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77077: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_77079 | 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_77079: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_77079:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77079:Assign_L50_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77079:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77079: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_77080 | 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_77080: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_77080:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77080:Expr_L64_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77080:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77080: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_77081 | 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_77081: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_77081:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77081:FunctionDef_L62_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77081:FunctionDef_L62_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77081:Try_L63_C4"}, {"f": "ajibawa-2023/Python-Cod... |
#!/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_77082 | 19 | 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_77082:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 34], "level": 0, "parent": null, "vector": [8, 0, 0.3824, 0.25, 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_77082:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77082:Assign_L45_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77082:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77082:Try_L49_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_77084 | 33 | 110 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77084:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1818, 0.0636, 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_77084:ClassDef_L77_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77084:FunctionDef_L80_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77084:FunctionDef_L80_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77084:Assign_L81_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_77086 | 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_77086: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_77086:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77086:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77086:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77086:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_7... |
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_77087 | 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_77087: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_77087:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77087:Assign_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77087:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77087: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_77088 | 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_77088: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_77088:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77088:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77088:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77088: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_77089 | 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_77089: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_77089:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77089:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77089:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77089: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_77090 | 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_77090: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_77091 | 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_77091: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_77092 | 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_77092: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_77092:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77092:Assign_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77092:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77092: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_77093 | 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_77093: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_77093:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77093:Assign_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77093:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77093: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_77094 | 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_77094: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_77094:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77094:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77094:FunctionDef_L31_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77094: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_77095 | 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_77095: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/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_77096 | 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_77096: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_77096:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77096:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77096:FunctionDef_L32_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77096:Assign_L33_C8"}, {"f": "ajibawa-2023/Python-... |
#! -*- python -*-
#
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import make_nacl_env
import nacl_utils
import os
nacl_env = make_nacl_env.NaClEnvironment(
use_c_plus_plus_libs=... | ajibawa-2023/Python-Code-Large/train/row_77097 | 7 | 18 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77097:Import_L7_C0", "label": "make_nacl_env import make_nacl_env", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.3889, 0.0556, 0, 0.66, 0.0, 70, 0, 1, 0, 0, 70, 0, 0], "semantic": {"name": "make_nacl_env", "arg_names": [], "import_name... | [] |
import sys, json
def readarray(f):
result = []
for i in xrange(36):
word = f.read(2)
result.append(ord(word[1]))
return result
filename = sys.argv[1]
f = open(filename, 'rb');
d = {
'transform': readarray(f),
'source': readarray(f),
'control': readarray(f),
'dest': readarra... | ajibawa-2023/Python-Code-Large/train/row_77098 | 12 | 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_77098:Import_L1_C0", "label": "sys import sys, json", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "json"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_77098:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77098:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77098:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77098:For_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Larg... |
#====================================================================
# 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_77099 | 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_77099: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_77099:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77099:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77099:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77099:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-... |
#====================================================================
# 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_77100 | 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_77100: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_77100:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77100:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77100:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77100:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-... |
#====================================================================
# 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_77101 | 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_77101: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_77101:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77101:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77101:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77101:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-... |
#!/usr/bin/python2.4
#
# Copyright 2007 The Python-Twitter Developers
#
# 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... | ajibawa-2023/Python-Code-Large/train/row_77102 | 19 | 73 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77102:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.2329, 0.0137, 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_77102:FunctionDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77102:Return_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77102:FunctionDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77102:Return_L56_C2"}, {"f": "ajibawa-2023/Python-Co... |
#!/usr/bin/python2.4
#
# Copyright 2007 The Python-Twitter Developers
#
# 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... | ajibawa-2023/Python-Code-Large/train/row_77103 | 53 | 91 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77103:Import_L18_C0", "label": "os import os", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.1978, 0.011, 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_77103:Try_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77103:ImportFrom_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77103:Try_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77103:ImportFrom_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large... |
"""Implementation of JSONEncoder
"""
import re
try:
from simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii
except ImportError:
c_encode_basestring_ascii = None
try:
from simplejson._speedups import make_encoder as c_make_encoder
except ImportError:
c_make_encoder = None
... | ajibawa-2023/Python-Code-Large/train/row_77104 | 230 | 434 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77104:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0035, 0.0046, 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_77104:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77104:ImportFrom_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77104:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77104:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r... |
r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of
JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data
interchange format.
:mod:`simplejson` exposes an API familiar to users of the standard library
:mod:`marshal` and :mod:`pickle` modules. It is the externally maintained
version of ... | ajibawa-2023/Python-Code-Large/train/row_77106 | 41 | 316 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77106:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 99], "level": 0, "parent": null, "vector": [8, 0, 0.1582, 0.3133, 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_77106:FunctionDef_L120_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77106:Expr_L123_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77106:FunctionDef_L120_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77106:If_L164_C4"}, {"f": "ajibawa-2023/Python-Code... |
"""JSON token scanner
"""
import re
try:
from simplejson._speedups import make_scanner as c_make_scanner
except ImportError:
c_make_scanner = None
__all__ = ['make_scanner']
NUMBER_RE = re.compile(
r'(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?',
(re.VERBOSE | re.MULTILINE | re.DOTALL))
def py_make_scan... | ajibawa-2023/Python-Code-Large/train/row_77108 | 48 | 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_77108:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0231, 0.0308, 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_77108:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77108:ImportFrom_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77108:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77108:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r... |
#!/usr/bin/python2.4
'''Post a message to twitter'''
__author__ = 'dewitt@google.com'
import ConfigParser
import getopt
import os
import sys
import twitter
USAGE = '''Usage: tweet [options] message
This script posts a message to Twitter.
Options:
-h --help : print this help
--consumer-key : the twit... | ajibawa-2023/Python-Code-Large/train/row_77110 | 82 | 141 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77110:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0213, 0.0071, 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_77110:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77110:Expr_L50_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77110:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77110:Expr_L51_C2"}, {"f": "ajibawa-2023/Python-Code-L... |
#!/usr/bin/python2.4
#
# Copyright 2007 The Python-Twitter Developers
#
# 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... | ajibawa-2023/Python-Code-Large/train/row_77111 | 16 | 71 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77111:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2606, 0.0563, 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_77111:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77111:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77111:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77111:FunctionDef_L38_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_77114 | 189 | 572 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77114:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0297, 0.0017, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_77114:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77114:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77114:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77114:Return_L54_C2"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/python
#
# Copyright (C) 2012 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | ajibawa-2023/Python-Code-Large/train/row_77115 | 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_77115: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_77115:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77115:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77115:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77115:Assign_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large... |
# This is the version of this source code.
manual_verstr = "1.5"
auto_build_num = "211"
verstr = manual_verstr + "." + auto_build_num
try:
from pyutil.version_class import Version as pyutil_Version
__version__ = pyutil_Version(verstr)
except (ImportError, ValueError):
# Maybe there is no pyutil insta... | ajibawa-2023/Python-Code-Large/train/row_77117 | 8 | 18 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77117:Assign_L3_C0", "label": "manual_verstr =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 189, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "manual_verstr", "arg_names": [], "import_names": [],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_77117:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77117:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77117:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77117:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
"""
The MIT License
Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ... | ajibawa-2023/Python-Code-Large/train/row_77118 | 9 | 40 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77118:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.575, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_77118:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77118:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77118:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77118:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-... |
"""
The MIT License
Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ... | ajibawa-2023/Python-Code-Large/train/row_77119 | 10 | 41 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77119:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.2927, 0.561, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_77119:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77119:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77119:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77119:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-... |
# Copyright 2011 Google Inc. All Rights Reserved.
"""Multi-credential file store with lock support.
This module implements a JSON credential store where multiple
credentials can be stored in one file. That file supports locking
both in a single process and across processes.
The credential themselves are keyed off o... | ajibawa-2023/Python-Code-Large/train/row_77121 | 155 | 366 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77121:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0451, 0.0765, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_77121:Try_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77121:Import_L41_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77121:Try_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77121:Try_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_... |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | ajibawa-2023/Python-Code-Large/train/row_77122 | 348 | 953 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77122:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0173, 0.0042, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_77122:Try_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77122:ImportFrom_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77122:Try_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77122:ImportFrom_L38_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_77123 | 38 | 92 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77123:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1848, 0.0543, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_77123:Try_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77123:Import_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77123:Try_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77123:Try_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_... |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | ajibawa-2023/Python-Code-Large/train/row_77124 | 55 | 114 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77124:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1491, 0.0439, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_77124:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77124:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77124:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77124:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Cod... |
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | ajibawa-2023/Python-Code-Large/train/row_77125 | 214 | 544 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77125:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0303, 0.0074, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_77125:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77125:Import_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77125:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77125:Try_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright (C) 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | ajibawa-2023/Python-Code-Large/train/row_77126 | 90 | 253 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77126:Import_L18_C0", "label": "base64 import base64", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0711, 0.004, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_77126:Try_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77126:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77126:Try_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77126:Try_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_... |
# 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_77127 | 37 | 113 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_77127:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1504, 0.0442, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_77127:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77127:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77127:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77127:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.