code stringlengths 1 1.49M | file_id stringlengths 42 46 | node_count int64 0 7.38k | total_lines int64 1 20.9k | vector_dim int64 15 15 | vector_labels stringclasses 1
value | nodes stringlengths 2 3.75M | connections stringlengths 2 964k |
|---|---|---|---|---|---|---|---|
#!/usr/bin/python
#
# Copyright 2008 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 a... | ajibawa-2023/Python-Code-Large/train/row_90511 | 3 | 36 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90511:ImportFrom_L17_C0", "label": "from distutils.core import setup", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.4722, 0.0278, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "imp... | [] |
#!/usr/bin/python
#
# Copyright 2007 Google Inc.
# Licensed to PSF under a Contributor Agreement.
#
# 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/LICE... | ajibawa-2023/Python-Code-Large/train/row_90513 | 725 | 1,854 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90513:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0111, 0.0032, 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_90513:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90513:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90513:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90513:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
#
# Copyright 2008 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 a... | ajibawa-2023/Python-Code-Large/train/row_90514 | 3 | 36 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90514:ImportFrom_L17_C0", "label": "from distutils.core import setup", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.4722, 0.0278, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "imp... | [] |
#!/usr/bin/python
#
# Copyright 2007 Google Inc.
# Licensed to PSF under a Contributor Agreement.
#
# 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/LICE... | ajibawa-2023/Python-Code-Large/train/row_90516 | 716 | 1,896 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90516:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0108, 0.0032, 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_90516:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90516:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90516:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90516:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
#
# Copyright 2008 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 a... | ajibawa-2023/Python-Code-Large/train/row_90517 | 3 | 36 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90517:ImportFrom_L17_C0", "label": "from distutils.core import setup", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.4722, 0.0278, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "imp... | [] |
#!/usr/bin/python
#
# Copyright 2007 Google Inc.
# Licensed to PSF under a Contributor Agreement.
#
# 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/LICE... | ajibawa-2023/Python-Code-Large/train/row_90519 | 767 | 1,951 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90519:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0105, 0.0031, 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_90519:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90519:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90519:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90519:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
#
# Copyright 2008 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 a... | ajibawa-2023/Python-Code-Large/train/row_90520 | 3 | 35 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90520:ImportFrom_L17_C0", "label": "from distutils.core import setup", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.4857, 0.0286, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "imp... | [] |
#!/usr/bin/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 or a... | ajibawa-2023/Python-Code-Large/train/row_90522 | 433 | 1,127 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90522:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.0169, 0.0044, 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_90522:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90522:Expr_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90522:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90522:Expr_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
#
# Copyright 2008 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 a... | ajibawa-2023/Python-Code-Large/train/row_90523 | 3 | 36 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90523:ImportFrom_L17_C0", "label": "from distutils.core import setup", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.4722, 0.0278, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "imp... | [] |
#!/usr/bin/python
#
# Copyright 2007 Google Inc.
# Licensed to PSF under a Contributor Agreement.
#
# 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/LICE... | ajibawa-2023/Python-Code-Large/train/row_90525 | 772 | 1,959 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90525:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0105, 0.0031, 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_90525:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90525:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90525:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90525:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
#
# Copyright 2008 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 a... | ajibawa-2023/Python-Code-Large/train/row_90526 | 3 | 36 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90526:ImportFrom_L17_C0", "label": "from distutils.core import setup", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.4722, 0.0278, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "imp... | [] |
#!/usr/bin/python
#
# Copyright 2007 Google Inc.
# Licensed to PSF under a Contributor Agreement.
#
# 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/LICE... | ajibawa-2023/Python-Code-Large/train/row_90528 | 767 | 1,949 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90528:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0105, 0.0031, 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_90528:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90528:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90528:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90528:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#
# This file defines how to build PyMite using Scons (www.scons.org)
# Usage:
# scons tags
# scons docs
# scons PLATFORM=<platform>
#
import os, string
supported_platforms = Glob("src/platform/*")
allowed_platforms = [os.path.split(x)[1] for x in map(str, supported_platforms)]
vars = Variables()
# BUILD ... | ajibawa-2023/Python-Code-Large/train/row_90529 | 31 | 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_90529:Import_L10_C0", "label": "os import os, string", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.1493, 0.0149, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "string"]... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90529:If_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90529:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90529:If_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90529:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row... |
#!/usr/bin/env python
# This file is Copyright 2009 Dean Hall.
# This file is part of the Python-on-a-Chip tools.
# This software is licensed under the MIT License.
# See the LICENSE file for details.
"""
PyMite Heap Dump
================
Parses a heap dump into human-readable format.
The heap dump file is created ... | ajibawa-2023/Python-Code-Large/train/row_90530 | 337 | 734 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90530:Expr_L8_C0", "label": "expression", "type": "expression", "loc": [8, 39], "level": 0, "parent": null, "vector": [8, 0, 0.032, 0.0436, 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_90530:Try_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90530:Import_L53_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90530:Try_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90530:Import_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r... |
#!/usr/bin/env python
# This file is Copyright 2001 Dean Hall.
# This file is part of the Python-on-a-Chip tools.
# This software is licensed under the MIT License.
# See the LICENSE file for details.
"""
PyMite Image Creator
====================
Converts Python source files to a PyMite code image library.
Performs ... | ajibawa-2023/Python-Code-Large/train/row_90532 | 300 | 967 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90532:Expr_L8_C0", "label": "expression", "type": "expression", "loc": [8, 29], "level": 0, "parent": null, "vector": [8, 0, 0.0191, 0.0228, 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_90532:If_L129_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90532:Assign_L130_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90532:If_L129_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90532:Assign_L132_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train... |
#!/usr/bin/env python
# Copyright 2009 Dean Hall.
# This file is part of the Python-on-a-Chip tools.
# This software is licensed under the MIT License.
# See the LICENSE file for details.
## @file
# @copydoc pmReplaceCopyright
## @package pmReplaceCopyright
# @brief This program naively replaces the copyright head... | ajibawa-2023/Python-Code-Large/train/row_90533 | 19 | 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_90533:Import_L18_C0", "label": "os import os, sys", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.2571, 0.0143, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys"], "rhs... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90533:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90533:Assign_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90533:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90533:If_L52_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
#!/usr/bin/env python
# This file is Copyright 2009 Dean Hall.
# This file is part of the Python-on-a-Chip tools.
# This software is licensed under the MIT License.
# See the LICENSE file for details.
"""
PyMite Object Descriptor Decoder
================================
Decodes an object descriptor value into its bi... | ajibawa-2023/Python-Code-Large/train/row_90534 | 21 | 101 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90534:Expr_L8_C0", "label": "expression", "type": "expression", "loc": [8, 13], "level": 0, "parent": null, "vector": [8, 0, 0.104, 0.0594, 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_90534:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90534:If_L64_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90534:If_L64_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90534:Return_L65_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai... |
#!/usr/bin/env python
# This file is Copyright 2001 Dean Hall.
# This file is part of the Python-on-a-Chip tools.
# This software is licensed under the MIT License.
# See the LICENSE file for details.
"""
Python Byte Code utility functions.
count(fn) - count the number of times each byte code
appears in ... | ajibawa-2023/Python-Code-Large/train/row_90536 | 31 | 99 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90536:Expr_L8_C0", "label": "expression", "type": "expression", "loc": [8, 13], "level": 0, "parent": null, "vector": [8, 0, 0.1061, 0.0606, 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_90536:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90536:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90536:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90536:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/env python
# This file is Copyright 2009 Dean Hall.
# This file is part of the Python-on-a-Chip tools.
# This software is licensed under the MIT License.
# See the LICENSE file for details.
"""Creates a release package for PyMite
Makes fresh export (no .svn folders), builds the docs, makes pymite-RR.tar.g... | ajibawa-2023/Python-Code-Large/train/row_90537 | 13 | 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_90537:Expr_L8_C0", "label": "expression", "type": "expression", "loc": [8, 12], "level": 0, "parent": null, "vector": [8, 0, 0.1786, 0.0893, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [] |
# This file is Copyright 2009 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90538 | 1 | 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_90538:Assign_L13_C0", "label": "PM_FEATURES =", "type": "assigned_variable", "loc": [13, 32], "level": 0, "parent": null, "vector": [14, 0, 0.7031, 0.625, 0, 0.66, 0.0, 965, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "PM_FEATURES", "arg_names": [], "import_names": [], "... | [] |
# This file is Copyright 2009 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
#... | ajibawa-2023/Python-Code-Large/train/row_90539 | 2 | 14 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90539:Import_L13_C0", "label": "ipm import ipm", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.9286, 0.0714, 0, 0.66, 0.0, 327, 0, 1, 0, 0, 327, 0, 0], "semantic": {"name": "ipm", "arg_names": [], "import_names": ["ipm"], "rhs_call_na... | [] |
# This file is Copyright 2009 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90540 | 84 | 1,560 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90540:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0141, 0.0109, 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_90540:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90540:FunctionDef_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90540:FunctionDef_L35_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90540:Expr_L36_C8"}, {"f": "ajibawa-2023/Python-Co... |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90541 | 1 | 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_90541:Assign_L13_C0", "label": "PM_FEATURES =", "type": "assigned_variable", "loc": [13, 32], "level": 0, "parent": null, "vector": [14, 0, 0.7031, 0.625, 0, 0.66, 0.0, 965, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "PM_FEATURES", "arg_names": [], "import_names": [], "... | [] |
#
# PyMite - A flyweight Python interpreter for 8-bit and larger microcontrollers.
# Copyright 2002 Dean Hall. All rights reserved.
# PyMite is offered through one of two licenses: commercial or open-source.
# See the LICENSE file at the root of this package for licensing details.
#
#
# Runs the interactive interpret... | ajibawa-2023/Python-Code-Large/train/row_90542 | 4 | 17 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90542:Expr_L12_C0", "label": "print()", "type": "expression", "loc": [12, 12], "level": 0, "parent": null, "vector": [8, 0, 0.7059, 0.0588, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "prin... | [] |
# to get the Python executable path
import sys
# pulls in the variables set in the 'master' SConstruct file
Import("vars")
# these should match up with the source code
vars.Add("HEAP_SIZE", "Size of the VM's heap.", 0x2000)
vars.Add("IPM", "Add the interactive library to the standard lib", True)
CFLAGS = "/DHEAP_SIZ... | ajibawa-2023/Python-Code-Large/train/row_90543 | 15 | 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_90543:Import_L2_C0", "label": "sys import sys", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0488, 0.0244, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90543:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90543:Assign_L13_C4"}] |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90544 | 1 | 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_90544:Assign_L13_C0", "label": "PM_FEATURES =", "type": "assigned_variable", "loc": [13, 32], "level": 0, "parent": null, "vector": [14, 0, 0.7031, 0.625, 0, 0.66, 0.0, 965, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "PM_FEATURES", "arg_names": [], "import_names": [], "... | [] |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90545 | 23 | 430 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90545:Expr_L13_C0", "label": "expression", "type": "expression", "loc": [13, 20], "level": 0, "parent": null, "vector": [8, 0, 0.0384, 0.0186, 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_90545:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90545:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90545:FunctionDef_L75_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90545:Expr_L76_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
#
# PyMite - A flyweight Python interpreter for 8-bit and larger microcontrollers.
# Copyright 2002 Dean Hall. All rights reserved.
# PyMite is offered through one of two licenses: commercial or open-source.
# See the LICENSE file at the root of this package for licensing details.
#
import ipm
ipm.ipm()
| ajibawa-2023/Python-Code-Large/train/row_90546 | 2 | 9 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90546:Import_L8_C0", "label": "ipm import ipm", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.8889, 0.1111, 0, 0.66, 0.0, 327, 0, 1, 0, 0, 327, 0, 0], "semantic": {"name": "ipm", "arg_names": [], "import_names": ["ipm"], "rhs_call_name"... | [] |
#!/usr/bin/python
# This file was written by Andrew Pullin
# This file obtained from: http://bmi.berkeley.edu/~pullin/red-bsl.py
# No copyright or licensing is claimed
# Permission to use this file was granted via correspondence
import serial
from struct import pack,unpack
import os
import sys
import time
from optpa... | ajibawa-2023/Python-Code-Large/train/row_90547 | 180 | 285 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90547:Import_L9_C0", "label": "serial import serial", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0316, 0.0035, 0, 0.66, 0.0, 601, 0, 1, 0, 0, 601, 0, 0], "semantic": {"name": "serial", "arg_names": [], "import_names": ["serial"], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90547:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90547:Assign_L64_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90547:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90547:Return_L65_C1"}, {"f": "ajibawa-2023/Python-Co... |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90548 | 1 | 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_90548:Assign_L13_C0", "label": "PM_FEATURES =", "type": "assigned_variable", "loc": [13, 32], "level": 0, "parent": null, "vector": [14, 0, 0.7031, 0.625, 0, 0.66, 0.0, 965, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "PM_FEATURES", "arg_names": [], "import_names": [], "... | [] |
# This file is Copyright 2010 Oscar Lindberg.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be usefu... | ajibawa-2023/Python-Code-Large/train/row_90549 | 34 | 84 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90549:Import_L13_C0", "label": "sys import sys", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.1548, 0.0119, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90549:For_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90549:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90549:While_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90549:Expr_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row... |
# This file contains wrappers that has been automatically
# generated from the maapi.h. Some of these has been moved
# to ma.py, sometimes they have changed into more a more
# Pythonic format.
# When some function or constant is missing from ma.h,
# it might be here.
"""__NATIVE__
#include <ma.h>
"""
TRANS_NONE = 0... | ajibawa-2023/Python-Code-Large/train/row_90550 | 354 | 3,374 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90550:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 11], "level": 0, "parent": null, "vector": [8, 0, 0.003, 0.0009, 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_90550:FunctionDef_L476_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90550:Expr_L477_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90550:FunctionDef_L528_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90550:Expr_L529_C4"}, {"f": "ajibawa-2023/Python-Co... |
# This file contains wrappers for the basic
# functions in maapi.
# If a function or constant is missing, look in ma_gen.py, it
# might be there.
"""__NATIVE__
#include <ma.h>
#define POP_TMPROOT_AND_RETURN_IF_ERROR(retval, objid) \
do \
{ \
if ((retval) != PM_RET_OK) \
{ \
heap_g... | ajibawa-2023/Python-Code-Large/train/row_90551 | 154 | 1,540 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90551:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 21], "level": 0, "parent": null, "vector": [8, 0, 0.0091, 0.0097, 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_90551:FunctionDef_L84_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90551:Expr_L85_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90551:FunctionDef_L124_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90551:Expr_L125_C4"}, {"f": "ajibawa-2023/Python-Code... |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90552 | 1 | 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_90552:Assign_L13_C0", "label": "PM_FEATURES =", "type": "assigned_variable", "loc": [13, 32], "level": 0, "parent": null, "vector": [14, 0, 0.7031, 0.625, 0, 0.66, 0.0, 965, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "PM_FEATURES", "arg_names": [], "import_names": [], "... | [] |
# This file is Copyright 2007 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
#... | ajibawa-2023/Python-Code-Large/train/row_90553 | 9 | 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_90553:Expr_L16_C0", "label": "print()", "type": "expression", "loc": [16, 16], "level": 0, "parent": null, "vector": [8, 0, 0.5517, 0.0345, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "prin... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90553:While_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90553:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90553:While_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90553:Expr_L27_C4"}] |
import os
Import("vars")
vars.Add("IPM", "Add the interactive library to the standard lib", True)
vars.Add("MCU", "Type of AVR device; the arg to -mmcu.", "atmega103")
vars.Add("F_CPU", "Operating frequency of the AVR device.", "4000000UL")
vars.Add("NM", "", "avr-nm")
vars.Add("OBJCOPY", "", "avr-objcopy")
vars.Add(... | ajibawa-2023/Python-Code-Large/train/row_90554 | 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_90554:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0213, 0.0213, 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_90554:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90554:Assign_L18_C4"}] |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90555 | 1 | 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_90555:Assign_L13_C0", "label": "PM_FEATURES =", "type": "assigned_variable", "loc": [13, 32], "level": 0, "parent": null, "vector": [14, 0, 0.7031, 0.625, 0, 0.66, 0.0, 965, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "PM_FEATURES", "arg_names": [], "import_names": [], "... | [] |
#
# PyMite - A flyweight Python interpreter for 8-bit and larger microcontrollers.
# Copyright 2002 Dean Hall. All rights reserved.
# PyMite is offered through one of two licenses: commercial or open-source.
# See the LICENSE file at the root of this package for licensing details.
#
import ipm
ipm.ipm()
# :mode=c:
| ajibawa-2023/Python-Code-Large/train/row_90556 | 2 | 11 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90556:Import_L8_C0", "label": "ipm import ipm", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.7273, 0.0909, 0, 0.66, 0.0, 327, 0, 1, 0, 0, 327, 0, 0], "semantic": {"name": "ipm", "arg_names": [], "import_names": ["ipm"], "rhs_call_name"... | [] |
import os
import glob
TCHAIN = "arm-none-eabi"
Import("vars")
vars.Add("PM_UART_BAUD", "Baud rate of the ipm serial connection.", "19200")
vars.Add("IPM", "Add the interactive library to the standard lib", True)
vars.Add("MCU", "Type of ARM device; the arg to -mcpu.", "cortex-m3")
vars.Add("NM", "", "arm-eabi-nm")
v... | ajibawa-2023/Python-Code-Large/train/row_90557 | 25 | 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_90557:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0154, 0.0154, 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_90557:If_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90557:Assign_L30_C4"}] |
#!/usr/bin/env python
import urllib, zipfile, StringIO
from os import path, mkdir
extra_headers = ['stm32f10x.h','core_cm3.h','cortexm3_macro.h','system_stm32f10x.h']
extra_sources = ['core_cm3.c','cortexm3_macro.s','system_stm32f10x.c']
startup_files = ['startup_stm32f10x_hd.s']
#stm32liburl = 'http://www.st.com/st... | ajibawa-2023/Python-Code-Large/train/row_90558 | 31 | 39 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90558:Import_L3_C0", "label": "urllib import urllib, zipfile, StringIO", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0256, 0, 0.66, 0.0, 614, 0, 3, 0, 0, 614, 0, 0], "semantic": {"name": "urllib", "arg_names": [], "import_name... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90558:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90558:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90558:For_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90558:If_L22_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9055... |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90559 | 1 | 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_90559:Assign_L13_C0", "label": "PM_FEATURES =", "type": "assigned_variable", "loc": [13, 32], "level": 0, "parent": null, "vector": [14, 0, 0.7031, 0.625, 0, 0.66, 0.0, 965, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "PM_FEATURES", "arg_names": [], "import_names": [], "... | [] |
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | ajibawa-2023/Python-Code-Large/train/row_90560 | 35 | 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_90560:Expr_L19_C0", "label": "print()", "type": "expression", "loc": [19, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1939, 0.0102, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "prin... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90560:FunctionDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90560:For_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90560:For_L63_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90560:Expr_L64_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai... |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90561 | 1 | 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_90561:Assign_L13_C0", "label": "PM_FEATURES =", "type": "assigned_variable", "loc": [13, 32], "level": 0, "parent": null, "vector": [14, 0, 0.7031, 0.625, 0, 0.66, 0.0, 965, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "PM_FEATURES", "arg_names": [], "import_names": [], "... | [] |
# This file is Copyright 2007 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
#... | ajibawa-2023/Python-Code-Large/train/row_90563 | 36 | 182 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90563:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 30], "level": 0, "parent": null, "vector": [8, 0, 0.1291, 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_90563:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90563:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90563:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90563:Expr_L47_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
# This file is Copyright 2007 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
#... | ajibawa-2023/Python-Code-Large/train/row_90564 | 47 | 261 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90564:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.0728, 0.0192, 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_90564:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90564:FunctionDef_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90564:FunctionDef_L55_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90564:Expr_L56_C8"}, {"f": "ajibawa-2023/Python-Co... |
# This file is Copyright 2007 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
#... | ajibawa-2023/Python-Code-Large/train/row_90565 | 3 | 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_90565:ImportFrom_L17_C0", "label": "from ipm import ipm", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.8947, 0.0526, 0, 0.66, 0.0, 327, 0, 1, 0, 0, 327, 0, 0], "semantic": {"name": "ipm", "arg_names": [], "import_names": ["ipm"], "rh... | [] |
#! /usr/bin/env python
"Replace CRLF with LF in argument files. Print names of changed files."
import sys, os
def main():
for filename in sys.argv[1:]:
if os.path.isdir(filename):
print filename, "Directory!"
continue
data = open(filename, "rb").read()
if '\0' in d... | ajibawa-2023/Python-Code-Large/train/row_90566 | 17 | 23 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90566:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.087, 0.0435, 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_90566:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90566:For_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90566:For_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90566:If_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_... |
# Anything that starts with a # is a comment!
# Use lots of comments in your code to explain what you're doing.
# Use the PIC-specific Python libraries
import pic24_dspic33 as pic
# Monitor RAM usage
import sys
print "\n\nRAM usage: (free, total): ", sys.heap()
#####################################################... | ajibawa-2023/Python-Code-Large/train/row_90567 | 41 | 120 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90567:Import_L5_C0", "label": "pic24_dspic33 import pic", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0417, 0.0083, 0, 0.66, 0.0, 542, 0, 1, 0, 0, 542, 0, 0], "semantic": {"name": "pic24_dspic33", "arg_names": [], "import_names": ["pi... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90567:While_L81_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90567:If_L83_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90567:If_L83_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90567:Expr_L84_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90... |
# This file is Copyright 2007 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
#... | ajibawa-2023/Python-Code-Large/train/row_90568 | 8 | 39 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90568:Import_L19_C0", "label": "pic24_dspic33 import pic", "type": "import", "loc": [19, 19], "level": 0, "parent": null, "vector": [1, 0, 0.4872, 0.0256, 0, 0.66, 0.0, 542, 0, 1, 0, 0, 542, 0, 0], "semantic": {"name": "pic24_dspic33", "arg_names": [], "import_names": [... | [] |
# This file is Copyright 2009 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90569 | 1 | 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_90569:Assign_L13_C0", "label": "PM_FEATURES =", "type": "assigned_variable", "loc": [13, 32], "level": 0, "parent": null, "vector": [14, 0, 0.7031, 0.625, 0, 0.66, 0.0, 965, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "PM_FEATURES", "arg_names": [], "import_names": [], "... | [] |
# This file is Copyright 2009 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
#... | ajibawa-2023/Python-Code-Large/train/row_90570 | 2 | 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_90570:Import_L18_C0", "label": "ipm import ipm", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.9474, 0.0526, 0, 0.66, 0.0, 327, 0, 1, 0, 0, 327, 0, 0], "semantic": {"name": "ipm", "arg_names": [], "import_names": ["ipm"], "rhs_call_na... | [] |
Import("vars")
vars.Add("IPM", "Add the interactive library to the standard lib", True)
CFLAGS = "-Os -Wall -gstabs -Wstrict-prototypes -Werror"
if "DEBUG" in vars.args.keys():
CFLAGS = "-g -ggdb -D__DEBUG__=1 " + CFLAGS
SOURCES = ["main.c", "plat.c"]
PY_SOURCES = ["main.py"]
PM_LIB_ROOT = ["pmvm_%s" % vars.args[... | ajibawa-2023/Python-Code-Large/train/row_90571 | 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_90571:Expr_L1_C0", "label": "Import()", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0476, 0.0476, 0, 0.66, 0.0, 248, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "Import", "arg_names": [], "import_names": [], "rhs_call_name": "Impor... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90571:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90571:Assign_L7_C4"}] |
# This file is Copyright 2011 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90572 | 1 | 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_90572:Assign_L13_C0", "label": "PM_FEATURES =", "type": "assigned_variable", "loc": [13, 32], "level": 0, "parent": null, "vector": [14, 0, 0.7031, 0.625, 0, 0.66, 0.0, 965, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "PM_FEATURES", "arg_names": [], "import_names": [], "... | [] |
# This file is Copyright 2011 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
#... | ajibawa-2023/Python-Code-Large/train/row_90573 | 2 | 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_90573:Import_L18_C0", "label": "ipm import ipm", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.9474, 0.0526, 0, 0.66, 0.0, 327, 0, 1, 0, 0, 327, 0, 0], "semantic": {"name": "ipm", "arg_names": [], "import_names": ["ipm"], "rhs_call_na... | [] |
Import("vars")
vars.Add("IPM", "Add the interactive library to the standard lib", True)
CFLAGS = "-Os -Wall -gstabs -Wstrict-prototypes -Werror"
if "DEBUG" in vars.args.keys():
CFLAGS = "-g -ggdb -D__DEBUG__=1 " + CFLAGS
SOURCES = ["main.c", "plat.c"]
PY_SOURCES = ["main.py"]
PM_LIB_ROOT = ["pmvm_%s" % vars.args[... | ajibawa-2023/Python-Code-Large/train/row_90574 | 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_90574:Expr_L1_C0", "label": "Import()", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0476, 0.0476, 0, 0.66, 0.0, 248, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "Import", "arg_names": [], "import_names": [], "rhs_call_name": "Impor... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90574:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90574:Assign_L7_C4"}] |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90575 | 1 | 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_90575:Assign_L13_C0", "label": "PM_FEATURES =", "type": "assigned_variable", "loc": [13, 32], "level": 0, "parent": null, "vector": [14, 0, 0.7031, 0.625, 0, 0.66, 0.0, 965, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "PM_FEATURES", "arg_names": [], "import_names": [], "... | [] |
# This file is Copyright 2006 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
#... | ajibawa-2023/Python-Code-Large/train/row_90576 | 7 | 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_90576:Expr_L16_C0", "label": "expression", "type": "expression", "loc": [16, 18], "level": 0, "parent": null, "vector": [8, 0, 0.1753, 0.0309, 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_90576:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90576:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90576:FunctionDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90576:Expr_L61_C4"}] |
import os
Import("vars")
vars.Add("IPM", "Add the interactive library to the standard lib", True)
vars.Add("MCU", "Type of ARM device; the arg to -mmcu.", "arm7tdmi")
vars.Add("SUBMDL", "The sub-model of ARM device.", "AT91SAM7S64")
vars.Add("NM", "", "arm-elf-nm")
vars.Add("OBJCOPY", "", "arm-elf-objcopy")
vars.Add(... | ajibawa-2023/Python-Code-Large/train/row_90577 | 25 | 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_90577:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0204, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90577:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90577:Assign_L18_C4"}] |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90578 | 1 | 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_90578:Assign_L13_C0", "label": "PM_FEATURES =", "type": "assigned_variable", "loc": [13, 32], "level": 0, "parent": null, "vector": [14, 0, 0.7031, 0.625, 0, 0.66, 0.0, 965, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "PM_FEATURES", "arg_names": [], "import_names": [], "... | [] |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
#... | ajibawa-2023/Python-Code-Large/train/row_90579 | 2 | 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_90579:Import_L13_C0", "label": "ipm import ipm", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.8667, 0.0667, 0, 0.66, 0.0, 327, 0, 1, 0, 0, 327, 0, 0], "semantic": {"name": "ipm", "arg_names": [], "import_names": ["ipm"], "rhs_call_na... | [] |
# This file is Copyright 2006 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
#... | ajibawa-2023/Python-Code-Large/train/row_90580 | 13 | 444 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90580:Expr_L30_C0", "label": "expression", "type": "expression", "loc": [30, 35], "level": 0, "parent": null, "vector": [8, 0, 0.0732, 0.0135, 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_90580:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90580:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90580:FunctionDef_L168_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90580:Expr_L169_C4"}, {"f": "ajibawa-2023/Python-Code... |
# This file is Copyright 2006 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
#... | ajibawa-2023/Python-Code-Large/train/row_90581 | 23 | 138 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90581:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1486, 0.0435, 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_90581:If_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90581:Import_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90581:If_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90581:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row... |
import os
Import("vars")
vars.Add("IPM", "Add the interactive library to the standard lib", True)
vars.Add("MCU", "Type of AVR device; the arg to -mmcu.", "atmega103")
vars.Add("F_CPU", "Operating frequency of the AVR device.", "4000000UL")
vars.Add("NM", "", "avr-nm")
vars.Add("OBJCOPY", "", "avr-objcopy")
vars.Add(... | ajibawa-2023/Python-Code-Large/train/row_90582 | 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_90582:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0213, 0.0213, 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_90582:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90582:Assign_L18_C4"}] |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90583 | 5 | 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_90583:Expr_L17_C0", "label": "print()", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.7083, 0.0417, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "prin... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90583:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90583:Expr_L21_C4"}] |
# This file is Copyright 2009 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90584 | 6 | 31 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90584:Assign_L18_C0", "label": "s1 =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.5806, 0.0323, 0, 0.66, 0.0, 745, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "s1", "arg_names": [], "import_names": [], "rhs_call_name": "... | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90585 | 2 | 22 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90585:Import_L18_C0", "label": "dict import dict", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.8182, 0.0455, 0, 0.66, 0.0, 827, 0, 1, 0, 0, 827, 0, 0], "semantic": {"name": "dict", "arg_names": [], "import_names": ["dict"], "rhs_cal... | [] |
# This file is Copyright 2007 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
#... | ajibawa-2023/Python-Code-Large/train/row_90586 | 4 | 17 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90586:ClassDef_L13_C0", "label": "digital_io", "type": "class", "loc": [13, 17], "level": 0, "parent": null, "vector": [3, 0, 0.8824, 0.2941, 0, 0.66, 0.0, 928, 0, 2, 0, 0, 186, 0, 0], "semantic": {"name": "digital_io", "arg_names": [], "import_names": [], "rhs_call_nam... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90586:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90586:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90586:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90586:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Pytho... |
# This file is Copyright 2009 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90587 | 0 | 35 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [] | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90588 | 9 | 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_90588:FunctionDef_L18_C0", "label": "foo1", "type": "function", "loc": [18, 19], "level": 0, "parent": null, "vector": [2, 0, 0.3854, 0.0417, 0, 0.66, 0.0, 331, 0, 3, 1, 0, 0, 0, 0], "semantic": {"name": "foo1", "arg_names": ["a", "b", "c"], "import_names": [], "rhs_cal... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90588:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90588:Return_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90588:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90588:Return_L30_C4"}, {"f": "ajibawa-2023/Python-Co... |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90589 | 3 | 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_90589:Import_L18_C0", "label": "string import string", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.5625, 0.0312, 0, 0.66, 0.0, 890, 0, 1, 0, 0, 890, 0, 0], "semantic": {"name": "string", "arg_names": [], "import_names": ["string"], ... | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90590 | 8 | 34 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90590:FunctionDef_L20_C0", "label": "foo1", "type": "function", "loc": [20, 21], "level": 0, "parent": null, "vector": [2, 0, 0.6029, 0.0588, 0, 0.66, 0.0, 331, 0, 2, 1, 0, 0, 0, 0], "semantic": {"name": "foo1", "arg_names": ["a", "b"], "import_names": [], "rhs_call_nam... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90590:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90590:Return_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90590:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90590:Return_L26_C4"}, {"f": "ajibawa-2023/Python-Co... |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90591 | 11 | 39 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90591:FunctionDef_L19_C0", "label": "a", "type": "function", "loc": [19, 23], "level": 0, "parent": null, "vector": [2, 0, 0.5385, 0.1282, 0, 0.66, 0.0, 475, 0, 2, 1, 0, 0, 0, 0], "semantic": {"name": "a", "arg_names": ["a1", "a2"], "import_names": [], "rhs_call_name": ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90591:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90591:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90591:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90591:Return_L23_C4"}, {"f": "ajibawa-2023/Python-Code... |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90592 | 12 | 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_90592:Assign_L25_C0", "label": "s =", "type": "assigned_variable", "loc": [25, 25], "level": 0, "parent": null, "vector": [14, 0, 0.4386, 0.0175, 0, 0.66, 0.0, 553, 4, 0, 0, 0, 0, 0, 0], "semantic": {"name": "s", "arg_names": [], "import_names": [], "rhs_call_name": "",... | [] |
# This file is Copyright 2009 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90593 | 4 | 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_90593:Assign_L18_C0", "label": "s1 =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.6207, 0.0345, 0, 0.66, 0.0, 745, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "s1", "arg_names": [], "import_names": [], "rhs_call_name": "... | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90594 | 4 | 22 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90594:Import_L18_C0", "label": "sys import sys", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.8182, 0.0455, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90594:If_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90594:Expr_L22_C4"}] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90595 | 6 | 27 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90595:Import_L18_C0", "label": "dict import dict", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.6667, 0.037, 0, 0.66, 0.0, 827, 0, 1, 0, 0, 827, 0, 0], "semantic": {"name": "dict", "arg_names": [], "import_names": ["dict"], "rhs_call... | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90596 | 23 | 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_90596:Expr_L19_C0", "label": "print()", "type": "expression", "loc": [19, 19], "level": 0, "parent": null, "vector": [8, 0, 0.322, 0.0169, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90596:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90596:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90596:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90596:Expr_L22_C8"}, {"f": "ajibawa-2023/Python-Co... |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90597 | 10 | 36 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90597:Import_L20_C0", "label": "sys import sys", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.5556, 0.0278, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90598 | 1 | 21 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90598:Import_L19_C0", "label": "sys import sys", "type": "import", "loc": [19, 19], "level": 0, "parent": null, "vector": [1, 0, 0.9048, 0.0476, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90599 | 9 | 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_90599:Assign_L18_C0", "label": "kn1 =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.5625, 0.0312, 0, 0.66, 0.0, 556, 4, 0, 0, 0, 0, 0, 0], "semantic": {"name": "kn1", "arg_names": [], "import_names": [], "rhs_call_name":... | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90600 | 21 | 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_90600:Import_L18_C0", "label": "sys import sys", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.375, 0.0208, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_nam... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90600:While_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90600:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90600:While_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90600:While_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/trai... |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90601 | 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_90601:Import_L17_C0", "label": "list import list", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.5862, 0.0345, 0, 0.66, 0.0, 430, 0, 1, 0, 0, 430, 0, 0], "semantic": {"name": "list", "arg_names": [], "import_names": ["list"], "rhs_cal... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90601:For_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90601:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90601:For_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90601:Expr_L23_C4"}] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90602 | 7 | 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_90602:Assign_L23_C0", "label": "s =", "type": "assigned_variable", "loc": [23, 23], "level": 0, "parent": null, "vector": [14, 0, 0.371, 0.0161, 0, 0.66, 0.0, 553, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "s", "arg_names": [], "import_names": [], "rhs_call_name": "", ... | [] |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90603 | 4 | 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_90603:FunctionDef_L13_C0", "label": "bar1", "type": "function", "loc": [13, 27], "level": 0, "parent": null, "vector": [2, 0, 0.6667, 0.5, 0, 0.66, 0.0, 102, 0, 0, 0, 0, 0, 0, 0], "semantic": {"name": "bar1", "arg_names": [], "import_names": [], "rhs_call_name": "", "an... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90603:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90603:Expr_L14_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90603:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90603:Return_L30_C3"}] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90604 | 14 | 76 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90604:Assign_L28_C0", "label": "c = ord()", "type": "assigned_variable", "loc": [28, 28], "level": 0, "parent": null, "vector": [14, 0, 0.3684, 0.0132, 0, 0.66, 0.2308, 411, 3, 1, 0, 0, 171, 10, 1], "semantic": {"name": "c", "arg_names": [], "import_names": [], "rhs_cal... | [] |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90605 | 3 | 20 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90605:ImportFrom_L17_C0", "label": "from t350b import *", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.85, 0.05, 0, 0.66, 0.0, 865, 0, 1, 0, 0, 865, 0, 0], "semantic": {"name": "t350b", "arg_names": [], "import_names": ["*"], "rhs_ca... | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90606 | 13 | 39 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90606:Import_L23_C0", "label": "sys import sys", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.5897, 0.0256, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90607 | 5 | 45 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90607:Expr_L20_C0", "label": "expression", "type": "expression", "loc": [20, 26], "level": 0, "parent": null, "vector": [8, 0, 0.5111, 0.1556, 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_90607:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90607:Expr_L32_C4"}] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90608 | 18 | 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_90608:Import_L18_C0", "label": "sys import sys", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.2812, 0.0156, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90608:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90608:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90608:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90608:Return_L23_C8"}, {"f": "ajibawa-2023/Python-... |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90609 | 23 | 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_90609:Assign_L23_C0", "label": "a =", "type": "assigned_variable", "loc": [23, 23], "level": 0, "parent": null, "vector": [14, 0, 0.3286, 0.0143, 0, 0.66, 0.0, 475, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "a", "arg_names": [], "import_names": [], "rhs_call_name": "",... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90609:For_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90609:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90609:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90609:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90610 | 13 | 34 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90610:FunctionDef_L18_C0", "label": "divzero", "type": "function", "loc": [18, 20], "level": 0, "parent": null, "vector": [2, 0, 0.5588, 0.0882, 0, 0.66, 0.0, 574, 0, 1, 0, 0, 0, 0, 1], "semantic": {"name": "divzero", "arg_names": ["n"], "import_names": [], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90610:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90610:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90610:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90610:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code... |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90611 | 1 | 17 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90611:Assign_L17_C0", "label": "_foo =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 1.0, 0.0588, 0, 0.66, 0.0, 187, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "_foo", "arg_names": [], "import_names": [], "rhs_call_name": ... | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90612 | 4 | 22 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90612:FunctionDef_L18_C0", "label": "foo", "type": "function", "loc": [18, 19], "level": 0, "parent": null, "vector": [2, 0, 0.8409, 0.0909, 0, 0.66, 0.0, 528, 0, 1, 1, 0, 0, 0, 0], "semantic": {"name": "foo", "arg_names": ["n"], "import_names": [], "rhs_call_name": "",... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90612:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90612:Return_L19_C4"}] |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90613 | 4 | 33 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90613:Assign_L20_C0", "label": "d =", "type": "assigned_variable", "loc": [20, 20], "level": 0, "parent": null, "vector": [14, 0, 0.6061, 0.0303, 0, 0.66, 0.0, 355, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "d", "arg_names": [], "import_names": [], "rhs_call_name": "",... | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90614 | 14 | 95 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90614:Assign_L18_C0", "label": "b0 = bytearray()", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1895, 0.0105, 0, 0.66, 0.0, 728, 3, 1, 0, 0, 528, 10, 1], "semantic": {"name": "b0", "arg_names": [], "import_names": [], "rh... | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90615 | 3 | 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_90615:Import_L21_C0", "label": "list import list", "type": "import", "loc": [21, 21], "level": 0, "parent": null, "vector": [1, 0, 0.84, 0.04, 0, 0.66, 0.0, 430, 0, 1, 0, 0, 430, 0, 0], "semantic": {"name": "list", "arg_names": [], "import_names": ["list"], "rhs_call_na... | [] |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90616 | 9 | 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_90616:Expr_L17_C0", "label": "print()", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.0312, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "prin... | [] |
# This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90617 | 10 | 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_90617:Assign_L18_C0", "label": "e = filter()", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.383, 0.0213, 0, 0.66, 0.0, 175, 3, 2, 0, 0, 526, 10, 2], "semantic": {"name": "e", "arg_names": [], "import_names": [], "rhs_call... | [] |
# This file is Copyright 2003 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | ajibawa-2023/Python-Code-Large/train/row_90618 | 6 | 35 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90618:FunctionDef_L21_C0", "label": "noneify", "type": "function", "loc": [21, 22], "level": 0, "parent": null, "vector": [2, 0, 0.6143, 0.0571, 0, 0.66, 0.0, 541, 0, 1, 1, 0, 0, 0, 0], "semantic": {"name": "noneify", "arg_names": ["a"], "import_names": [], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_90618:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90618:Return_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90618:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90618:Return_L31_C4"}] |
#
# NOTICE: This does not work yet.
#
import os
vars = Variables()
vars.args["PLATFORM"] = "desktop"
vars.Add("IPM", "Add the interactive library to the standard lib", True)
CFLAGS = "-g -ggdb -D__DEBUG__=1 -DHEAP_SIZE=$HEAP_SIZE " \
"-Os -Wall -gstabs -Wstrict-prototypes -Werror"
#PY_SOURCES = ["main.py"]... | ajibawa-2023/Python-Code-Large/train/row_90619 | 21 | 42 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_90619:Import_L6_C0", "label": "os import os", "type": "import", "loc": [6, 6], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0238, 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_90619:For_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90619:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90619:For_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90619:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.