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/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95166 | 30 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95166:Import_L16_C0", "label": "cvarray import cvarray", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2051, 0.0128, 0, 0.66, 0.0, 192, 0, 1, 0, 0, 192, 0, 0], "semantic": {"name": "cvarray", "arg_names": [], "import_names": ["cvarray... | [] |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95167 | 18 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95167:ImportFrom_L16_C0", "label": "from ctypes import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.3636, 0.0227, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95167:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95167:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95167:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95167:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95168 | 30 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95168:Import_L16_C0", "label": "cvarray import cvarray", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2051, 0.0128, 0, 0.66, 0.0, 192, 0, 1, 0, 0, 192, 0, 0], "semantic": {"name": "cvarray", "arg_names": [], "import_names": ["cvarray... | [] |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95169 | 18 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95169:ImportFrom_L16_C0", "label": "from ctypes import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.3636, 0.0227, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95169:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95169:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95169:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95169:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95170 | 30 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95170:Import_L16_C0", "label": "cvarray import cvarray", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2051, 0.0128, 0, 0.66, 0.0, 192, 0, 1, 0, 0, 192, 0, 0], "semantic": {"name": "cvarray", "arg_names": [], "import_names": ["cvarray... | [] |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95171 | 18 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95171:ImportFrom_L16_C0", "label": "from ctypes import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.3636, 0.0227, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95171:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95171:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95171:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95171:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95172 | 30 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95172:Import_L16_C0", "label": "cvarray import cvarray", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2051, 0.0128, 0, 0.66, 0.0, 192, 0, 1, 0, 0, 192, 0, 0], "semantic": {"name": "cvarray", "arg_names": [], "import_names": ["cvarray... | [] |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95173 | 18 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95173:ImportFrom_L16_C0", "label": "from ctypes import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.3636, 0.0227, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95173:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95173:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95173:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95173:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95174 | 30 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95174:Import_L16_C0", "label": "cvarray import cvarray", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2051, 0.0128, 0, 0.66, 0.0, 192, 0, 1, 0, 0, 192, 0, 0], "semantic": {"name": "cvarray", "arg_names": [], "import_names": ["cvarray... | [] |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95175 | 18 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95175:ImportFrom_L16_C0", "label": "from ctypes import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.3636, 0.0227, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95175:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95175:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95175:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95175:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95176 | 30 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95176:Import_L16_C0", "label": "cvarray import cvarray", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2051, 0.0128, 0, 0.66, 0.0, 192, 0, 1, 0, 0, 192, 0, 0], "semantic": {"name": "cvarray", "arg_names": [], "import_names": ["cvarray... | [] |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95177 | 18 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95177:ImportFrom_L16_C0", "label": "from ctypes import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.3636, 0.0227, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95177:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95177:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95177:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95177:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95178 | 30 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95178:Import_L16_C0", "label": "cvarray import cvarray", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2051, 0.0128, 0, 0.66, 0.0, 192, 0, 1, 0, 0, 192, 0, 0], "semantic": {"name": "cvarray", "arg_names": [], "import_names": ["cvarray... | [] |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95179 | 18 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95179:ImportFrom_L16_C0", "label": "from ctypes import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.3636, 0.0227, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95179:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95179:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95179:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95179:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95180 | 30 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95180:Import_L16_C0", "label": "cvarray import cvarray", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2051, 0.0128, 0, 0.66, 0.0, 192, 0, 1, 0, 0, 192, 0, 0], "semantic": {"name": "cvarray", "arg_names": [], "import_names": ["cvarray... | [] |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95181 | 18 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95181:ImportFrom_L16_C0", "label": "from ctypes import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.3636, 0.0227, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95181:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95181:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95181:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95181:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95182 | 30 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95182:Import_L16_C0", "label": "cvarray import cvarray", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2051, 0.0128, 0, 0.66, 0.0, 192, 0, 1, 0, 0, 192, 0, 0], "semantic": {"name": "cvarray", "arg_names": [], "import_names": ["cvarray... | [] |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95183 | 18 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95183:ImportFrom_L16_C0", "label": "from ctypes import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.3636, 0.0227, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95183:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95183:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95183:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95183:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95184 | 30 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95184:Import_L16_C0", "label": "cvarray import cvarray", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2051, 0.0128, 0, 0.66, 0.0, 192, 0, 1, 0, 0, 192, 0, 0], "semantic": {"name": "cvarray", "arg_names": [], "import_names": ["cvarray... | [] |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95185 | 18 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95185:ImportFrom_L16_C0", "label": "from ctypes import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.3636, 0.0227, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95185:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95185:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95185:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95185:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95186 | 30 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95186:Import_L16_C0", "label": "cvarray import cvarray", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2051, 0.0128, 0, 0.66, 0.0, 192, 0, 1, 0, 0, 192, 0, 0], "semantic": {"name": "cvarray", "arg_names": [], "import_names": ["cvarray... | [] |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | ajibawa-2023/Python-Code-Large/train/row_95187 | 18 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95187:ImportFrom_L16_C0", "label": "from ctypes import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.3636, 0.0227, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95187:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95187:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95187:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95187:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2011 Tom SF Haines
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by... | ajibawa-2023/Python-Code-Large/train/row_95188 | 21 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95188:Import_L14_C0", "label": "lda import lda", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.2593, 0.0185, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "lda", "arg_names": [], "import_names": ["lda"], "rhs_call_na... | [] |
# -*- coding: utf-8 -*-
# Copyright 2011 Tom SF Haines
# 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 agre... | ajibawa-2023/Python-Code-Large/train/row_95189 | 67 | 139 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95189:Import_L13_C0", "label": "numpy import numpy", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.0935, 0.0072, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["numpy"], "rhs... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95189:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95189:Import_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95189:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95189:If_L19_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_951... |
# -*- coding: utf-8 -*-
# Copyright 2011 Tom SF Haines
# 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 agre... | ajibawa-2023/Python-Code-Large/train/row_95190 | 148 | 240 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95190:Import_L13_C0", "label": "math import math", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.0542, 0.0042, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_cal... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95190:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95190:Expr_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95190:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95190:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright 2011 Tom SF Haines
# 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 agre... | ajibawa-2023/Python-Code-Large/train/row_95191 | 93 | 135 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95191:Import_L13_C0", "label": "math import math", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.0963, 0.0074, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_cal... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95191:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95191:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95191:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95191:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright 2011 Tom SF Haines
# 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 agre... | ajibawa-2023/Python-Code-Large/train/row_95192 | 68 | 100 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95192:Import_L13_C0", "label": "math import math", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.13, 0.01, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95192:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95192:Expr_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95192:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95192:FunctionDef_L24_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright 2011 Tom SF Haines
# 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 agre... | ajibawa-2023/Python-Code-Large/train/row_95193 | 5 | 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_95193:ImportFrom_L13_C0", "label": "from gaussian import Gaussian", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.7647, 0.0588, 0, 0.66, 0.0, 78, 0, 1, 0, 0, 78, 0, 0], "semantic": {"name": "gaussian", "arg_names": [], "import_names":... | [] |
# -*- coding: utf-8 -*-
# Copyright 2011 Tom SF Haines
# 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 agre... | ajibawa-2023/Python-Code-Large/train/row_95194 | 35 | 69 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95194:Import_L13_C0", "label": "numpy import numpy", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.1884, 0.0145, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["numpy"], "rhs... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95194:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95194:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95194:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95194:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95195 | 28 | 51 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95195:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2941, 0.0196, 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_95195:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95195:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95195:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95195:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95196 | 12 | 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_95196:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0333, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95196:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95196:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95196:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95196:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Code copied from http://opencv.willowgarage.com/wiki/PythonInterface - license unknown, but presumed to be at least as liberal as bsd (The license for opencv.).
import cv
import numpy as np
def cv2array(im):
"""Converts a cv array to a numpy array."""
depth2dtype = {
cv.IPL_... | ajibawa-2023/Python-Code-Large/train/row_95197 | 18 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95197:Import_L7_C0", "label": "cv import cv", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1296, 0.0185, 0, 0.66, 0.0, 492, 0, 1, 0, 0, 492, 0, 0], "semantic": {"name": "cv", "arg_names": [], "import_names": ["cv"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95197:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95197:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95197:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95197:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95198 | 55 | 103 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95198:Import_L15_C0", "label": "multiprocessing import mp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1456, 0.0097, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "multiprocessing", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95198:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95198:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95198:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95198:While_L27_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95199 | 3 | 80 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95199:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0125, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95200 | 2 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95200:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1923, 0.0128, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95201 | 28 | 51 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95201:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2941, 0.0196, 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_95201:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95201:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95201:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95201:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95202 | 12 | 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_95202:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0333, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95202:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95202:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95202:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95202:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Code copied from http://opencv.willowgarage.com/wiki/PythonInterface - license unknown, but presumed to be at least as liberal as bsd (The license for opencv.).
import cv
import numpy as np
def cv2array(im):
"""Converts a cv array to a numpy array."""
depth2dtype = {
cv.IPL_... | ajibawa-2023/Python-Code-Large/train/row_95203 | 18 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95203:Import_L7_C0", "label": "cv import cv", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1296, 0.0185, 0, 0.66, 0.0, 492, 0, 1, 0, 0, 492, 0, 0], "semantic": {"name": "cv", "arg_names": [], "import_names": ["cv"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95203:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95203:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95203:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95203:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95204 | 55 | 103 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95204:Import_L15_C0", "label": "multiprocessing import mp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1456, 0.0097, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "multiprocessing", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95204:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95204:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95204:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95204:While_L27_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95205 | 3 | 80 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95205:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0125, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95206 | 2 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95206:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1923, 0.0128, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95207 | 28 | 51 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95207:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2941, 0.0196, 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_95207:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95207:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95207:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95207:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95208 | 12 | 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_95208:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0333, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95208:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95208:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95208:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95208:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Code copied from http://opencv.willowgarage.com/wiki/PythonInterface - license unknown, but presumed to be at least as liberal as bsd (The license for opencv.).
import cv
import numpy as np
def cv2array(im):
"""Converts a cv array to a numpy array."""
depth2dtype = {
cv.IPL_... | ajibawa-2023/Python-Code-Large/train/row_95209 | 18 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95209:Import_L7_C0", "label": "cv import cv", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1296, 0.0185, 0, 0.66, 0.0, 492, 0, 1, 0, 0, 492, 0, 0], "semantic": {"name": "cv", "arg_names": [], "import_names": ["cv"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95209:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95209:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95209:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95209:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95210 | 55 | 103 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95210:Import_L15_C0", "label": "multiprocessing import mp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1456, 0.0097, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "multiprocessing", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95210:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95210:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95210:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95210:While_L27_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95211 | 3 | 80 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95211:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0125, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95212 | 2 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95212:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1923, 0.0128, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95213 | 28 | 51 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95213:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2941, 0.0196, 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_95213:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95213:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95213:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95213:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95214 | 12 | 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_95214:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0333, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95214:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95214:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95214:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95214:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Code copied from http://opencv.willowgarage.com/wiki/PythonInterface - license unknown, but presumed to be at least as liberal as bsd (The license for opencv.).
import cv
import numpy as np
def cv2array(im):
"""Converts a cv array to a numpy array."""
depth2dtype = {
cv.IPL_... | ajibawa-2023/Python-Code-Large/train/row_95215 | 18 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95215:Import_L7_C0", "label": "cv import cv", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1296, 0.0185, 0, 0.66, 0.0, 492, 0, 1, 0, 0, 492, 0, 0], "semantic": {"name": "cv", "arg_names": [], "import_names": ["cv"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95215:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95215:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95215:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95215:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95216 | 55 | 103 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95216:Import_L15_C0", "label": "multiprocessing import mp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1456, 0.0097, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "multiprocessing", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95216:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95216:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95216:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95216:While_L27_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95217 | 3 | 80 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95217:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0125, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95218 | 2 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95218:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1923, 0.0128, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95219 | 28 | 51 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95219:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2941, 0.0196, 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_95219:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95219:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95219:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95219:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95220 | 12 | 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_95220:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0333, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95220:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95220:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95220:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95220:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Code copied from http://opencv.willowgarage.com/wiki/PythonInterface - license unknown, but presumed to be at least as liberal as bsd (The license for opencv.).
import cv
import numpy as np
def cv2array(im):
"""Converts a cv array to a numpy array."""
depth2dtype = {
cv.IPL_... | ajibawa-2023/Python-Code-Large/train/row_95221 | 18 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95221:Import_L7_C0", "label": "cv import cv", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1296, 0.0185, 0, 0.66, 0.0, 492, 0, 1, 0, 0, 492, 0, 0], "semantic": {"name": "cv", "arg_names": [], "import_names": ["cv"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95221:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95221:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95221:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95221:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95222 | 55 | 103 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95222:Import_L15_C0", "label": "multiprocessing import mp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1456, 0.0097, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "multiprocessing", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95222:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95222:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95222:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95222:While_L27_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95223 | 3 | 80 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95223:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0125, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95224 | 2 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95224:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1923, 0.0128, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95225 | 28 | 51 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95225:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2941, 0.0196, 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_95225:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95225:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95225:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95225:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95226 | 12 | 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_95226:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0333, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95226:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95226:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95226:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95226:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Code copied from http://opencv.willowgarage.com/wiki/PythonInterface - license unknown, but presumed to be at least as liberal as bsd (The license for opencv.).
import cv
import numpy as np
def cv2array(im):
"""Converts a cv array to a numpy array."""
depth2dtype = {
cv.IPL_... | ajibawa-2023/Python-Code-Large/train/row_95227 | 18 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95227:Import_L7_C0", "label": "cv import cv", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1296, 0.0185, 0, 0.66, 0.0, 492, 0, 1, 0, 0, 492, 0, 0], "semantic": {"name": "cv", "arg_names": [], "import_names": ["cv"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95227:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95227:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95227:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95227:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95228 | 55 | 103 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95228:Import_L15_C0", "label": "multiprocessing import mp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1456, 0.0097, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "multiprocessing", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95228:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95228:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95228:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95228:While_L27_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95229 | 3 | 80 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95229:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0125, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95230 | 2 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95230:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1923, 0.0128, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95231 | 28 | 51 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95231:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2941, 0.0196, 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_95231:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95231:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95231:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95231:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95232 | 12 | 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_95232:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0333, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95232:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95232:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95232:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95232:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Code copied from http://opencv.willowgarage.com/wiki/PythonInterface - license unknown, but presumed to be at least as liberal as bsd (The license for opencv.).
import cv
import numpy as np
def cv2array(im):
"""Converts a cv array to a numpy array."""
depth2dtype = {
cv.IPL_... | ajibawa-2023/Python-Code-Large/train/row_95233 | 18 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95233:Import_L7_C0", "label": "cv import cv", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1296, 0.0185, 0, 0.66, 0.0, 492, 0, 1, 0, 0, 492, 0, 0], "semantic": {"name": "cv", "arg_names": [], "import_names": ["cv"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95233:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95233:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95233:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95233:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95234 | 55 | 103 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95234:Import_L15_C0", "label": "multiprocessing import mp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1456, 0.0097, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "multiprocessing", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95234:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95234:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95234:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95234:While_L27_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95235 | 3 | 80 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95235:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0125, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95236 | 2 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95236:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1923, 0.0128, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95237 | 28 | 51 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95237:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2941, 0.0196, 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_95237:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95237:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95237:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95237:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95238 | 12 | 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_95238:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0333, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95238:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95238:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95238:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95238:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Code copied from http://opencv.willowgarage.com/wiki/PythonInterface - license unknown, but presumed to be at least as liberal as bsd (The license for opencv.).
import cv
import numpy as np
def cv2array(im):
"""Converts a cv array to a numpy array."""
depth2dtype = {
cv.IPL_... | ajibawa-2023/Python-Code-Large/train/row_95239 | 18 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95239:Import_L7_C0", "label": "cv import cv", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1296, 0.0185, 0, 0.66, 0.0, 492, 0, 1, 0, 0, 492, 0, 0], "semantic": {"name": "cv", "arg_names": [], "import_names": ["cv"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95239:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95239:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95239:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95239:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95240 | 55 | 103 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95240:Import_L15_C0", "label": "multiprocessing import mp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1456, 0.0097, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "multiprocessing", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95240:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95240:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95240:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95240:While_L27_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95241 | 3 | 80 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95241:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0125, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95242 | 2 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95242:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1923, 0.0128, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95243 | 28 | 51 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95243:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2941, 0.0196, 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_95243:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95243:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95243:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95243:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95244 | 12 | 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_95244:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0333, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95244:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95244:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95244:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95244:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Code copied from http://opencv.willowgarage.com/wiki/PythonInterface - license unknown, but presumed to be at least as liberal as bsd (The license for opencv.).
import cv
import numpy as np
def cv2array(im):
"""Converts a cv array to a numpy array."""
depth2dtype = {
cv.IPL_... | ajibawa-2023/Python-Code-Large/train/row_95245 | 18 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95245:Import_L7_C0", "label": "cv import cv", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1296, 0.0185, 0, 0.66, 0.0, 492, 0, 1, 0, 0, 492, 0, 0], "semantic": {"name": "cv", "arg_names": [], "import_names": ["cv"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95245:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95245:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95245:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95245:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95246 | 55 | 103 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95246:Import_L15_C0", "label": "multiprocessing import mp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1456, 0.0097, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "multiprocessing", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95246:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95246:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95246:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95246:While_L27_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95247 | 3 | 80 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95247:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0125, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95248 | 2 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95248:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1923, 0.0128, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95249 | 28 | 51 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95249:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2941, 0.0196, 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_95249:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95249:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95249:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95249:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95250 | 12 | 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_95250:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0333, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95250:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95250:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95250:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95250:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Code copied from http://opencv.willowgarage.com/wiki/PythonInterface - license unknown, but presumed to be at least as liberal as bsd (The license for opencv.).
import cv
import numpy as np
def cv2array(im):
"""Converts a cv array to a numpy array."""
depth2dtype = {
cv.IPL_... | ajibawa-2023/Python-Code-Large/train/row_95251 | 18 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95251:Import_L7_C0", "label": "cv import cv", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1296, 0.0185, 0, 0.66, 0.0, 492, 0, 1, 0, 0, 492, 0, 0], "semantic": {"name": "cv", "arg_names": [], "import_names": ["cv"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95251:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95251:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95251:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95251:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95252 | 55 | 103 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95252:Import_L15_C0", "label": "multiprocessing import mp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1456, 0.0097, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "multiprocessing", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95252:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95252:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95252:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95252:While_L27_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95253 | 3 | 80 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95253:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0125, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95254 | 2 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95254:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1923, 0.0128, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95255 | 28 | 51 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95255:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2941, 0.0196, 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_95255:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95255:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95255:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95255:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95256 | 12 | 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_95256:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0333, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95256:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95256:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95256:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95256:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Code copied from http://opencv.willowgarage.com/wiki/PythonInterface - license unknown, but presumed to be at least as liberal as bsd (The license for opencv.).
import cv
import numpy as np
def cv2array(im):
"""Converts a cv array to a numpy array."""
depth2dtype = {
cv.IPL_... | ajibawa-2023/Python-Code-Large/train/row_95257 | 18 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95257:Import_L7_C0", "label": "cv import cv", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1296, 0.0185, 0, 0.66, 0.0, 492, 0, 1, 0, 0, 492, 0, 0], "semantic": {"name": "cv", "arg_names": [], "import_names": ["cv"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95257:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95257:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95257:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95257:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95258 | 55 | 103 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95258:Import_L15_C0", "label": "multiprocessing import mp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1456, 0.0097, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "multiprocessing", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95258:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95258:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95258:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95258:While_L27_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95259 | 3 | 80 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95259:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0125, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95260 | 2 | 78 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95260:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1923, 0.0128, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95261 | 28 | 51 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95261:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2941, 0.0196, 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_95261:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95261:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95261:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95261:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2010, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95262 | 12 | 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_95262:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0333, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95262:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95262:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95262:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95262:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Code copied from http://opencv.willowgarage.com/wiki/PythonInterface - license unknown, but presumed to be at least as liberal as bsd (The license for opencv.).
import cv
import numpy as np
def cv2array(im):
"""Converts a cv array to a numpy array."""
depth2dtype = {
cv.IPL_... | ajibawa-2023/Python-Code-Large/train/row_95263 | 18 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95263:Import_L7_C0", "label": "cv import cv", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1296, 0.0185, 0, 0.66, 0.0, 492, 0, 1, 0, 0, 492, 0, 0], "semantic": {"name": "cv", "arg_names": [], "import_names": ["cv"], "rhs_call_name": ""... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95263:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95263:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95263:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95263:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95264 | 55 | 103 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95264:Import_L15_C0", "label": "multiprocessing import mp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1456, 0.0097, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "multiprocessing", "arg_names": [], "import_names"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_95264:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95264:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_95264:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_95264:While_L27_C2"}, {"f": "ajibawa-2023/Python-Code-... |
# -*- coding: utf-8 -*-
# Copyright (c) 2011, Tom SF Haines
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of... | ajibawa-2023/Python-Code-Large/train/row_95265 | 3 | 80 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_95265:ImportFrom_L15_C0", "label": "from utils.start_cpp import start_cpp", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0125, 0, 0.66, 0.0, 972, 0, 1, 0, 0, 972, 0, 0], "semantic": {"name": "utils.start_cpp", "arg_names": []... | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.