query_name
stringlengths
13
55
code_file_path
stringlengths
14
194
context_blocks
list
answer_spans
list
supporting_fact_spans
list
example_type
int8
0
1
single_hop
bool
2 classes
subtokenized_input_sequence
list
label_sequence
list
Unused import
openworm/PyOpenWorm/tests/MuscleTest.py
[ { "content": "from __future__ import print_function\nimport sys\nsys.path.insert(0,\".\")\nimport unittest\nimport neuroml\nimport neuroml.writers as writers\nimport PyOpenWorm\nfrom PyOpenWorm import *\nimport networkx\nimport rdflib\nimport rdflib as R\nimport pint as Q\nimport os\nimport subprocess as SP\nim...
[ { "span": "import unittest", "start_line": 3, "start_column": 0, "end_line": 3, "end_column": 15 }, { "span": "import neuroml", "start_line": 4, "start_column": 0, "end_line": 4, "end_column": 14 }, { "span": "import neuroml.writers as writers", "start_line": ...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "\\u\\u", "future\\u\\u_", "import_", "print", "\\u", "function_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "sys_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "sys_", "._", "path_", "._", "inse...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 2, 0, 1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 2, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 2, 0, 1, 2...
Unused local variable
ericholscher/django-test-utils/test_utils/test_runners/keep_database.py
[ { "content": "def run_tests(test_labels, verbosity=1, interactive=True, extra_tests=[]):\n \"\"\"\n worsk exactly as per normal test\n but only creates the test_db if it doesn't yet exist\n and does not destroy it when done\n tables are flushed and fixtures loaded between tests as per usual\n ...
[ { "span": "cursor ", "start_line": 77, "start_column": 8, "end_line": 77, "end_column": 14 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "run", "\\u", "tests_", "(_", "test\\u", "labels_", ",_", "verbosity_", "=_", "1_", ",_", "interactive_", "=_", "True_", ",_", "extra", ...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
dieseldev/diesel/examples/test_dnosetest.py
[ { "content": "\"\"\"Here is an example test module that can be run with `dnosetests`.\n\nIt is written like a standard nose test module but the test functions are\nexecuted within the diesel event loop. That means they can fork other\ngreen threads, do network I/O and other diesel-ish things. Very handy for\nwr...
[ { "span": "import time", "start_line": 8, "start_column": 0, "end_line": 8, "end_column": 11 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\"\"\"", "Her", "e", " ", "is", " ", "an", " ", "example", " ", "test", " ", "module", " ", "tha", "t", " ", "can", " ", "be", " ", "run", " ", "with", " ", "`", "dno...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
Bouke/django-user-sessions/user_sessions/management/commands/clearsessions.py
[ { "content": "try:\n from django.contrib.sessions.management.commands.clearsessions import Command # flake8: noqa\nexcept ImportError:\n pass # not supported on Django 1.4\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 } ]
[ { "span": "from django.contrib.sessions.management.commands.clearsessions import Command ", "start_line": 1, "start_column": 4, "end_line": 1, "end_column": 81 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "try_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "from_", "django_", "._", "contrib_", "._", "sessions_", "._", "management_", "._", "commands_", "._", "cl...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ]
Variable defined multiple times
Debian/debile/debile/slave/runners/adequate.py
[ { "content": "def adequate(chroot_name, target, package_name, analysis):\n with schroot(chroot_name) as chroot:\n chroot.copy(target, \"/tmp\")\n\n out, err, ret = chroot.run([\n 'apt-get', 'install', '-y', 'adequate'\n ], user='root')\n\n os.environ['DEBIAN_FRONTEND'] ...
[ { "span": "out,", "start_line": 31, "start_column": 8, "end_line": 31, "end_column": 11 }, { "span": "err,", "start_line": 31, "start_column": 13, "end_line": 31, "end_column": 16 }, { "span": "ret ", "start_line": 31, "start_column": 18, "end_line": 3...
[ { "span": "out,", "start_line": 45, "start_column": 8, "end_line": 45, "end_column": 11 }, { "span": "err,", "start_line": 45, "start_column": 13, "end_line": 45, "end_column": 16 }, { "span": "ret ", "start_line": 45, "start_column": 18, "end_line": 4...
1
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "ade", "quat", "e_", "(_", "chroot", "\\u", "name_", ",_", "target_", ",_", "package", "\\u", "name_", ",_", "analysis_", ")_", ...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 0, 2, 0, 2...
Unused import
yajiemiao/pdnn/models/sda.py
[ { "content": "# Copyright 2013 Yajie Miao Carnegie Mellon University\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n#...
[ { "span": "import cPickle", "start_line": 15, "start_column": 0, "end_line": 15, "end_column": 14 }, { "span": "import gzip", "start_line": 16, "start_column": 0, "end_line": 16, "end_column": 11 }, { "span": "import os", "start_line": 17, "start_column": ...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "Copy", "right", " ", "2013", " ", " ", " ", " ", "Ya", "jie", " ", "Mi", "ao", " ", " ", " ", " ", "Car", "neg", "ie", " ", "Mel", "lon", " ", "Univers", ...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Imprecise assert
opencollab/debile/tests/test_flake8.py
[ { "content": " def test_flake8(self):\n flake8_analysis = flake8(self.filepath, self.firehose_results)\n content = flake8_analysis[1]\n self.assertTrue(\"missing whitespace around operator\" in content)\n\n # It think it is safe to say that the string is not 4 chars long\n ...
[ { "span": "self.assertTrue(\"missing whitespace around operator\" in content)", "start_line": 42, "start_column": 8, "end_line": 42, "end_column": 72 }, { "span": "self.assertTrue(len(content) > 4)", "start_line": 45, "start_column": 8, "end_line": 45, "end_column": 41 ...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Fla", "ke", "8", "Test", "Case_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "flake", "8_", ...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0...
Unused import
QuantSoftware/QuantSoftwareToolkit/Examples/FeatureSearch/functions.py
[ { "content": "''' Python imports '''\nimport datetime as dt\n\n''' 3rd party imports '''\nimport numpy as np\nimport pandas as pand\nimport matplotlib.pyplot as plt\n\n''' QSTK imports '''\nfrom QSTK.qstkutil import DataAccess as da\nfrom QSTK.qstkutil import qsdateutil as du\n\nfrom QSTK.qstkfeat.features impo...
[ { "span": "import datetime as dt", "start_line": 1, "start_column": 0, "end_line": 1, "end_column": 21 }, { "span": "import pandas as pand", "start_line": 5, "start_column": 0, "end_line": 5, "end_column": 21 }, { "span": "import matplotlib.pyplot as plt", "st...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "'''", " ", "Pyth", "on", " ", "import", "s", " ", "'''_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "datetime_", "as_", "dt_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "'''"...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
neurodata/ndstore/ocpca/jsonprojinfo.py
[ { "content": "#/p Copyright 2014 Open Connectome Project (http://openconnecto.me)\n# \n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n# \n# http://www.apache.org/licenses/LICE...
[ { "span": "import numpy as np", "start_line": 15, "start_column": 0, "end_line": 15, "end_column": 18 }, { "span": "import ocpcadb", "start_line": 21, "start_column": 0, "end_line": 21, "end_column": 14 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", "/", "p", " ", "Copy", "right", " ", "2014", " ", "Open", " ", "Connect", "ome", " ", "Project", " ", "(", "http", "://", "openco", "nnect", "o", ".", "me", ")_", "...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
AppScale/appscale/AppServer/lib/django-1.3/tests/regressiontests/generic_views/base.py
[ { "content": "import time\nimport unittest\n\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.http import HttpResponse\nfrom django.test import TestCase, RequestFactory\nfrom django.utils import simplejson\nfrom django.views.generic import View, TemplateView, RedirectView\n\n\n\n\n\n\n\n\n\...
[ { "span": "from django.utils import simplejson", "start_line": 6, "start_column": 0, "end_line": 6, "end_column": 35 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "time_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "unittest_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "from_", "django_", "._", "core_", "._", "exceptions_", "import_...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
appcelerator-archive/poc-nodejs-desktop/Resources/nodejs/builds/linux/node/lib/node/wafadmin/Tools/python.py
[ { "content": "@conf\ndef check_python_version(conf, minver=None):\n\t\"\"\"\n\tCheck if the python interpreter is found matching a given minimum version.\n\tminver should be a tuple, eg. to check for python >= 2.4.2 pass (2,4,2) as minver.\n\n\tIf successful, PYTHON_VERSION is defined as 'MAJOR.MINOR'\n\t(eg. '...
[ { "span": "python_LIBDEST ", "start_line": 341, "start_column": 5, "end_line": 341, "end_column": 19 }, { "span": "python_LIBDEST ", "start_line": 343, "start_column": 5, "end_line": 343, "end_column": 19 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "@_", "conf_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "def_", "check", "\\u", "python", "\\u", "version_", "(_", "conf_", ",_", "min...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
dimagi/commcare-hq/custom/_legacy/pact/api.py
[ { "content": " @method_decorator(httpdigest)\n @method_decorator(login_or_digest)\n def get(self, *args, **kwargs):\n \"\"\"\n Download prior progress note submissions for local access\n \"\"\"\n db = XFormInstance.get_db()\n couch_user = CouchUser.from_django_user(se...
[ { "span": "offset ", "start_line": 101, "start_column": 8, "end_line": 101, "end_column": 14 }, { "span": "total_count ", "start_line": 103, "start_column": 8, "end_line": 103, "end_column": 19 }, { "span": "patients_res ", "start_line": 130, "start_column...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Pac", "t", "Form", "API_", "(_", "Doma", "in", "API_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "@_", "method", "\\u", "decorator_", "(_", "http",...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
rizar/attention-lvcsr/libs/Theano/theano/sparse/sandbox/sp.py
[ { "content": " @staticmethod\n def evaluate(inshp, kshp, strides=(1, 1), nkern=1, mode='valid', ws=True):\n \"\"\"Build a sparse matrix which can be used for performing...\n * convolution: in this case, the dot product of this matrix\n with the input images will generate a stack of im...
[ { "span": "kern ", "start_line": 97, "start_column": 8, "end_line": 97, "end_column": 12 }, { "span": "z,", "start_line": 138, "start_column": 8, "end_line": 138, "end_column": 9 }, { "span": "zz ", "start_line": 138, "start_column": 11, "end_line": 13...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Convolution", "Indices_", "(_", "Op_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "@_", "staticmethod_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "def_", "evaluate_", ...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Except block handles 'BaseException'
aromanovich/kozmic-ci/tests/do_job_tests.py
[ { "content": " def test_private_project(self):\n cache_id = 'qwerty'\n cached_image = 'kozmic-cache/{}'.format(cache_id)\n\n try:\n for image_data in docker.images(cached_image):\n for repo_tag in image_data['RepoTags']:\n if repo_tag.startswi...
[ { "span": "except:", "start_line": 71, "start_column": 8, "end_line": 71, "end_column": 15 } ]
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "class_", "Test", "Do", "Job_", "(_", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "privat...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
dgraziotin/dycapo/tests/test_multiple_matching.py
[ { "content": "\"\"\"\n Copyright 2010 Daniel Graziotin <daniel.graziotin@acm.org>\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LI...
[ { "span": "import copy", "start_line": 17, "start_column": 0, "end_line": 17, "end_column": 11 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\"\"\"", "\\", "10", ";", " ", " ", " ", "Copy", "right", " ", "2010", " ", "Dan", "iel", " ", "Gra", "zi", "oti", "n", " ", "<", "dan", "iel", ".", "gra", "zi", "oti...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
cournape/Bento/bento/private/_yaku/yaku/tools/pyext.py
[ { "content": "import sys\nimport os\nimport copy\nimport distutils\nimport distutils.sysconfig\nimport re\nimport warnings\nimport errno\n\nfrom subprocess \\\n import \\\n Popen, PIPE, STDOUT\n\nfrom yaku.task_manager \\\n import \\\n topo_sort, build_dag, \\\n CompiledTaskGen, set_e...
[ { "span": "import copy", "start_line": 2, "start_column": 0, "end_line": 2, "end_column": 11 }, { "span": "from yaku.task_manager \\\n import \\\n topo_sort, build_dag, \\\n CompiledTaskGen, set_extension_hook", "start_line": 13, "start_column": 0, "end_line"...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "sys_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "os_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "copy_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "distutils_", "\\u\\u\\uNEWLINE\\u\\u\\...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unused local variable
babble/babble/include/jython/Lib/test/test_tarfile.py
[ { "content": " def test_seek(self):\n \"\"\"Test seek() method of _FileObject, incl. random reading.\n \"\"\"\n if self.sep != \"|\":\n filename = \"0-REGTYPE-TEXT\"\n self.tar.extract(filename, dirname())\n f = open(os.path.join(dirname(), filename), \"r...
[ { "span": "text ", "start_line": 124, "start_column": 12, "end_line": 124, "end_column": 16 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Read", "Test_", "(_", "Base", "Test_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "seek_", "(_", "self_", ...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Comparison of constants
babble/babble/include/jython/Lib/test/test_bool.py
[ { "content": " def test_math(self):\n self.assertEqual(+False, 0)\n self.assertIsNot(+False, False)\n self.assertEqual(-False, 0)\n self.assertIsNot(-False, False)\n self.assertEqual(abs(False), 0)\n self.assertIsNot(abs(False), False)\n self.assertEqual(+True...
[ { "span": "1==1,", "start_line": 121, "start_column": 22, "end_line": 121, "end_column": 26 }, { "span": "1==0,", "start_line": 122, "start_column": 22, "end_line": 122, "end_column": 26 }, { "span": "0<1,", "start_line": 123, "start_column": 22, "end_...
[]
1
true
[ "[CLS]_", "Compari", "son_", "of_", "constants_", "[SEP]_", "class_", "Boo", "l", "Test_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "math_", "(_", "self_", ...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
ImageEngine/gaffer/python/GafferImageUI/__init__.py
[ { "content": "##########################################################################\n#\n# Copyright (c) 2012, John Haddon. All rights reserved.\n# Copyright (c) 2012-2015, Image Engine Design Inc. All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modificat...
[ { "span": "import DisplayUI", "start_line": 39, "start_column": 0, "end_line": 39, "end_column": 16 }, { "span": "from FormatPlugValueWidget import FormatPlugValueWidget", "start_line": 40, "start_column": 0, "end_line": 40, "end_column": 55 }, { "span": "from Cha...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "###########", "###########", "###########", "###########", "###########", "###########", "######", "##", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", " ", "...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
machinalis/iepy/iepy/webui/corpus/migrations/0006_auto_20140929_1655.py
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.db import models, migrations\n\n\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content": "class Migration(migrations.Migration):\n\n dependencies = [\n ('co...
[ { "span": "from django.db import models, migrations", "start_line": 3, "start_column": 0, "end_line": 3, "end_column": 40 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "-*-", " ", "codi", "ng", ":", " ", "utf", "-", "8", " ", "-*-", "_", "\\u\\u\\uNL\\u\\u\\u_", "from_", "\\u\\u", "future\\u\\u_", "import_", "unicode", "\\u", "litera...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
statsmodels/statsmodels/statsmodels/sandbox/tools/mctools.py
[ { "content": " def histogram(self, idx=None, critval=None):\n '''calculate histogram values\n\n does not do any plotting\n\n I don't remember what I wanted here, looks similar to the new cdf\n method, but this also does a binned pdf (self.histo)\n\n\n '''\n if self.m...
[ { "span": "bins=", "start_line": 187, "start_column": 16, "end_line": 187, "end_column": 20 }, { "span": "mcres ", "start_line": 235, "start_column": 16, "end_line": 235, "end_column": 21 }, { "span": "mcres ", "start_line": 239, "start_column": 12, "e...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Stat", "Test", "MC", "_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "histogram_", "(_", "self_", ",_", "idx_", "=_", "None...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
gkno/gkno_launcher/src/gkno/pipelineConfigurationErrors.py
[ { "content": "#!/usr/bin/python\n\nfrom __future__ import print_function\n\nimport inspect\nfrom inspect import currentframe, getframeinfo\n\nimport errors\nfrom errors import *\n\nimport os\nimport sys\n\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content":...
[ { "span": "import inspect", "start_line": 4, "start_column": 0, "end_line": 4, "end_column": 14 }, { "span": "from inspect import currentframe, getframeinfo", "start_line": 5, "start_column": 0, "end_line": 5, "end_column": 46 }, { "span": "import os", "start_...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#!", "/", "usr", "/", "bin", "/", "python_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "from_", "\\u\\u", "future\\u\\u_", "import_", "print", "\\u", "function_", "\\u\\u\\uNEWLI...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 2, 0, 1, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2...
Unused import
SUSE/azurectl/test/unit/instance_data_disk_test.py
[ { "content": "import sys\nimport mock\nimport random\nfrom azure.common import AzureMissingResourceHttpError\nfrom collections import namedtuple\nfrom datetime import datetime\nfrom mock import patch\nfrom test_helper import *\n\nfrom azurectl.account.service import AzureAccount\nfrom azurectl.azurectl_exceptio...
[ { "span": "import sys", "start_line": 0, "start_column": 0, "end_line": 0, "end_column": 10 }, { "span": "from collections import namedtuple", "start_line": 4, "start_column": 0, "end_line": 4, "end_column": 34 }, { "span": "import azurectl", "start_line": 14,...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "sys_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "mock_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "random_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "azure_", "._", "common_", "impor...
[ 4, 4, 4, 4, 4, 2, 2, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
rackspace/pyrax/tests/unit/test_autoscale.py
[ { "content": " def test_mgr_replace(self):\n sg = self.scaling_group\n mgr = sg.manager\n mgr.get = Mock(return_value=sg)\n uri = \"/%s/%s/config\" % (mgr.uri_base, sg.id)\n sg.name = utils.random_unicode()\n sg.cooldown = utils.random_unicode()\n sg.min_entit...
[ { "span": "metadata ", "start_line": 395, "start_column": 8, "end_line": 395, "end_column": 16 }, { "span": "typ ", "start_line": 476, "start_column": 8, "end_line": 476, "end_column": 11 }, { "span": "typ ", "start_line": 511, "start_column": 8, "end_...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Autos", "cale", "Test_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "mgr", "\\u", "replac...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
osrg/ryu/ryu/tests/unit/ofproto/test_parser_v13.py
[ { "content": "# Copyright (C) 2014 Nippon Telegraph and Telephone Corporation.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "span": "import socket", "start_line": 20, "start_column": 0, "end_line": 20, "end_column": 13 }, { "span": "from ryu.ofproto import ofproto_v1_3_parser", "start_line": 24, "start_column": 0, "end_line": 24, "end_column": 43 }, { "span": "from ryu.ofproto import...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "C", ")", " ", "2014", " ", "Ni", "ppo", "n", " ", "Tele", "graph", " ", "and", " ", "Telephone", " ", "Cor", "porat", "ion", "._", ...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Missing call to `__init__` during object initialization
pypa/pip/pip/utils/logging.py
[ { "content": "class MaxLevelFilter(logging.Filter):\n\n", "metadata": "root.MaxLevelFilter", "header": "['module', '___EOS___']", "index": 123 }, { "content": " def __init__(self, level):\n self.level = level", "metadata": "root.MaxLevelFilter.__init__", "header": "['class'...
[ { "span": "class MaxLevelFilter(logging.Filter):", "start_line": 123, "start_column": 0, "end_line": 123, "end_column": 37 } ]
[ { "span": "def __init__(self, level):", "start_line": 125, "start_column": 4, "end_line": 125, "end_column": 30 } ]
1
false
[ "[CLS]_", "Missing", "_", "call_", "to_", " _", "`_", "\\u\\u", "init\\u\\u_", "`_", "dur", "ing_", "object_", "initialization", "_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "class_", ...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2...
Except block handles 'BaseException'
mrknow/filmkodi/plugin.video.specto/resources/lib/resolvers/uptobox.py
[ { "content": "def resolve(url):\n try:\n result = client.request(url)\n\n post = {}\n f = client.parseDOM(result, 'form', attrs = {'name': 'F1'})[0]\n k = client.parseDOM(f, 'input', ret='name', attrs = {'type': 'hidden'})\n for i in k: post.update({i: client.parseDOM(f, 'i...
[ { "span": "except:", "start_line": 47, "start_column": 12, "end_line": 47, "end_column": 19 }, { "span": "except:", "start_line": 49, "start_column": 4, "end_line": 49, "end_column": 11 }, { "span": "except:", "start_line": 62, "start_column": 4, "end_...
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "resolve_", "(_", "url_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "t...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Except block handles 'BaseException'
statsmodels/statsmodels/examples/python/interactions_anova.py
[ { "content": "\n## Interactions and ANOVA\n\n# Note: This script is based heavily on Jonathan Taylor's class notes http://www.stanford.edu/class/stats191/interactions.html\n#\n# Download and format data:\n\nfrom __future__ import print_function\nfrom statsmodels.compat import urlopen\nimport numpy as np\nnp.set...
[ { "span": "except: ", "start_line": 20, "start_column": 0, "end_line": 20, "end_column": 7 }, { "span": "except:", "start_line": 172, "start_column": 0, "end_line": 172, "end_column": 7 }, { "span": "except: ", "start_line": 217, "start_column": 0, "en...
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "##", " ", "Interaction", "s", " ", "and", " ", "ANO", "VA", "_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
pyjs/pyjs/examples/mail/Contacts.py
[ { "content": "from pyjamas.ui.Composite import Composite\nfrom pyjamas.ui.HTML import HTML\nfrom pyjamas.ui.HorizontalPanel import HorizontalPanel\nfrom pyjamas.ui.Image import Image\nfrom pyjamas.ui.PopupPanel import PopupPanel\nfrom pyjamas.ui.VerticalPanel import VerticalPanel\nfrom pyjamas.ui.Widget import ...
[ { "span": "from pyjamas.ui.Widget import Widget", "start_line": 6, "start_column": 0, "end_line": 6, "end_column": 36 }, { "span": "from MailLogger import Logger", "start_line": 8, "start_column": 0, "end_line": 8, "end_column": 29 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "pyj", "ama", "s_", "._", "ui_", "._", "Composit", "e_", "import_", "Composit", "e_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "pyj", "ama", "s_", "._", "ui_", "._", "HTML_...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
balanced/status.balancedpayments.com/venv/lib/python2.7/site-packages/twilio/compat/__init__.py
[ { "content": "\n# Those are not supported by the six library and needs to be done manually\nfrom six import binary_type\n\ntry:\n # python 3\n from urllib.parse import urlencode, urlparse, urljoin\nexcept ImportError:\n # python 2 backward compatibility\n #noinspection PyUnresolvedReferences\n fr...
[ { "span": "from six import binary_type", "start_line": 2, "start_column": 0, "end_line": 2, "end_column": 27 }, { "span": "from urllib.parse import urlencode, urlparse, urljoin", "start_line": 6, "start_column": 4, "end_line": 6, "end_column": 57 }, { "span": "fro...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Tho", "se", " ", "are", " ", "not", " ", "support", "ed", " ", "by", " ", "the", " ", "si", "x", " ", "librar", "y", " ", "and", " ", ...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
priestc/giotto/giotto/views/__init__.py
[ { "content": "import os\nimport json\nimport mimeparse\nimport inspect\n\nfrom jinja2 import Template, DebugUndefined, Environment, PackageLoader, FileSystemLoader\nfrom jinja2.exceptions import TemplateNotFound\n\nfrom giotto import get_config\nfrom giotto.exceptions import NoViewMethod\nfrom giotto.utils impo...
[ { "span": "import json", "start_line": 1, "start_column": 0, "end_line": 1, "end_column": 11 }, { "span": "from jinja2 import Template, DebugUndefined, Environment, PackageLoader, FileSystemLoader", "start_line": 5, "start_column": 0, "end_line": 5, "end_column": 89 }, ...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "os_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "json_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "mime", "parse_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "inspect_", "\\u\\u\\uNEWLI...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
adieu/allbuttonspressed/docutils/parsers/rst/directives/images.py
[ { "content": "# $Id: images.py 7062 2011-06-30 22:14:29Z milde $\n# Author: David Goodger <goodger@python.org>\n# Copyright: This module has been placed in the public domain.\n\n\"\"\"\nDirectives for figures and simple images.\n\"\"\"\n\n__docformat__ = 'reStructuredText'\n\n\nimport sys\nfrom docutils import ...
[ { "span": "import sys", "start_line": 11, "start_column": 0, "end_line": 11, "end_column": 10 }, { "span": "from docutils import nodes, utils", "start_line": 12, "start_column": 0, "end_line": 12, "end_column": 33 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "$", "Id", ":", " ", "images", ".", "py", " ", "706", "2", " ", "2011", "-0", "6", "-", "30", " ", "2", "2", ":", "14", ":", "2", "9", "Z", " ", "mil", ...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
glue-viz/glue/glue/core/qt/tests/test_style_dialog.py
[ { "content": "def test_style_dialog():\n\n # This is in part a regression test for a bug in Python 3. It is not a\n # full test of StyleDialog.\n\n session = simple_session()\n hub = session.hub\n collect = session.data_collection\n\n image = Data(label='im',\n x=[[1, 2], [3, 4...
[ { "span": "hub ", "start_line": 24, "start_column": 4, "end_line": 24, "end_column": 7 }, { "span": "collect ", "start_line": 25, "start_column": 4, "end_line": 25, "end_column": 11 }, { "span": "st ", "start_line": 32, "start_column": 4, "end_line": 3...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "style", "\\u", "dialog_", "(_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
`__eq__` not overridden when adding attributes
willhardy/django-seo/rollyourown/seo/utils.py
[ { "content": "class LazyList(list):\n \"\"\" Generic python list which is populated when items are first accessed.\n \"\"\"\n\n\n # Ensure list is only populated once\n\n # Accessing methods that require a populated field", "metadata": "root.LazyList", "header": "['module', '___EOS___']", ...
[ { "span": "class LazyList(list):", "start_line": 25, "start_column": 0, "end_line": 25, "end_column": 21 } ]
[ { "span": "self.populate ", "start_line": 40, "start_column": 12, "end_line": 40, "end_column": 25 }, { "span": "self._populated ", "start_line": 41, "start_column": 8, "end_line": 41, "end_column": 23 }, { "span": "self._populated ", "start_line": 48, "st...
1
false
[ "[CLS]_", "`_", "\\u\\u", "eq\\u\\u_", "`_", "not_", "overrid", "den_", "when_", "addin", "g_", "attributes_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "class_", "La", "zy", "List_", ...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
sakura-internet/saklient.python/saklient/errors/httpexception.py
[ { "content": "# -*- coding:utf-8 -*-\n\n# This code is automatically transpiled by Saklient Translator\n\nimport six\nimport saklient\n\nstr = six.text_type\n# module saklient.errors.httpexception\n\n \n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content":...
[ { "span": "import saklient", "start_line": 5, "start_column": 0, "end_line": 5, "end_column": 15 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "-*-", " ", "codi", "ng", ":", "utf", "-", "8", " ", "-*-", "_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Thi", "s", " ", "code", " ", "is", " ...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Except block handles 'BaseException'
coronalabs/CoronaSDK-SublimeText/debugger.py
[ { "content": "#\n# Sublime Text plugin to support Corona Editor\n#\n# Copyright (c) 2013 Corona Labs Inc. A mobile development software company. All rights reserved.\n#\n# MIT License - see https://raw.github.com/coronalabs/CoronaSDK-SublimeText/master/LICENSE\n\nimport sublime\nimport sublime_plugin\nimport os...
[ { "span": "except:", "start_line": 21, "start_column": 0, "end_line": 21, "end_column": 7 }, { "span": "except:", "start_line": 32, "start_column": 0, "end_line": 32, "end_column": 7 }, { "span": "except:", "start_line": 61, "start_column": 2, "end_lin...
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Sub", "lim", "e", " ", "Text", " ", "plugin", " ", "to", " ", "support", " ", "C...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Except block handles 'BaseException'
ipython/ipython-py3k/IPython/quarantine/ipy_jot.py
[ { "content": "def refresh_variables(ip, key=None):\n db = ip.db\n if key is None:\n keys = db.keys('jot/*')\n else:\n keys = db.keys('jot/'+key)\n for key in keys:\n # strip autorestore\n justkey = os.path.basename(key)\n print(\"Restoring from\", justkey, \"...\")...
[ { "span": "except:", "start_line": 40, "start_column": 12, "end_line": 40, "end_column": 19 }, { "span": "except:", "start_line": 99, "start_column": 4, "end_line": 99, "end_column": 11 }, { "span": "except:", "start_line": 127, "start_column": 4, "end...
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "refre", "sh", "\\u", "variables_", "(_", "ip_", ",_", "key_", "=_", "None_", ")_", ":_", "\\u\\u\\...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
cloudera/hue/desktop/core/src/desktop/migrations/0019_auto.py
[ { "content": "# -*- coding: utf-8 -*-\nfrom south.utils import datetime_utils as datetime\nfrom south.db import db\nfrom south.v2 import SchemaMigration\nfrom django.db import models\n\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content": "class Migration(Sc...
[ { "span": "from south.utils import datetime_utils as datetime", "start_line": 1, "start_column": 0, "end_line": 1, "end_column": 50 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "-*-", " ", "codi", "ng", ":", " ", "utf", "-", "8", " ", "-*-", "_", "\\u\\u\\uNL\\u\\u\\u_", "from_", "south_", "._", "utils_", "import_", "datetime", "\\u", "util...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2...
Unused import
tjguk/networkzero/networkzero/discovery.py
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Advertise and collect advertisements of network services\n\nThe discovery module offers:\n\n * A UDP broadcast socket which:\n \n - Listens for and keeps track of service adverts from this and other \n machines & processes\n - Broadcasts serv...
[ { "span": "import os, sys", "start_line": 32, "start_column": 0, "end_line": 32, "end_column": 14 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "-*-", " ", "codi", "ng", ":", " ", "utf", "-", "8", " ", "-*-", "_", "\\u\\u\\uNL\\u\\u\\u_", "\"\"\"", "Advert", "ise", " ", "and", " ", "collect", " ", "adverti...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Redundant comparison
buckket/twtxt/tests/test_models.py
[ { "content": "def test_tweet_ordering():\n now = datetime.now(timezone.utc)\n tweet_1 = Tweet(\"A\", now)\n tweet_2 = Tweet(\"B\", now + timedelta(hours=1))\n tweet_3 = Tweet(\"C\", now + timedelta(hours=2))\n tweet_4 = Tweet(\"D\", now + timedelta(hours=2))\n tweet_5 = Tweet(\"D\", now + time...
[ { "span": "tweet_1 <= tweet_2", "start_line": 79, "start_column": 11, "end_line": 79, "end_column": 29 }, { "span": "tweet_2 > tweet_1", "start_line": 80, "start_column": 11, "end_line": 80, "end_column": 28 }, { "span": "tweet_2 >= tweet_1", "start_line": 81,...
[ { "span": "tweet_1 < tweet_2", "start_line": 78, "start_column": 11, "end_line": 78, "end_column": 28 }, { "span": "not(tweet_3 <= tweet_4)", "start_line": 86, "start_column": 11, "end_line": 86, "end_column": 34 } ]
1
true
[ "[CLS]_", "Redu", "ndan", "t_", "comparison_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "tweet", "\\u", "ordering_", "(_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " ...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Except block handles 'BaseException'
uwdata/termite-data-server/web2py/gluon/shell.py
[ { "content": "def run(\n appname,\n plain=False,\n import_models=False,\n startfile=None,\n bpython=False,\n python_code=False,\n cronjob=False):\n \"\"\"\n Start interactive shell or run Python script (startfile) in web2py\n controller environment. appname is formatted like:\n\n ...
[ { "span": "except:", "start_line": 289, "start_column": 16, "end_line": 289, "end_column": 23 }, { "span": "except:", "start_line": 316, "start_column": 16, "end_line": 316, "end_column": 23 } ]
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "run_", "(_", "\\u\\u\\uNL\\u\\u\\u_", "appname_", ",_", "\\u\\u\\uNL\\u\\u\\u_", ...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
amrdraz/kodr/app/brython/www/src/Lib/test/seq_tests.py
[ { "content": " def test_constructors(self):\n l0 = []\n l1 = [0]\n l2 = [0, 1]\n\n u = self.type2test()\n u0 = self.type2test(l0)\n u1 = self.type2test(l1)\n u2 = self.type2test(l2)\n\n uu = self.type2test(u)\n uu0 = self.type2test(u0)\n u...
[ { "span": "uu ", "start_line": 101, "start_column": 8, "end_line": 101, "end_column": 10 }, { "span": "uu0 ", "start_line": 102, "start_column": 8, "end_line": 102, "end_column": 11 }, { "span": "uu1 ", "start_line": 103, "start_column": 8, "end_line":...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Common", "Test_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "#", " ", "The", " ", "type", " ", "to", " ", "be", " ", "tested", "_", "\\u\\u\\uNL\\u...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Variable defined multiple times
borg-project/borg/borg/unix/proc.py
[ { "content": "class ProcessStat(object):\n \"\"\"\n Information about a specific process.\n\n Merely a crude wrapper around the information in the /proc/<pid>/stat file.\n Read the man pages! Read the kernel source! Nothing in /proc is ever quite\n as it seems.\n \"\"\"\n\n __ticks_per_seco...
[ { "span": "priority ", "start_line": 139, "start_column": 4, "end_line": 139, "end_column": 12 } ]
[ { "span": "priority ", "start_line": 158, "start_column": 4, "end_line": 158, "end_column": 12 } ]
1
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "class_", "Process", "Stat_", "(_", "object_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", "...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
kvh/ramp/ramp/selectors.py
[ { "content": "import logging\nfrom utils import _pprint\nfrom pandas import Series, concat\nfrom scipy.stats import norm\nimport random\nimport hashlib\nimport math\nimport copy\nimport numpy as np\nfrom sklearn import cross_validation, ensemble, linear_model\n\n\n\n\n\n\n\n\n\n\n\n\n", "metadata": "root", ...
[ { "span": "from pandas import Series, concat", "start_line": 2, "start_column": 0, "end_line": 2, "end_column": 33 }, { "span": "import random", "start_line": 4, "start_column": 0, "end_line": 4, "end_column": 13 }, { "span": "import hashlib", "start_line": 5,...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "logging_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "utils_", "import_", "\\u", "pprint_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "pandas_", "import_", "Series_", ",_", "concat_", ...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 2, 0, 1, 2, 2, 2, 2, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Signature mismatch in overriding method
cloudera/hue/desktop/core/ext-py/pysaml2-2.4.0/src/saml2/authn.py
[ { "content": "class UserAuthnMethod(object):\n\n\n", "metadata": "root.UserAuthnMethod", "header": "['module', '___EOS___']", "index": 27 }, { "content": " def __init__(self, srv):\n self.srv = srv", "metadata": "root.UserAuthnMethod.__init__", "header": "['class', 'UserAut...
[ { "span": "def verify(self, request, **kwargs):", "start_line": 151, "start_column": 4, "end_line": 151, "end_column": 40 } ]
[ { "span": "def verify(self, **kwargs):", "start_line": 37, "start_column": 4, "end_line": 37, "end_column": 31 } ]
1
false
[ "[CLS]_", "Signature_", "mismatch_", "in_", "overrid", "ing_", "method_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "class_", "User", "Auth", "n", "Method_", "(_", "object_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_"...
[ 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2...
Except block handles 'BaseException'
igordejanovic/textX/textx/textx.py
[ { "content": "def str_match_SA(parser, node, children):\n try:\n to_match = children[0]\n except:\n to_match = ''\n\n # Support for autokwd metamodel param.\n if parser.metamodel.autokwd:\n match = parser.keyword_regex.match(to_match)\n if match and match.span() == (0, le...
[ { "span": "except:", "start_line": 695, "start_column": 4, "end_line": 695, "end_column": 11 }, { "span": "except:", "start_line": 714, "start_column": 4, "end_line": 714, "end_column": 11 } ]
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "str", "\\u", "match", "\\u", "SA", "_", "(_", "parser_", ",_", "node_", ",_", "children_", ")_", ...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Imprecise assert
bloomreach/briefly/tests/briefly/test_dag.py
[ { "content": " def test_no_attrs(self):\n graph_node = GraphNode()\n self.assertTrue(hasattr(graph_node, 'parents'))\n self.assertTrue(hasattr(graph_node, 'children'))\n self.assertTrue(graph_node.attributes is None)\n dummy_key = 1\n key = graph_node.unpack(dummy_key)\n self.assertTrue(ke...
[ { "span": "self.assertTrue(graph_node.attributes is None)", "start_line": 27, "start_column": 4, "end_line": 27, "end_column": 50 }, { "span": "self.assertTrue(key == dummy_key)", "start_line": 30, "start_column": 4, "end_line": 30, "end_column": 37 }, { "span": "...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Test", "Graph", "Node_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "test\\u", "no", "\\u", "attrs_", "(_", "self_", ")_", ":_",...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unreachable code
saltstack/salt/salt/client/ssh/__init__.py
[ { "content": " def run_wfunc(self):\n '''\n Execute a wrapper function\n\n Returns tuple of (json_data, '')\n '''\n # Ensure that opts/grains are up to date\n # Execute routine\n data_cache = False\n data = None\n cdir = os.path.join(self.opts['c...
[ { "span": "with salt.utils.fopen(datap, 'w+b') as fp_:", "start_line": 887, "start_column": 16, "end_line": 887, "end_column": 59 }, { "span": "with salt.utils.fopen(datap, 'rb') as fp_:", "start_line": 892, "start_column": 12, "end_line": 892, "end_column": 54 } ]
[]
1
true
[ "[CLS]_", "Unrea", "chab", "le_", "code_", "[SEP]_", "class_", "Single_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "run", "\\u", "wf", "unc_", "(_", "self_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unnecessary pass
CybOXProject/python-cybox/cybox/bindings/code_object.py
[ { "content": " def exportChildren(self, lwrite, level, namespace_='CodeObj:', name_='CodeSegmentXORType', fromsubclass_=False, pretty_print=True):\n super(CodeSegmentXORType, self).exportChildren(lwrite, level, 'CodeObj:', name_, True, pretty_print=pretty_print)\n pass", "metadata": "root.C...
[ { "span": "pass", "start_line": 65, "start_column": 8, "end_line": 65, "end_column": 12 }, { "span": "pass", "start_line": 205, "start_column": 8, "end_line": 205, "end_column": 12 }, { "span": "pass", "start_line": 278, "start_column": 8, "end_line": ...
[]
1
true
[ "[CLS]_", "Un", "necessar", "y_", "pass_", "[SEP]_", "class_", "Code", "Segme", "nt", "XO", "RT", "ype_", "(_", "cy", "box", "\\u", "common_", "._", "String", "Object", "Proper", "ty", "Type_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNEWLINE\\u\\u\\u_", ...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Except block handles 'BaseException'
CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/pymel/internal/factories.py
[ { "content": "def addCmdDocsCallback(cmdName, docstring=''):\n loadCmdDocCache()\n\n cmdInfo = cmdlist[cmdName]\n\n #docstring = cmdInfo['description'] + '\\n\\n' + '\\n'.join(textwrap.wrap(docstring.strip(), DOC_WIDTH))\n\n docstring = '\\n'.join(textwrap.wrap(cmdInfo['description'], DOC_WIDTH)) + ...
[ { "span": "except:", "start_line": 499, "start_column": 16, "end_line": 499, "end_column": 23 }, { "span": "except: ", "start_line": 505, "start_column": 16, "end_line": 505, "end_column": 23 }, { "span": "except: ", "start_line": 927, "start_column": 24, ...
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "add", "Cmd", "Docs", "Callback_", "(_", "cmd", "Name_", ",_", "docstring_",...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Modification of parameter with default
alias1/sparty/sparty_v_0.1.py
[ { "content": "def build_target(target, front_dirs=[],refine_target=[]):\n for item in front_dirs:\n refine_target.append(target+ \"/\"+ item)", "metadata": "root.build_target", "header": "['module', '___EOS___']", "index": 140 } ]
[ { "span": "refine_target.", "start_line": 142, "start_column": 24, "end_line": 142, "end_column": 37 } ]
[ { "span": "refine_target=", "start_line": 140, "start_column": 39, "end_line": 140, "end_column": 52 } ]
1
true
[ "[CLS]_", "Modifica", "tion_", "of_", "parameter_", "with_", "default_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "build", "\\u", "target_", "(_", "target_", ",_", "front", "\\u", "dirs_", "=_", "[_", ...
[ 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ]
Unused import
pybrain/pybrain/pybrain/structure/modules/__init__.py
[ { "content": "from pybrain.structure.modules.biasunit import BiasUnit\nfrom pybrain.structure.modules.gate import GateLayer, DoubleGateLayer, MultiplicationLayer, SwitchLayer\nfrom pybrain.structure.modules.gaussianlayer import GaussianLayer\nfrom pybrain.structure.modules.linearlayer import LinearLayer\nfrom p...
[ { "span": "from pybrain.structure.modules.biasunit import BiasUnit", "start_line": 0, "start_column": 0, "end_line": 0, "end_column": 55 }, { "span": "from pybrain.structure.modules.gate import GateLayer, DoubleGateLayer, MultiplicationLayer, SwitchLayer", "start_line": 1, "start...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "pyb", "rain_", "._", "structure_", "._", "modules_", "._", "bias", "unit_", "import_", "Bia", "s", "Unit_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "pyb", "rain_", "._", "s...
[ 4, 4, 4, 4, 4, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2...
Unused import
learntextvis/textkit/tests/test_filter.py
[ { "content": "import click\nfrom click.testing import CliRunner\nfrom textkit.filter.filter_punc import filterpunc\nfrom textkit.filter.filter_words import filterwords\nfrom textkit.filter.filter_lengths import filterlengths\nfrom tests.utils import create_single_output, create_multifile_output, compare_results...
[ { "span": "import click", "start_line": 0, "start_column": 0, "end_line": 0, "end_column": 12 }, { "span": "from tests.utils import create_single_output, create_multifile_output, compare_results", "start_line": 5, "start_column": 0, "end_line": 5, "end_column": 86 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "click_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "click_", "._", "testing_", "import_", "Cli", "Runner_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "text", "kit_", "._", "filter_", ...
[ 4, 4, 4, 4, 4, 2, 2, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1...
Unused import
andrew-gardner/dependsworkflow/depends/depends_data_packet.py
[ { "content": "#\n# Depends\n# Copyright (C) 2014 by Andrew Gardner & Jonas Unger. All rights reserved.\n# BSD license (LICENSE.txt for details).\n#\n\nimport os\nimport re\nimport uuid\n\nimport depends_node\nimport depends_util\n\n\n\"\"\"\nA data packet is the absolute minimum amount of information needed to...
[ { "span": "import depends_node", "start_line": 10, "start_column": 0, "end_line": 10, "end_column": 19 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Depend", "s_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "C", ")", " ", "2014", " ", "by", " ", "Andre", "w",...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Except block handles 'BaseException'
bradwright/mnml/mnml.py
[ { "content": " def dev_run(self, port=8000):\n from wsgiref.simple_server import make_server\n server = make_server('', port, self)\n print 'MNML now running on http://127.0.0.1:%s\\n' % port\n try:\n server.serve_forever()\n except:\n print 'MNML stop...
[ { "span": "except:", "start_line": 219, "start_column": 8, "end_line": 219, "end_column": 15 } ]
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "class_", "Web", "Application_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "dev", "\\u", "run_", "...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
CGATOxford/cgat/obsolete/gff2wiggle_stats.py
[ { "content": "################################################################################\n#\n# MRC FGU Computational Genomics Group\n#\n# $Id$\n#\n# Copyright (C) 2009 Andreas Heger\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Genera...
[ { "span": "import re", "start_line": 61, "start_column": 0, "end_line": 61, "end_column": 9 }, { "span": "import string", "start_line": 62, "start_column": 0, "end_line": 62, "end_column": 13 }, { "span": "import optparse", "start_line": 63, "start_column"...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "###########", "###########", "###########", "###########", "###########", "###########", "###########", "###", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", " ...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Duplicate key in dict literal
ProgVal/Limnoria/src/ircutils.py
[ { "content": "###\n# Copyright (c) 2002-2005, Jeremiah Fincher\n# Copyright (c) 2009,2011,2015 James McCoy\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of ...
[ { "span": "'352':", "start_line": 939, "start_column": 8, "end_line": 939, "end_column": 13 }, { "span": "'244':", "start_line": 1065, "start_column": 8, "end_line": 1065, "end_column": 13 } ]
[ { "span": "'352':", "start_line": 940, "start_column": 8, "end_line": 940, "end_column": 13 }, { "span": "'244':", "start_line": 1066, "start_column": 8, "end_line": 1066, "end_column": 13 } ]
1
true
[ "[CLS]_", "Duplicate", "_", "key_", "in_", "dict_", "literal_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "###", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "c", ")", " ", "2002", "-", "2005", ",", " ", "Jer", "emi", "ah", " ", ...
[ 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Module is imported more than once
pytest-dev/pytest/_pytest/pytester.py
[ { "content": "\"\"\" (disabled by default) support for testing pytest and pytest plugins. \"\"\"\nimport codecs\nimport gc\nimport os\nimport platform\nimport re\nimport subprocess\nimport sys\nimport time\nimport traceback\nfrom fnmatch import fnmatch\n\nfrom py.builtin import print_\n\nfrom _pytest._code impo...
[ { "span": "import subprocess", "start_line": 126, "start_column": 16, "end_line": 126, "end_column": 33 } ]
[ { "span": "import subprocess", "start_line": 6, "start_column": 0, "end_line": 6, "end_column": 17 } ]
1
true
[ "[CLS]_", "Module_", "is_", "imported_", "more_", "than_", "once_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\"\"\"", " ", "(", "disable", "d", " ", "by", " ", "default", ")", " ", "support", " ", "for", " ", "testi", "ng", " ", "pytest", " ", "and"...
[ 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 1, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
espeed/lightbulb/lightbulb/changelog.py
[ { "content": " def _get_diff(self):\n # git diff is NOT sorted by modified time\n #command = \"git diff --cached --name-only\"\n git_dir = self.path.get_git_dir()\n working_dir = self.path.get_working_dir()\n command = \"git diff --cached --name-status\"\n return se...
[ { "span": "git_dir ", "start_line": 73, "start_column": 8, "end_line": 73, "end_column": 15 }, { "span": "working_dir ", "start_line": 74, "start_column": 8, "end_line": 74, "end_column": 19 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Change", "Log_", "(_", "Pickl", "e", "DB_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u", "get", "\\u", "diff_", "(_", "self_", ")_", ...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Except block handles 'BaseException'
jolynch/mit-tab/mittab/libs/data_import/import_rooms.py
[ { "content": "def import_rooms(fileToImport):\n try:\n sh = xlrd.open_workbook(filename=None, file_contents=fileToImport.read()).sheet_by_index(0)\n except:\n return [\"ERROR: Please upload an .xlsx file. This filetype is not compatible\"]\n num_rooms = 0\n found_end = False\n room_...
[ { "span": "except:", "start_line": 30, "start_column": 4, "end_line": 30, "end_column": 11 }, { "span": "except:", "start_line": 45, "start_column": 8, "end_line": 45, "end_column": 15 }, { "span": "except:", "start_line": 58, "start_column": 8, "end_l...
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "import", "\\u", "rooms_", "(_", "file", "To", "Import_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Conflicting attributes in base classes
Alephbet/gimel/vendor/redis/client.py
[ { "content": "class StrictRedis(object):\n \"\"\"\n Implementation of the Redis protocol.\n\n This abstract class provides a Python interface to all Redis commands\n and an implementation of the Redis protocol.\n\n Connection and Pipeline derive from this, implementing how\n the commands are s...
[ { "span": "class StrictPipeline(BasePipeline, StrictRedis):", "start_line": 2665, "start_column": 0, "end_line": 2665, "end_column": 48 }, { "span": "class Pipeline(BasePipeline, Redis):", "start_line": 2670, "start_column": 0, "end_line": 2670, "end_column": 36 } ]
[ { "span": "def execute_command(self, *args, **options):", "start_line": 565, "start_column": 4, "end_line": 565, "end_column": 48 }, { "span": "def parse_response(self, connection, command_name, **options):", "start_line": 582, "start_column": 4, "end_line": 582, "end_col...
1
false
[ "[CLS]_", "Confl", "ict", "ing_", "attributes_", "in_", "base_", "classes_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "class_", "Stri", "ct", "Redis_", "(_", "object_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
OpenMDAO/OpenMDAO-Framework/contrib/testmpi/test_mpi.py
[ { "content": "\nfrom unittest import TestCase\nimport time\n\nimport numpy as np\n\nfrom openmdao.lib.drivers.iterate import FixedPointIterator\nfrom openmdao.lib.drivers.newton_solver import NewtonSolver\nfrom openmdao.lib.optproblems import sellar\n\nfrom openmdao.main.api import Assembly, Component, set_as_t...
[ { "span": "from openmdao.main.api import Assembly, Component, set_as_top, Driver", "start_line": 10, "start_column": 0, "end_line": 10, "end_column": 69 }, { "span": "from openmdao.main.mpiwrap import MPI, MPIContext", "start_line": 13, "start_column": 0, "end_line": 13, ...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "from_", "unittest_", "import_", "Test", "Case_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "time_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "import_", "num...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
statsmodels/statsmodels/statsmodels/tsa/statespace/tests/test_dynamic_factor.py
[ { "content": " def test_summary(self):\n summary = self.results.summary()\n tables = [str(table) for table in summary.tables]\n params = self.true['params']\n\n # Make sure we have the right number of tables\n assert_equal(len(tables), 2 + self.model.k_endog + self.model.k_...
[ { "span": "offset_var ", "start_line": 201, "start_column": 12, "end_line": 201, "end_column": 22 }, { "span": "name ", "start_line": 235, "start_column": 8, "end_line": 235, "end_column": 12 }, { "span": "name ", "start_line": 346, "start_column": 8, ...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Test", "Dynamic", "Factor", "2_", "(_", "Check", "Dynamic", "Factor_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "summary_", "(_", ...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
viewfinderco/viewfinder/clients/experimental/viewfinder.py
[ { "content": " def _IntegrateTime(self, new_pos, log=False):\n \"\"\"Integrates time by movement along the linear path defined by the\n vector between self._last_pos and new_pos.\n\n - 'm': slope of line from self._last_pos to new_pos.\n - 'a': max rate of change (self._roc_max) is (max - min secon...
[ { "span": "c ", "start_line": 154, "start_column": 4, "end_line": 154, "end_column": 5 }, { "span": "max_interval_size ", "start_line": 288, "start_column": 2, "end_line": 288, "end_column": 19 }, { "span": "_DrawGuideLine(", "start_line": 290, "start_colu...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "VF", "Time_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u", "Integrate", "Time_", "(_", "self_", ",_", "new", "\\u", "p...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
zen4ever/django-authorizenet/authorizenet/migrations/0002_auto__add_cimresponse.py
[ { "content": "# encoding: utf-8\nimport datetime\nfrom south.db import db\nfrom south.v2 import SchemaMigration\nfrom django.db import models\n\n\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content": "class Migration(SchemaMigration):\n\n\n\n models = {\n...
[ { "span": "import datetime", "start_line": 1, "start_column": 0, "end_line": 1, "end_column": 15 }, { "span": "from django.db import models", "start_line": 4, "start_column": 0, "end_line": 4, "end_column": 28 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "encoding", ":", " ", "utf", "-", "8_", "\\u\\u\\uNL\\u\\u\\u_", "import_", "datetime_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "south_", "._", "db_", "import_", "db_", "\\u...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
CGATOxford/cgat/CGAT/Expression.py
[ { "content": " def run(self,\n counts,\n design,\n model=None,\n dispersion=None,\n ref_group=None,\n contrasts=None,\n outfile_prefix=None):\n\n if not design.has_replicates and dispersion is None:\n raise ValueEr...
[ { "span": "r_pairs ", "start_line": 656, "start_column": 8, "end_line": 656, "end_column": 15 }, { "span": "r_pairs ", "start_line": 901, "start_column": 8, "end_line": 901, "end_column": 15 }, { "span": "r_has_pairs ", "start_line": 902, "start_column": 8...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "DE", "Experiment", "\\u", "edge", "R_", "(_", "DE", "Experiment_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "run_", "(_", "self_", ",_", "\\u\\u\\uNL\\u\\u\\u_", "coun...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Except block handles 'BaseException'
aldro61/pu-learning/src/puLearning/puAdapter.py
[ { "content": " def __fit_precomputed_kernel(self, X, y):\n \"\"\"\n Fits an estimator of p(s=1|x) and estimates the value of p(s=1|y=1) using a subset of the training examples\n\n X -- Precomputed kernel matrix\n y -- Labels associated to each example in X (Positive label: 1.0, Ne...
[ { "span": "except:", "start_line": 80, "start_column": 8, "end_line": 80, "end_column": 15 }, { "span": "except:", "start_line": 114, "start_column": 8, "end_line": 114, "end_column": 15 }, { "span": "except:", "start_line": 136, "start_column": 8, "en...
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "class_", "PU", "Adapter_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u\\u", "fit", "\\u", "pre...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
fp7-ofelia/ocf/ofam/src/src/foam/sfa/methods/GetGids.py
[ { "content": " def call(self, xrns, creds):\n # validate the credential\n valid_creds = self.api.auth.checkCredentials(creds, 'getgids')\n # xxxpylintxxx origin_hrn is unused..\n origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()\n \n # resolve...
[ { "span": "origin_hrn ", "start_line": 32, "start_column": 8, "end_line": 32, "end_column": 18 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Get", "Gi", "ds_", "(_", "Method_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "call_", "(_", "self_", ",_", "xr", "ns_", ",_", "creds_", ")_", ":_", "\\u\\u\\uNEWLI...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
amueller/word_cloud/doc/sphinxext/numpy_ext/docscrape.py
[ { "content": " def __str__(self):\n out = ''\n\n func, func_name = self.get_func()\n signature = self['Signature'].replace('*', '\\*')\n\n roles = {'func': 'function',\n 'meth': 'method'}\n\n if self._role:\n if not roles.has_key(self._role):\n ...
[ { "span": "signature ", "start_line": 453, "start_column": 8, "end_line": 453, "end_column": 17 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Function", "Doc_", "(_", "Num", "py", "Doc", "String_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u\\u", "str\\u\\u_", "(_", "self_", ")_"...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
mitsuhiko/multiversion/tests/versioned-libs/using_testlib_10.py
[ { "content": "import multiversion\nmultiversion.require_version('testlib', '1.0')\n\nfrom testlib import a_function\nimport testlib as mod\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 } ]
[ { "span": "from testlib import a_function", "start_line": 3, "start_column": 0, "end_line": 3, "end_column": 30 }, { "span": "import testlib as mod", "start_line": 4, "start_column": 0, "end_line": 4, "end_column": 21 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "multiv", "ersion_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "multiv", "ersion_", "._", "require", "\\u", "version_", "(_", "'", "testl", "ib", "'_", ",_", "'", "1.0", "'_", ")_", ...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 2, 0, 1, 1, 1 ]
Unused local variable
osrg/ryu/ryu/ofproto/ofproto_v1_4_parser.py
[ { "content": " @classmethod\n def parser(cls, buf, offset):\n (type_, len_) = struct.unpack_from(\n ofproto.OFP_ACTION_HEADER_PACK_STR, buf, offset)\n return cls()", "metadata": "root.OFPActionDecMplsTtl.parser", "header": "['class', 'OFPActionDecMplsTtl', '(', 'OFPAction'...
[ { "span": "type_,", "start_line": 4679, "start_column": 9, "end_line": 4679, "end_column": 14 }, { "span": "len_)", "start_line": 4679, "start_column": 16, "end_line": 4679, "end_column": 20 }, { "span": "type_,", "start_line": 4726, "start_column": 9, ...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "OFP", "Action", "De", "c", "Mp", "ls", "Tt", "l_", "(_", "OFP", "Action_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "@_", "classmethod_", "\\u\\u\...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
kylewm/redwind/redwind/imageproxy.py
[ { "content": "from redwind import util\nfrom flask import request, abort, send_file, url_for, make_response, \\\n Blueprint, escape, current_app\nfrom requests.exceptions import HTTPError\nimport datetime\nimport hashlib\nimport hmac\nimport json\nimport os\nimport shutil\nimport sys\nimport urllib.parse\n\n...
[ { "span": "from redwind import util", "start_line": 0, "start_column": 0, "end_line": 0, "end_column": 24 }, { "span": "from flask import request, abort, send_file, url_for, make_response, \\\n Blueprint, escape, current_app", "start_line": 1, "start_column": 0, "end_line"...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "red", "wind_", "import_", "util_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "flask_", "import_", "request_", ",_", "abort_", ",_", "send", "\\u", "file_", ",_", "url", "\\u", ...
[ 4, 4, 4, 4, 4, 2, 2, 0, 1, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 2, 0, 1, 2, 2, 2, 2, 2, 2, 2, 0, 1, 2, 0, 1, 2, 0...
Unused local variable
ImageEngine/gaffer/python/GafferDispatchTest/TaskContextVariablesTest.py
[ { "content": "\tdef testDisabledVariable( self ) :\n\n\t\tscript = Gaffer.ScriptNode()\n\n\t\tscript[\"writer\"] = GafferDispatchTest.TextWriter()\n\t\tscript[\"writer\"][\"fileName\"].setValue( self.temporaryDirectory() + \"/${name1}${name2}.txt\" )\n\n\t\tscript[\"variables\"] = GafferDispatch.TaskContextVari...
[ { "span": "jim ", "start_line": 83, "start_column": 2, "end_line": 83, "end_column": 5 }, { "span": "bob ", "start_line": 84, "start_column": 2, "end_line": 84, "end_column": 5 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Task", "Context", "Varia", "bles", "Test_", "(_", "Ga", "ffer", "Test_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
codingforentrepreneurs/srvup-membership/src/videos/migrations/0014_auto_20150131_1915.py
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.db import models, migrations\n\n\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content": "class Migration(migrations.Migration):\n\n dependencies = [\n ('vi...
[ { "span": "from django.db import models, migrations", "start_line": 3, "start_column": 0, "end_line": 3, "end_column": 40 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "-*-", " ", "codi", "ng", ":", " ", "utf", "-", "8", " ", "-*-", "_", "\\u\\u\\uNL\\u\\u\\u_", "from_", "\\u\\u", "future\\u\\u_", "import_", "unicode", "\\u", "litera...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Imprecise assert
amrdraz/kodr/app/brython/www/src/Lib/test/test_platform.py
[ { "content": " def test_mac_ver(self):\n res = platform.mac_ver()\n\n if platform.uname().system == 'Darwin':\n # We're on a MacOSX system, check that\n # the right version information is returned\n fd = os.popen('sw_vers', 'r')\n real_ver = None\n ...
[ { "span": "self.assertFalse(real_ver is None)", "start_line": 197, "start_column": 12, "end_line": 197, "end_column": 46 } ]
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Plat", "form", "Test_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "mac", "\\u", "ver_", "(_...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unreachable code
statsmodels/statsmodels/statsmodels/tsa/statespace/tests/test_dynamic_factor.py
[ { "content": " def test_no_enforce(self):\n return\n # Test that nothing goes wrong when we don't enforce stationarity\n params = self.model.untransform_params(self.true['params'])\n params[self.model._params_transition] = (\n self.true['params'][self.model._params_tran...
[ { "span": "params = self.model.untransform_params(self.true['params'])", "start_line": 97, "start_column": 8, "end_line": 97, "end_column": 67 } ]
[]
1
true
[ "[CLS]_", "Unrea", "chab", "le_", "code_", "[SEP]_", "class_", "Check", "Dynamic", "Factor_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "no", "\\u", "enforce...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1...
Unused local variable
briandilley/ebs-deploy/ebs_deploy/commands/rebuild_command.py
[ { "content": "def execute(helper, config, args):\n \"\"\"\n Rebuilds an environment\n \"\"\"\n env_config = parse_env_config(config, args.environment)\n helper.rebuild_environment(args.environment)\n\n # wait\n if not args.dont_wait:\n helper.wait_for_environments(args.environment, h...
[ { "span": "env_config ", "start_line": 14, "start_column": 4, "end_line": 14, "end_column": 14 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "execute_", "(_", "helper_", ",_", "config_", ",_", "args_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDE...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
selfsk/nodeset.core/src/nodeset/common/log.py
[ { "content": "from twisted.python import log, logfile, util\n\nimport logging\n\nlogLevel = {logging.DEBUG: 'DEBUG',\n logging.ERROR: 'ERROR',\n logging.INFO: 'INFO',\n logging.WARN: 'WARN',\n logging.CRITICAL: 'CRITICAL'}\n\nimport sys\n\n\n \n\n ...
[ { "span": "import sys", "start_line": 10, "start_column": 0, "end_line": 10, "end_column": 10 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "twisted_", "._", "python_", "import_", "log_", ",_", "logfile_", ",_", "util_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "import_", "logging_", "\\u\\u\\uNEWLINE\\u\\u...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
mogui/pyorient/tests/test_Factory_and_usage.py
[ { "content": " def test_hi_level_transaction(self):\n\n factory = pyorient.OrientDB('localhost', 2424)\n\n factory.get_message( pyorient.CONNECT ).prepare( (\"root\", \"root\") )\\\n .send().fetch_response()\n\n db_name = 'test_transactions'\n\n exists = factory.get_mes...
[ { "span": "cluster_info ", "start_line": 123, "start_column": 8, "end_line": 123, "end_column": 20 }, { "span": "sid ", "start_line": 178, "start_column": 8, "end_line": 178, "end_column": 11 }, { "span": "session_id ", "start_line": 191, "start_column": 8...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Command", "Test", "Case_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "hi", "\\u", "level...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Illegal raise
nikcub/floyd/floyd/templating/jinja.py
[ { "content": "def render(template_name, template_vars={}, template_set='site', template_theme=None, template_extension='html', template_content=None):\n \"\"\"Given a template path, a template name and template variables\n will return rendered content using jinja2 library\n \n :param template_path: Path to ...
[ { "span": "raise 'Jinja env not setup'", "start_line": 220, "start_column": 4, "end_line": 220, "end_column": 31 } ]
[]
1
true
[ "[CLS]_", "Il", "lega", "l_", "raise_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "render_", "(_", "template", "\\u", "name_", ",_", "template", "\\u", "vars_", "=_", "{_", "}_", ",_", "template", "\...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Variable defined multiple times
appdotnet/ADNpy/tests/test_api.py
[ { "content": " def test_post(self):\n text = u'awesome'\n post, meta = self.api.create_post(data={'text': text})\n self.assertEquals(post.text, text)\n\n post, meta = self.api.get_post(post)\n\n post, meta = self.api.delete_post(post)\n post, meta = self.api.create_p...
[ { "span": "post,", "start_line": 25, "start_column": 8, "end_line": 25, "end_column": 12 }, { "span": "meta ", "start_line": 25, "start_column": 14, "end_line": 25, "end_column": 18 }, { "span": "post,", "start_line": 27, "start_column": 8, "end_line":...
[ { "span": "post,", "start_line": 26, "start_column": 8, "end_line": 26, "end_column": 12 }, { "span": "meta ", "start_line": 26, "start_column": 14, "end_line": 26, "end_column": 18 }, { "span": "post,", "start_line": 33, "start_column": 8, "end_line":...
1
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "class_", "Ad", "npy", "API", "Tests_", "(_", "Ad", "npy", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "post_", "(_"...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Except block handles 'BaseException'
sccn/SNAP/src/framework/basicstimuli.py
[ { "content": " def movie(self,\n filename, # the video file to play (preferably a relative path)\n block=False, # optionally wait until the movie has finished playing before returning from this function \n # optional parameters:\n ...
[ { "span": "except:", "start_line": 338, "start_column": 8, "end_line": 338, "end_column": 15 }, { "span": "except:", "start_line": 446, "start_column": 8, "end_line": 446, "end_column": 15 }, { "span": "except:", "start_line": 450, "start_column": 8, "...
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "class_", "Basic", "Stim", "uli", "_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "movie_", "(_",...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
jgehrcke/timegaps/utils/profile_filter_func.py
[ { "content": "def main():\n t0 = time.time()\n now = time.time()\n fses = list(fsegen(ref=now, N_per_cat=5*10**4, max_timecount=9))\n shuffle(fses)\n nbr_fses = len(fses)\n n = 8\n rules = {\n \"years\": n,\n \"months\": n,\n \"weeks\": n,\n \"days\": n,\n ...
[ { "span": "nbr_fses ", "start_line": 26, "start_column": 4, "end_line": 26, "end_column": 12 }, { "span": "a,", "start_line": 41, "start_column": 4, "end_line": 41, "end_column": 5 }, { "span": "r ", "start_line": 41, "start_column": 7, "end_line": 41,...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "main_", "(_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "t0_", "=_", "time_", "._", "time_", "(_", ")_",...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
CybOXProject/python-cybox/cybox/bindings/win_kernel_object.py
[ { "content": " def exportChildren(self, lwrite, level, namespace_='WinKernelObj:', name_='SSDTEntryListType', fromsubclass_=False, pretty_print=True):\n if pretty_print:\n eol_ = '\\n'\n else:\n eol_ = ''\n for SSDT_Entry_ in self.SSDT_Entry:\n SSDT_Entry...
[ { "span": "eol_ ", "start_line": 57, "start_column": 12, "end_line": 57, "end_column": 16 }, { "span": "eol_ ", "start_line": 59, "start_column": 12, "end_line": 59, "end_column": 16 }, { "span": "eol_ ", "start_line": 144, "start_column": 12, "end_lin...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "SSD", "TE", "ntr", "y", "List", "Type_", "(_", "Generate", "ds", "Super", "_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "export", "Ch...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Except block handles 'BaseException'
azoft-dev-team/imagrium/env/Lib/test/zxjdbc/sptest.py
[ { "content": " def setUp(self):\n zxCoreTestCase.setUp(self)\n\n c = self.cursor()\n\n try:\n try:\n c.execute(\"drop table sptest\")\n except:\n self.db.rollback()\n try:\n c.execute(\"create table sptest (x v...
[ { "span": "except:", "start_line": 16, "start_column": 12, "end_line": 16, "end_column": 19 }, { "span": "except:", "start_line": 28, "start_column": 12, "end_line": 28, "end_column": 19 }, { "span": "except:", "start_line": 192, "start_column": 16, "e...
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "class_", "Ora", "cle", "SP", "Test_", "(_", "zx", "Core", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " ...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
First parameter of a method is not named 'self'
robmoggach/python-moshion/moshion/extractframes/Rat.py
[ { "content": " def __add__(a, b):\n try:\n return rat(a.__num * b.__den + b.__num * a.__den,\n a.__den * b.__den)\n except OverflowError:\n return rat(long(a.__num) * long(b.__den) +\n long(b.__num) * long(a.__den),\n ...
[ { "span": "def __add__(a, b):", "start_line": 106, "start_column": 4, "end_line": 106, "end_column": 22 }, { "span": "def __radd__(b, a):", "start_line": 115, "start_column": 4, "end_line": 115, "end_column": 23 }, { "span": "def __sub__(a, b):", "start_line":...
[]
1
true
[ "[CLS]_", "First_", "parameter_", "of_", "a_", "method_", "is_", "not_", "named_", "'", "self", "'_", "[SEP]_", "class_", "Rat", "_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u\\u", "ad...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Imprecise assert
OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/test/test_distsim.py
[ { "content": " def test_1_client(self):\n logging.debug('')\n logging.debug('test_client')\n\n factory = self.start_factory()\n\n # List available types.\n types = factory.get_available_types()\n logging.debug('Available types:')\n for typname, version in type...
[ { "span": "self.assertTrue(msg in str(exc))", "start_line": 425, "start_column": 12, "end_line": 425, "end_column": 44 }, { "span": "self.assertTrue(msg in str(exc))", "start_line": 482, "start_column": 12, "end_line": 482, "end_column": 44 }, { "span": "self.asse...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Test", "Case_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "d...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
dikien/Machine-Learning-Newspaper/nytimes/step4_analysis_supervised_2.py
[ { "content": "# -*- coding: UTF-8 -*-\n\nimport numpy as np\nfrom sklearn.cross_validation import KFold\nfrom sklearn.linear_model import LinearRegression, ElasticNet, Lasso, Ridge, ElasticNetCV\nfrom sklearn.metrics import mean_squared_error, r2_score\nfrom time import time\nfrom sklearn.feature_extraction.tex...
[ { "span": "from sklearn.cross_validation import KFold", "start_line": 3, "start_column": 0, "end_line": 3, "end_column": 42 }, { "span": "from sklearn.linear_model import LinearRegression, ElasticNet, Lasso, Ridge, ElasticNetCV", "start_line": 4, "start_column": 0, "end_line"...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "-*-", " ", "codi", "ng", ":", " ", "UT", "F", "-", "8", " ", "-*-", "_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "import_", "numpy_", "as_", "np_", "\\u\\u\...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Variable defined multiple times
meejah/txtorcon/docs/conf.py
[ { "content": "# -*- coding: utf-8 -*-\n#\n# txtorcon documentation build configuration file, created by\n# sphinx-quickstart on Thu Jan 26 13:04:28 2012.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this...
[ { "span": "html_theme ", "start_line": 112, "start_column": 0, "end_line": 112, "end_column": 10 }, { "span": "html_theme ", "start_line": 113, "start_column": 0, "end_line": 113, "end_column": 10 }, { "span": "html_theme ", "start_line": 114, "start_colum...
[ { "span": "html_theme ", "start_line": 138, "start_column": 0, "end_line": 138, "end_column": 10 }, { "span": "html_theme_options ", "start_line": 144, "start_column": 0, "end_line": 144, "end_column": 18 } ]
1
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "-*-", " ", "codi", "ng", ":", " ", "utf", "-", "8", " ", "-*-", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "txt"...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unreachable code
celery/kombu/kombu/__init__.py
[ { "content": "\"\"\"Messaging library for Python\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nimport os\nimport sys\n\nfrom collections import namedtuple\n\nversion_info_t = namedtuple(\n 'version_info_t', ('major', 'minor', 'micro', 'releaselevel', 'serial'),\n)\n\nVERSION = version_in...
[ { "span": "except NameError: ", "start_line": 83, "start_column": 0, "end_line": 83, "end_column": 17 } ]
[]
1
true
[ "[CLS]_", "Unrea", "chab", "le_", "code_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\"\"\"", "Messag", "ing", " ", "librar", "y", " ", "for", " ", "Pyth", "on", "\"\"\"_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "\\u\\u", "future\\u\\u_", "import_", "abs", "...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Variable defined multiple times
rougier/freetype-py/examples/wordle.py
[ { "content": "def make_label(text, filename, size=12, angle=0):\n '''\n Parameters:\n -----------\n text : string\n Text to be displayed\n filename : string\n Path to a font\n size : int\n Font size in 1/64th points\n angle : float\n Text angle in degrees\n ''...
[ { "span": "bitmap ", "start_line": 44, "start_column": 8, "end_line": 44, "end_column": 14 }, { "span": "pitch ", "start_line": 45, "start_column": 8, "end_line": 45, "end_column": 13 } ]
[ { "span": "bitmap ", "start_line": 67, "start_column": 8, "end_line": 67, "end_column": 14 }, { "span": "pitch ", "start_line": 68, "start_column": 8, "end_line": 68, "end_column": 13 } ]
1
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "make", "\\u", "label_", "(_", "text_", ",_", "filename_", ",_", "size_", "=_", "12_", ",_", "angle_", "=_", "0_", ")_", ":_",...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
xraypy/xraylarch/tests/test_larchexamples_xray.py
[ { "content": "#!/usr/bin/env python\n\"\"\" Tests of Larch Scripts \"\"\"\nimport unittest\nimport time\nimport ast\nimport numpy as np\nfrom sys import version_info\n\nfrom utils import TestCase\nfrom larch import Interpreter\n\n\nif __name__ == '__main__': # pragma: no cover\n for suite in (TestScripts,)...
[ { "span": "import time", "start_line": 3, "start_column": 0, "end_line": 3, "end_column": 11 }, { "span": "import ast", "start_line": 4, "start_column": 0, "end_line": 4, "end_column": 10 }, { "span": "import numpy as np", "start_line": 5, "start_column": ...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#!", "/", "usr", "/", "bin", "/", "env", " ", "python_", "\\u\\u\\uNL\\u\\u\\u_", "\"\"\"", " ", "Test", "s", " ", "of", " ", "Lar", "ch", " ", "Script", "s", " ", " ", "...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 2, 0, 1, 2, 0, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1...
Unused import
sjuxax/raggregate/raggregate/rg_migrations/versions/001_Convert_datetimes_to_tz_awareness.py
[ { "content": "from sqlalchemy import *\nfrom migrate import *\nfrom migrate.changeset import *\n\nfrom raggregate.guid_recipe import GUID\n\n# referring to the models directly, this is \"very bad\" and sqlalchemy-migrate\n# docs will yell at you extensively for doing it. OH well, much easier this way\n# for the...
[ { "span": "from raggregate.guid_recipe import GUID", "start_line": 4, "start_column": 0, "end_line": 4, "end_column": 39 }, { "span": "from raggregate.models import Submission", "start_line": 11, "start_column": 0, "end_line": 11, "end_column": 40 }, { "span": "fr...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "sqlalchemy_", "import_", "*_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "migrate_", "import_", "*_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "migrate_", "._", "changeset_", "import_", ...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
bepasty/bepasty-server/bepasty/tests/conftest.py
[ { "content": "from os import close, unlink\nfrom random import random\nfrom tempfile import mkstemp\n\nimport pytest\n\nfrom bepasty.app import create_app, create_storage\n\n\n\n\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content": "@pytest.yield_fixture(sc...
[ { "span": "from bepasty.app import create_app, create_storage", "start_line": 6, "start_column": 0, "end_line": 6, "end_column": 50 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "os_", "import_", "close_", ",_", "unlink_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "random_", "import_", "random_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "tempfile_", "import_", ...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
lambdalisue/django-permission/src/permission/compat.py
[ { "content": "# coding=utf-8\ntry:\n import collections\nexcept ImportError:\n\nimport django\nif django.VERSION >= (1, 9):\n add_to_builtins = None\nelse:\n try:\n from django.template.base import add_to_builtins\n except ImportError:\n from django.template.loader import add_to_builti...
[ { "span": "from django.template.base import add_to_builtins", "start_line": 18, "start_column": 8, "end_line": 18, "end_column": 56 }, { "span": "from django.template.loader import add_to_builtins", "start_line": 20, "start_column": 8, "end_line": 20, "end_column": 58 }...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "codi", "ng", "=", "utf", "-", "8_", "\\u\\u\\uNL\\u\\u\\u_", "try_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "import_", "collections_", "\\u\\u...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
lsaffre/lino/lino/api/dd.py
[ { "content": "# -*- coding: UTF-8 -*-\n# Copyright 2011-2016 Luc Saffre\n# License: BSD (see file COPYING for details)\n\n\"\"\"\nThe :mod:`lino.api.dd` module is a shortcut to those parts of Lino which\nare used in your :xfile:`models.py` modules. The name ``dd`` stands\nfor \"Database Design\".\n\nApplicatio...
[ { "span": "from django.utils.encoding import python_2_unicode_compatible", "start_line": 127, "start_column": 0, "end_line": 127, "end_column": 61 }, { "span": "from lino.core.tables import VirtualTable", "start_line": 129, "start_column": 0, "end_line": 129, "end_column"...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "-*-", " ", "codi", "ng", ":", " ", "UT", "F", "-", "8", " ", "-*-", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Copy", "right", " ", "2011", "-", "2016", " ", "L...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Imprecise assert
openstack/rally/tests/functional/test_cli_task.py
[ { "content": " def _test_start_abort_on_sla_failure(self, cfg, times):\n rally = utils.Rally()\n deployment_id = utils.get_global(\"RALLY_DEPLOYMENT\", rally.env)\n config = utils.TaskConfig(cfg)\n rally((\"task start --task %(task_file)s \"\n \"--deployment %(deploy...
[ { "span": "self.assertTrue(iterations_completed < times)", "start_line": 532, "start_column": 8, "end_line": 532, "end_column": 53 }, { "span": "self.assertTrue(iterations_completed < RUNNER_TIMES)", "start_line": 702, "start_column": 8, "end_line": 702, "end_column": 60 ...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Task", "Test", "Case_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u", "test\\u", "start", "\\u", "a...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unnecessary pass
hwaf/hwaf/py-hwaftools/hwaf-system.py
[ { "content": "def configure(ctx):\n\n #ctx.load('c_config')\n #ctx.load('compiler_cc')\n #ctx.load('compiler_cxx')\n\n variant = os.environ.get('HWAF_VARIANT', os.environ.get('CMTCFG', None))\n if not variant and ctx.options.variant:\n variant = ctx.options.variant\n pass\n\n cfg...
[ { "span": "pass", "start_line": 49, "start_column": 8, "end_line": 49, "end_column": 12 }, { "span": "pass", "start_line": 71, "start_column": 8, "end_line": 71, "end_column": 12 }, { "span": "pass", "start_line": 98, "start_column": 8, "end_line": 98,...
[]
1
true
[ "[CLS]_", "Un", "necessar", "y_", "pass_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "configure_", "(_", "ctx_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "#", "ctx", ".", "load", ...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
sahana/eden/modules/tests/smoke/broken_links.py
[ { "content": "\"\"\" Sahana Eden Test Framework\n\n @copyright: 2011-2016 (c) Sahana Software Foundation\n @license: MIT\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation\n files (the \"Software\"), to deal in the Soft...
[ { "span": "import sys", "start_line": 32, "start_column": 0, "end_line": 32, "end_column": 10 }, { "span": "import socket", "start_line": 33, "start_column": 0, "end_line": 33, "end_column": 13 }, { "span": "import mechanize", "start_line": 44, "start_colu...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\"\"\"", " ", "Sa", "han", "a", " ", "Ed", "en", " ", "Test", " ", "Frame", "work", "\\", "10", ";", "\\", "10", ";", " ", " ", " ", " ", "@", "copyr", "ight", ":", ...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
cigroup-ol/windml/windml/preprocessing/nmar_destroyer.py
[ { "content": "\"\"\"\nCopyright (c) 2013,\nFabian Gieseke, Justin P. Heinermann, Oliver Kramer, Jendrik Poloczek,\nNils A. Treiber\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n Redis...
[ { "span": "from numpy import zeros, float32, int32, nan", "start_line": 35, "start_column": 0, "end_line": 35, "end_column": 44 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\"\"\"", "\\", "10", ";", "Copy", "right", " ", "(", "c", ")", " ", "2013", ",", "\\", "10", ";", "Fab", "ian", " ", "Gi", "ese", "ke", ",", " ", "Justi", "n", " ", ...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...