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
Variable defined multiple times
abbotto/comsys/comsys.py
[ { "content": "# ---------------------------------------------------------------------------------------------\n# ComSys Tools V0.01\n# Support: Python 2.7, 3.3\n# ---------------------------------------------------------------------------------------------\n\n# Import the necessary resources\nfrom bs4 import Be...
[ { "span": "soup(", "start_line": 43, "start_column": 4, "end_line": 43, "end_column": 8 } ]
[ { "span": "soup ", "start_line": 194, "start_column": 0, "end_line": 194, "end_column": 4 } ]
1
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "--------------", "--------------", "--------------", "--------------", "--------------", "--------------", "---------", "_", "\\u\\u\\uNL\\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...
Imprecise assert
godaddy/Thespian/thespian/system/test/test_expirytime.py
[ { "content": " def testNonZeroRemaining(self):\n et = ExpiryTime(timedelta(milliseconds=10))\n self.assertTrue(timedelta(days=0) < et.remaining())\n self.assertTrue(timedelta(milliseconds=11) > et.remaining())\n sleep(et.remainingSeconds())\n self.assertEqual(timedelta(days...
[ { "span": "self.assertTrue(timedelta(days=0) < et.remaining())", "start_line": 34, "start_column": 8, "end_line": 34, "end_column": 59 }, { "span": "self.assertTrue(timedelta(milliseconds=11) > et.remaining())", "start_line": 35, "start_column": 8, "end_line": 35, "end_co...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Test", "Expir", "y", "Time_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test", "Non", "Zero", "Rema",...
[ 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, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unused local variable
agiliq/merchant/billing/tests/test_braintree_payments.py
[ { "content": " def testPaymentSuccessfulSignal(self):\n received_signals = []\n\n def receive(sender, **kwargs):\n received_signals.append(kwargs.get(\"signal\"))\n\n transaction_was_successful.connect(receive)\n\n resp = self.merchant.purchase(1, self.credit_card)\n ...
[ { "span": "resp ", "start_line": 61, "start_column": 8, "end_line": 61, "end_column": 12 }, { "span": "resp ", "start_line": 72, "start_column": 8, "end_line": 72, "end_column": 12 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Brain", "tree", "Payment", "s", "Gat", "ewa", "y", "Test", "Case_", "(_", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test"...
[ 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
AppScale/appscale/AppDB/cassandra/thrift_cass/ttypes.py
[ { "content": " def write(self, oprot):\n if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:\n oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))\n return\n oprot.writeStructBegin('Colum...
[ { "span": "validate(", "start_line": 211, "start_column": 8, "end_line": 211, "end_column": 16 }, { "span": "validate(", "start_line": 302, "start_column": 8, "end_line": 302, "end_column": 16 }, { "span": "validate(", "start_line": 388, "start_column": 8,...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Column_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "write_", "(_", "self_", ",_", "oprot_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\...
[ 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
PMEAL/OpenPNM/test/unit/Geometry/models/ThroatMiscTest.py
[ { "content": " def test_neighbor_min(self):\n catch = self.geo.pop('throat.seed', None)\n catch = self.geo.models.pop('throat.seed', None)\n mod = gm.throat_misc.neighbor\n self.geo['pore.seed'] = sp.rand(self.net.Np,)\n self.geo.models.add(model=mod,\n ...
[ { "span": "catch ", "start_line": 43, "start_column": 8, "end_line": 43, "end_column": 13 }, { "span": "catch ", "start_line": 56, "start_column": 8, "end_line": 56, "end_column": 13 }, { "span": "catch ", "start_line": 69, "start_column": 8, "end_line...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Thr", "oat", "Mis", "c", "Test_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "neighbor", "\\u", "min_", "(_", "self_", ")_", ":_", "\\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, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
saltstack/salt/salt/cloud/clouds/nova.py
[ { "content": "def destroy(name, conn=None, call=None):\n '''\n Delete a single VM\n '''\n if call == 'function':\n raise SaltCloudSystemExit(\n 'The destroy action must be called with -d, --destroy, '\n '-a or --action.'\n )\n\n salt.utils.cloud.fire_event(\n ...
[ { "span": "minions ", "start_line": 515, "start_column": 8, "end_line": 515, "end_column": 15 }, { "span": "deploy ", "start_line": 708, "start_column": 4, "end_line": 708, "end_column": 10 } ]
[]
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_", "destroy_", "(_", "name_", ",_", "conn_", "=_", "None_", ",_", "call_", "=_", "None_", ")_", ":_", "\\u\\u\\uNE...
[ 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
modflowpy/flopy/flopy/plot/map.py
[ { "content": " def contour_array(self, a, masked_values=None, **kwargs):\n \"\"\"\n Contour an array. If the array is three-dimensional, then the method\n will contour the layer tied to this class (self.layer).\n\n Parameters\n ----------\n a : numpy.ndarray\n ...
[ { "span": "cmap ", "start_line": 168, "start_column": 12, "end_line": 168, "end_column": 16 }, { "span": "ax ", "start_line": 194, "start_column": 12, "end_line": 194, "end_column": 14 }, { "span": "ax ", "start_line": 196, "start_column": 12, "end_lin...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Model", "Map_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "conto", "ur\\u", "array_", "(_", "self_", ",_", "a_", ",_", "ma...
[ 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'
SteveAbb/Vestigo/Vestigo/settings.py
[ { "content": "\tdef __init__(self):\n\t\t#Set defaults\n\t\tself.scanMode_LE=False\n\t\tself.scanMode_Disc=False\n\t\tself.scanMode_NonDisc=False\n\t\t\n\t\tself.readTimeout_Disc=0\n\t\tself.readTimeout_NonDisc=0\n\t\t\n\t\tself.baseServer_URL=None\n\t\tself.baseServer_Timeout=8\n\t\tself.baseServer_Recache=60\...
[ { "span": "except: ", "start_line": 34, "start_column": 2, "end_line": 34, "end_column": 9 }, { "span": "except: ", "start_line": 36, "start_column": 2, "end_line": 36, "end_column": 9 }, { "span": "except: ", "start_line": 38, "start_column": 2, "end_...
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "class_", "Settings_", "(_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u\t", "_", "def_", "\\u\\u", "init\\u\\u_", "(_", "sel...
[ 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
fp7-ofelia/ocf/vt_manager/src/python/vt_manager/controller/drivers/VTDriver.py
[ { "content": "from vt_manager.communication.utils.XmlHelper import XmlHelper\nimport os\nimport sys\nfrom vt_manager.models import *\nfrom vt_manager.controller import *\nfrom vt_manager.communication.utils import *\nfrom vt_manager.utils.ServiceThread import *\nimport xmlrpclib, threading, logging, copy\nfrom ...
[ { "span": "from vt_manager.communication.utils.XmlHelper import XmlHelper", "start_line": 0, "start_column": 0, "end_line": 0, "end_column": 62 }, { "span": "import os", "start_line": 1, "start_column": 0, "end_line": 1, "end_column": 9 }, { "span": "import sys", ...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "vt", "\\u", "manager_", "._", "communication", "_", "._", "utils_", "._", "Xm", "l", "Helper_", "import_", "Xm", "l", "Helper_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "...
[ 4, 4, 4, 4, 4, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 1, 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...
Unnecessary pass
kashefy/nideep/nideep/datasets/pascal_context.py
[ { "content": "'''\nCreated on Jul 21, 2015\n\n@author: kashefy\n'''\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom PIL import Image\nimport caffe\nfrom nideep.iow.read_img import read_img_cv2, read_img_PIL\n\nif __name__ == '__main__':\n \n caffe.set_mode_cpu()\n \n # load image, switch ...
[ { "span": "pass", "start_line": 76, "start_column": 4, "end_line": 76, "end_column": 8 } ]
[]
1
true
[ "[CLS]_", "Un", "necessar", "y_", "pass_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "'''", "\\", "10", ";", "Creat", "ed", " ", "on", " ", "Ju", "l", " ", "21", ",", " ", "201", "5", "\\", "10", ";", "\\", "10", ";", "@", "author", ":", " ", ...
[ 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...
Imprecise assert
MongoEngine/mongoengine/tests/queryset/transform.py
[ { "content": " def test_query_field_name(self):\n \"\"\"Ensure that the correct field name is used when querying.\n \"\"\"\n class Comment(EmbeddedDocument):\n content = StringField(db_field='commentContent')\n\n class BlogPost(Document):\n title = StringFiel...
[ { "span": "self.assertTrue('postTitle' in\n BlogPost.objects(title=data['title'])._query)", "start_line": 75, "start_column": 8, "end_line": 76, "end_column": 69 }, { "span": "self.assertFalse('title' in\n BlogPost.objects(title=data['title'...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Transform", "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", "query", "\\u", "field", "\\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
ericholscher/django-test-utils/test_utils/crawler/plugins/__init__.py
[ { "content": "from base import Plugin\n\nfrom time_plugin import Time\nfrom pdb import Pdb\nfrom urlconf import URLConf\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 } ]
[ { "span": "from base import Plugin", "start_line": 0, "start_column": 0, "end_line": 0, "end_column": 23 }, { "span": "from time_plugin import Time", "start_line": 2, "start_column": 0, "end_line": 2, "end_column": 28 }, { "span": "from urlconf import URLConf", ...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "base_", "import_", "Plugin_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "from_", "time", "\\u", "plugin_", "import_", "Time_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "p...
[ 4, 4, 4, 4, 4, 2, 2, 0, 1, 1, 1, 2, 2, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 1 ]
Unused local variable
VisTrails/VisTrails/vistrails/gui/configuration.py
[ { "content": " def __init__(self, key, field, callback_f, parent=None):\n QtGui.QComboBox.__init__(self, parent)\n QConfigurationWidgetItem.__init__(self, key, field, callback_f)\n\n inv_remap = None\n options = self.get_widget_options()\n if \"allowed_values\" in options:\...
[ { "span": "inv_remap ", "start_line": 440, "start_column": 16, "end_line": 440, "end_column": 25 }, { "span": "config_desc ", "start_line": 549, "start_column": 8, "end_line": 549, "end_column": 19 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "QC", "onfi", "gur", "ation", "Comb", "o", "Box_", "(_", "Qt", "Gui_", "._", "QC", "omb", "o", "Box_", ",_", "QC", "onfi", "gur", "ation", "Wid", "get", "Item_", ")_", ":_", "\\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...
Imprecise assert
cpfair/tapiriik/tapiriik/testing/sync.py
[ { "content": " def test_accumulate_exclusions(self):\n svcA, svcB = TestTools.create_mock_services()\n recA = TestTools.create_mock_svc_record(svcA)\n\n # regular\n s = SynchronizationTask(None)\n s._syncExclusions = {recA._id: {}}\n exc = APIExcludeActivity(\"Messag...
[ { "span": "self.assertTrue(\"3_14\" in exclusionstore[recA._id])", "start_line": 223, "start_column": 8, "end_line": 223, "end_column": 59 }, { "span": "self.assertTrue(\"3_14\" in exclusionstore[recA._id])", "start_line": 237, "start_column": 8, "end_line": 237, "end_col...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Sync", "Tests_", "(_", "Tap", "iri", "ik", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "accumulate", "\\u", "exclusions"...
[ 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...
Imprecise assert
whiskey/Machine-Learning/de/staticline/tests/dummytests.py
[ { "content": " def testDummyModel(self):\n cwd = os.path.dirname(os.path.abspath(sys.argv[0]))\n \n dummy = Always1Predictor()\n dummy.buildClassifier(os.path.join(cwd,'data/classification/a1a'))\n dummy.validateModel(os.path.join(cwd,'data/classification/a1a.t'))\n ...
[ { "span": "self.assertTrue(dummy.get_pctCorrect() > 24) ", "start_line": 20, "start_column": 8, "end_line": 20, "end_column": 52 } ]
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Du", "mm", "y", "Classificat", "or", "Test", "Case_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uINDENT\\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
AmmsA/theresumator/scripts/create_baseuser.py
[ { "content": "from django.db.utils import OperationalError\nfrom solo.admin import SingletonModelAdmin\n\nfrom resumator.models import BasicInformation\nfrom resumator.models import Settings\n\n# make BasicInformation singleton if it does not already exist\ntry:\n basic_information = BasicInformation.get_sol...
[ { "span": "from solo.admin import SingletonModelAdmin", "start_line": 1, "start_column": 0, "end_line": 1, "end_column": 42 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "django_", "._", "db_", "._", "utils_", "import_", "Opera", "tion", "al", "Error_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "solo", "_", "._", "admin_", "import_", "Singleton"...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 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...
Unused import
androguard/androguard/demos/benchmark.py
[ { "content": "#!/usr/bin/env python\n\nimport sys, os\nimport cProfile\n\n# http://code.activestate.com/recipes/286222-memory-usage/\n_proc_status = '/proc/%d/status' % os.getpid()\n\n_scale = {\n 'kB': 1024.0,\n 'mB': 1024.0 * 1024.0,\n 'KB': 1024.0,\n 'MB': 1024.0 * 1024.0\n}\n\n\n\n\n\n\n\n\n\n\n...
[ { "span": "import cProfile", "start_line": 3, "start_column": 0, "end_line": 3, "end_column": 15 }, { "span": "import androguard, analysis", "start_line": 54, "start_column": 0, "end_line": 54, "end_column": 27 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#!", "/", "usr", "/", "bin", "/", "env", " ", "python_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "import_", "sys_", ",_", "os_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "c",...
[ 4, 4, 4, 4, 4, 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, 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'
fredrik-johansson/mpmath/mpmath/ctx_mp.py
[ { "content": " def __init__(ctx):\n BaseMPContext.__init__(ctx)\n ctx.trap_complex = False\n ctx.pretty = False\n ctx.types = [ctx.mpf, ctx.mpc, ctx.constant]\n ctx._mpq = rational.mpq\n ctx.default()\n StandardBaseContext.__init__(ctx)\n\n ctx.mpq = ra...
[ { "span": "def __init__(ctx):", "start_line": 60, "start_column": 4, "end_line": 60, "end_column": 22 }, { "span": "def init_builtins(ctx):", "start_line": 93, "start_column": 4, "end_line": 93, "end_column": 27 }, { "span": "def to_fixed(ctx, x, prec):", "sta...
[]
1
true
[ "[CLS]_", "First_", "parameter_", "of_", "a_", "method_", "is_", "not_", "named_", "'", "self", "'_", "[SEP]_", "class_", "MP", "Context_", "(_", "Base", "MP", "Context_", ",_", "Standard", "Base", "Context_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\...
[ 4, 4, 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, 0, 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...
Imprecise assert
babble/babble/include/jython/Lib/test/test_cmp_jy.py
[ { "content": " def testCompareWithString(self):\n class Test(long):\n pass\n self.assertNotEqual(Test(0), 'foo')\n self.assertTrue('foo' in [Test(12), 'foo'])", "metadata": "root.LongDerivedCmp.testCompareWithString", "header": "['class', 'LongDerivedCmp', '(', 'unitte...
[ { "span": "self.assertTrue('foo' in [Test(12), 'foo'])", "start_line": 21, "start_column": 8, "end_line": 21, "end_column": 51 } ]
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Long", "Derive", "d", "Cmp", "_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "def_", "test", "Comp...
[ 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
chapmanb/cloudbiolinux/cloudbio/custom/vcr.py
[ { "content": "#\n# vcr.py\n# - Configures the environment for running the Viral Assembly (viral_assembly_pipeline.py) and VIGOR (VIGOR3.pl) pipelines (creating directory structure and installs software). \n#\n\nimport os.path, re, mmap\nfrom fabric.api import cd, env, hide, local, run, settings, sudo, task\nfr...
[ { "span": "import os.path, re, mmap", "start_line": 5, "start_column": 0, "end_line": 5, "end_column": 24 }, { "span": "from fabric.api import cd, env, hide, local, run, settings, sudo, task", "start_line": 6, "start_column": 0, "end_line": 6, "end_column": 70 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "vcr", ".", "py_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", " ", "-", " ", "Configure", "s", " ", "the", " ", "environ", "ment", " ", "f...
[ 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
AppScale/appscale/AppServer/lib/django-1.3/tests/regressiontests/backends/tests.py
[ { "content": " @unittest.skipUnless(connection.vendor == 'oracle',\n \"No need to check Oracle connection semantics\")\n def test_client_encoding(self):\n # If the backend is Oracle, test that the client encoding is set\n # correctly. This was broken under Cygwin pri...
[ { "span": "c ", "start_line": 54, "start_column": 8, "end_line": 54, "end_column": 9 }, { "span": "cursor ", "start_line": 192, "start_column": 8, "end_line": 192, "end_column": 14 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Ora", "cle", "Check", "s_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "@_", "unittest_", "._", "skip", "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'
stamparm/maltrail/core/httpd.py
[ { "content": "#!/usr/bin/env python\n\n\"\"\"\nCopyright (c) 2014-2016 Miroslav Stampar (@stamparm)\nSee the file 'LICENSE' for copying permission\n\"\"\"\n\nimport BaseHTTPServer\nimport cStringIO\nimport datetime\nimport httplib\nimport glob\nimport gzip\nimport hashlib\nimport io\nimport json\nimport mimetyp...
[ { "span": "except:", "start_line": 65, "start_column": 0, "end_line": 65, "end_column": 7 }, { "span": "except:", "start_line": 81, "start_column": 12, "end_line": 81, "end_column": 19 }, { "span": "except:", "start_line": 100, "start_column": 12, "end...
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#!", "/", "usr", "/", "bin", "/", "env", " ", "python_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\"\"\"", "\\", "10", ";...
[ 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...
Testing equality to None
katharosada/botchallenge/client/botchallenge/robot.py
[ { "content": " def direction(self, other):\n \"\"\"Find the direction (North, South, East or West) of the other\n location from this one.\"\"\"\n if other == None:\n return None\n loc = [0, 0, 0]\n loc[0] = other.x_coord - self.x_coord\n loc[1] = other.y_c...
[ { "span": "other == None:", "start_line": 200, "start_column": 11, "end_line": 200, "end_column": 24 } ]
[]
1
true
[ "[CLS]_", "Test", "ing_", "equality", "_", "to_", "None_", "[SEP]_", "class_", "Location_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "direction_", "(_", "self_", ",_", "other_", ")_", ":_", ...
[ 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...
Variable defined multiple times
EliotBerriot/django-dynamic-preferences/tests/tests.py
[ { "content": " def test_can_cache_single_preference(self):\n\n manager = global_preferences_registry.manager()\n v = manager['no_section']\n with self.assertNumQueries(0):\n v = manager['no_section']\n v = manager['no_section']\n v = manager['no_section']...
[ { "span": "v ", "start_line": 94, "start_column": 8, "end_line": 94, "end_column": 9 }, { "span": "v ", "start_line": 96, "start_column": 12, "end_line": 96, "end_column": 13 }, { "span": "v ", "start_line": 97, "start_column": 12, "end_line": 97, ...
[ { "span": "test_global_preferences_manager_by_name(", "start_line": 134, "start_column": 8, "end_line": 134, "end_column": 47 } ]
1
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "class_", "Test", "Models_", "(_", "Base", "Test_", ",_", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "can", "\\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, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
los-cocos/cocos/cocos/audio/pygame/__init__.py
[ { "content": "# pygame - Python Game Library\n# Copyright (C) 2000-2001 Pete Shinners\n#\n# This library is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Library General Public\n# License as published by the Free Software Foundation; either\n# version 2 of the License, o...
[ { "span": "import os", "start_line": 35, "start_column": 0, "end_line": 35, "end_column": 9 }, { "span": "import sys", "start_line": 36, "start_column": 0, "end_line": 36, "end_column": 10 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "pyga", "me", " ", "-", " ", "Pyth", "on", " ", "Game", " ", "Library_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "C", ")", " ", "2000", "-"...
[ 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
moraes/tipfy/tipfyext/wtforms/__init__.py
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n tipfyext.wtforms\n ~~~~~~~~~~~~~~~~~\n\n Enhanced WTForms form library support for tipfy.\n\n :copyright: 2011 WTForms authors.\n :copyright: 2011 tipfy.org.\n :copyright: 2009 Plurk Inc.\n :license: BSD, see LICENSE.txt for more details.\n\"\...
[ { "span": "from tipfyext.wtforms import validators, widgets", "start_line": 13, "start_column": 0, "end_line": 13, "end_column": 48 }, { "span": "from tipfyext.wtforms.form import Form", "start_line": 15, "start_column": 0, "end_line": 15, "end_column": 38 }, { "s...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "-*-", " ", "codi", "ng", ":", " ", "utf", "-", "8", " ", "-*-", "_", "\\u\\u\\uNL\\u\\u\\u_", "\"\"\"", "\\", "10", ";", " ", " ", " ", " ", "tip", "fy", "ext...
[ 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
uwdata/termite-data-server/web2py/applications-original/admin/controllers/default.py
[ { "content": "def site():\n \"\"\" Site handler \"\"\"\n\n myversion = request.env.web2py_version\n\n # Shortcut to make the elif statements more legible\n file_or_appurl = 'file' in request.vars or 'appurl' in request.vars\n\n class IS_VALID_APPNAME(object):\n def __call__(self, value):\n...
[ { "span": "file_or_appurl ", "start_line": 207, "start_column": 4, "end_line": 207, "end_column": 18 }, { "span": "new_repo ", "start_line": 255, "start_column": 16, "end_line": 255, "end_column": 24 }, { "span": "filename ", "start_line": 433, "start_colu...
[]
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_", "site_", "(_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "\"\"\"", " ", "Site", ...
[ 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
lexich/yandex-disk-webdav/yandexwebdav.py
[ { "content": "def apply_async(name, func, params_list, limit=5):\n for params in params_list:\n if type(params) is list or type(params) is tuple:\n item = (name, func, params)\n else:\n item = (name, func, [params, ])\n res = qWork.put_nowait(item)\n\n if len(thr...
[ { "span": "res ", "start_line": 152, "start_column": 8, "end_line": 152, "end_column": 11 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "appl", "y", "\\u", "async_", "(_", "name_", ",_", "func_", ",_", "params", "\\u", "list_", ",_", "limit_", "=_", "5_", ")_", ":_", ...
[ 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
home-assistant/home-assistant/homeassistant/components/sun.py
[ { "content": "def next_setting_utc(hass, entity_id=None):\n \"\"\"UTC datetime object of the next sun setting.\"\"\"\n entity_id = entity_id or ENTITY_ID\n\n state = hass.states.get(ENTITY_ID)\n\n try:\n return dt_util.parse_datetime(\n state.attributes[STATE_ATTR_NEXT_SETTING])\n ...
[ { "span": "entity_id ", "start_line": 47, "start_column": 4, "end_line": 47, "end_column": 13 }, { "span": "entity_id ", "start_line": 69, "start_column": 4, "end_line": 69, "end_column": 13 } ]
[]
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_", "next", "\\u", "setti", "ng", "\\u", "utc_", "(_", "hass_", ",_", "entity", "\\u", "id_", "=_", "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, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
androguard/androguard/androguard/core/analysis/analysis.py
[ { "content": "# This file is part of Androguard.\n#\n# Copyright (C) 2012, Anthony Desnos <desnos at t0t0.fr>\n# All rights reserved.\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 Licens...
[ { "span": "import re, random, cPickle, collections", "start_line": 17, "start_column": 0, "end_line": 17, "end_column": 39 }, { "span": "from androguard.core.androconf import error, warning, debug, is_ascii_problem,\\\n load_api_specific_resource_module", "start_line": 19, "st...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "Thi", "s", " ", "file", " ", "is", " ", "part", " ", "of", " ", "And", "rog", "uar", "d", "._", "\\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
michaelcontento/revolver/revolver/server.py
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom __future__ import absolute_import, division, with_statement\n\nfrom cuisine import system_uuid as uuid\n\nfrom revolver import contextmanager as ctx\nfrom revolver import file, core\n\n\n\n\n\n\n", "metadata": "root", "header": "['module', '___EOS___']", ...
[ { "span": "from cuisine import system_uuid as uuid", "start_line": 4, "start_column": 0, "end_line": 4, "end_column": 39 } ]
[]
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_", "from_", "\\u\\u", "future\\u\\u_", "import_", "a...
[ 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
awslabs/simplebeerservice/sbsunit/utils/httpRequest.py
[ { "content": "import datetime\nimport time\nfrom sbs.tools import Tools\nimport pycurl\nimport json\n\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content": "class HTTPRequest():\n\n debug = False\n logFile = 'sbs.log'\n apiKey = ''\n contentType ...
[ { "span": "import datetime", "start_line": 0, "start_column": 0, "end_line": 0, "end_column": 15 }, { "span": "import time", "start_line": 1, "start_column": 0, "end_line": 1, "end_column": 11 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "datetime_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "time_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "sb", "s_", "._", "tools_", "import_", "Tools_", "\\u\\u\\uNEWLINE\\u\\u\\u_", ...
[ 4, 4, 4, 4, 4, 2, 2, 0, 1, 2, 0, 1, 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, 2, 2...
Unnecessary pass
iogf/ehp/ehp.py
[ { "content": " def take_with_root(self, *args):\n \"\"\"\n Like Root.take but returns the tag parent.\n \"\"\"\n\n seq = self.match_with_root(*args)\n \n try:\n item = seq.next()\n except StopIteration:\n return None\n else:\n ...
[ { "span": "pass", "start_line": 302, "start_column": 8, "end_line": 302, "end_column": 12 }, { "span": "pass", "start_line": 1018, "start_column": 8, "end_line": 1018, "end_column": 12 }, { "span": "pass", "start_line": 1033, "start_column": 8, "end_li...
[]
1
true
[ "[CLS]_", "Un", "necessar", "y_", "pass_", "[SEP]_", "class_", "Root_", "(_", "list_", ")_", ":_", "\\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_", "take", "\\u", "with", "\\u", "root_", "(_", "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 local variable
rasher/reddit-modbot/modbot.py
[ { "content": "def performaction(thing, action, rule, matches):\n origaction = action.strip()\n action = action.strip().lower()\n logging.info(\"Perform %s on %s from %s\" % (action, thing.permalink,\n rule['_filename']))\n\n # Compose message. All these are made the same way\n if action in...
[ { "span": "s ", "start_line": 112, "start_column": 12, "end_line": 112, "end_column": 13 }, { "span": "s ", "start_line": 115, "start_column": 12, "end_line": 115, "end_column": 13 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "perform", "action_", "(_", "thing_", ",_", "action_", ",_", "rule_", ",_", "matches_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uIN...
[ 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
django-leonardo/django-leonardo/leonardo/module/web/models/__init__.py
[ { "content": "\nfrom leonardo.module.web.models.page import *\nfrom leonardo.module.web.models.widget import *\n\nfrom leonardo.module.web.widget.icon.models import IconWidget\nfrom leonardo.module.web.widget.application.models import ApplicationWidget\nfrom leonardo.module.web.widget.markuptext.models import M...
[ { "span": "from leonardo.module.web.widget.icon.models import IconWidget", "start_line": 4, "start_column": 0, "end_line": 4, "end_column": 61 }, { "span": "from leonardo.module.web.widget.application.models import ApplicationWidget", "start_line": 5, "start_column": 0, "end_...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "from_", "leo", "nar", "do_", "._", "module_", "._", "web_", "._", "models_", "._", "page_", "import_", "*_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "leo", "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, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1...
Except block handles 'BaseException'
corbt/pypeline/pypeline/DB.py
[ { "content": " def __init__(self, database_path, **kwargs): \n self.db=plyvel.DB(database_path, **kwargs)\n\n self.collections_set=self.db.prefixed_db(b'collections/')\n self.collection_items_set=self.db.prefixed_db(b'collection-items/')\n self.collections_cache = {}\n\n ...
[ { "span": "except:", "start_line": 29, "start_column": 8, "end_line": 29, "end_column": 15 } ]
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "class_", "DB_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "\\u\\u", "init\\u\\u_", "(_", "self_", ",_", "databa", "se", "\\u", "path_", ",_", "**...
[ 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...
Imprecise assert
JetBrains/youtrack-rest-python-library/python/tests/connection_test.py
[ { "content": " def test_getSubsystems(self):\n subsystems = self.con.getSubsystems('SB')\n default = [s for s in subsystems if s.isDefault][0]\n self.assertTrue(default is not None) ", "metadata": "root.ConnectionTest.test_getSubsystems", "header": "['class', 'ConnectionTe...
[ { "span": "self.assertTrue(default is not None) ", "start_line": 19, "start_column": 8, "end_line": 19, "end_column": 44 }, { "span": "self.assertTrue(response.find(\"http://unit-258.labs.intellij.net:8080/charisma/rest/admin/customfield/bundle/\" + enum_bundle.name) != -1)", "start_...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Connect", "ion", "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", "get", "Subs", "yste", ...
[ 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...
Deprecated slice method
petrvanblokland/Xierpa3/xierpa3/toolbox/coloring.py
[ { "content": " def __getslice__(self, i, j):\n return repr(self)[max(0, i):max(0, j):]\n # return None", "metadata": "root.Color.__getslice__", "header": "['class', 'Color', ':', '___EOS___']", "index": 302 } ]
[ { "span": "def __getslice__(self, i, j):", "start_line": 302, "start_column": 4, "end_line": 302, "end_column": 33 } ]
[]
1
true
[ "[CLS]_", "Dep", "reca", "ted_", "slice_", "method_", "[SEP]_", "class_", "Color_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u\\u", "gets", "lice", "\\u\\u_", "(_", "self_", ",_", "i_", ",_", "j_", ")_", ":_", ...
[ 4, 4, 4, 4, 4, 4, 4, 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, 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
ardekantur/pyglet/tests/resource/RES_LOAD.py
[ { "content": " def check_file(self, path, file, result):\n loader = resource.Loader(path, script_home=self.script_home)\n self.assertTrue(loader.file(file).read() == '%s\\n' % result)", "metadata": "root.TestCase.check_file", "header": "['class', 'TestCase', '(', 'unittest', '.', 'TestC...
[ { "span": "self.assertTrue(loader.file(file).read() == '%s\\n' % result)", "start_line": 45, "start_column": 8, "end_line": 45, "end_column": 68 } ]
[]
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_", "def_", "check", "\\u", "file_", "(_", "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, 0, 1, 1, 1, 1, 1, 1, 1, 1...
Comparison of identical values
HubSpot/sanetime/sanetime/test/test_tztime.py
[ { "content": " def test_equality(self):\n t1 = tztime(JAN_MICROS, tz='UTC')\n t2 = tztime(JAN_MICROS, tz='America/New_York')\n t3 = tztime(JAN_MICROS+1)\n self.assertTrue(t1==t1)\n self.assertTrue(t2==t2)\n self.assertTrue(t3==t3)\n self.assertFalse(t1!=t1)\n ...
[ { "span": "t1==t1)", "start_line": 28, "start_column": 24, "end_line": 28, "end_column": 30 }, { "span": "t2==t2)", "start_line": 29, "start_column": 24, "end_line": 29, "end_column": 30 }, { "span": "t3==t3)", "start_line": 30, "start_column": 24, "en...
[]
1
true
[ "[CLS]_", "Compari", "son_", "of_", "identical_", "values_", "[SEP]_", "class_", "San", "e", "T", "z", "Time", "Test_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "tes...
[ 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, 2...
Unused import
j-towns/iprofiler/iprofiler.py
[ { "content": "from IPython.utils import openpy\nfrom IPython.utils import ulinecache\nfrom IPython.core.magic import (Magics, magics_class, line_magic,\n cell_magic, line_cell_magic)\n\nfrom ipywidgets import DOMWidget\nfrom traitlets import Unicode, Int\nfrom ipywidgets.widgets.w...
[ { "span": "from IPython.core.magic import (Magics, magics_class, line_magic,\n cell_magic, line_cell_magic)", "start_line": 2, "start_column": 0, "end_line": 3, "end_column": 60 }, { "span": "from ipywidgets.widgets.widget import CallbackDispatcher, registe...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "IP", "ython_", "._", "utils_", "import_", "openp", "y_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "IP", "ython_", "._", "utils_", "import_", "ulin", "eca", "che_", "\\u\\u\\uN...
[ 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, 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, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2...
Imprecise assert
pydata/pandas/pandas/tests/series/test_repr.py
[ { "content": " def test_repr(self):\n str(self.ts)\n str(self.series)\n str(self.series.astype(int))\n str(self.objSeries)\n\n str(Series(tm.randn(1000), index=np.arange(1000)))\n str(Series(tm.randn(1000), index=np.arange(1000, 0, step=-1)))\n\n # empty\n ...
[ { "span": "self.assertFalse(\"\\t\" in repr(ser))", "start_line": 100, "start_column": 8, "end_line": 100, "end_column": 43 }, { "span": "self.assertFalse(\"\\r\" in repr(ser))", "start_line": 101, "start_column": 8, "end_line": 101, "end_column": 43 }, { "span": ...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Test", "Serie", "s", "Repr", "_", "(_", "Test", "Data_", ",_", "tm_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\...
[ 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
android/tools_repo/color.py
[ { "content": "#\n# Copyright (C) 2008 The Android Open Source Project\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": "from git_config import GitConfig", "start_line": 19, "start_column": 0, "end_line": 19, "end_column": 32 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "C", ")", " ", "2008", " ", "The", " ", "And", "roid", " ", "Open", " ", "Sou", "rce", " ", "Projec...
[ 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
ImageEngine/gaffer/python/GafferUITest/__init__.py
[ { "content": "##########################################################################\n#\n# Copyright (c) 2011-2012, John Haddon. All rights reserved.\n# Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modi...
[ { "span": "from TestCase import TestCase", "start_line": 37, "start_column": 0, "end_line": 37, "end_column": 29 }, { "span": "from WidgetTest import WidgetTest", "start_line": 38, "start_column": 0, "end_line": 38, "end_column": 33 }, { "span": "from MenuTest imp...
[]
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
ngageoint/cocreate/ccl-cookbook/files/default/cocreatelite/cocreate/createvm/createvm.py
[ { "content": "#createvm.py\n#\n#\n#\n#\n#\n#\n\nimport sys\nprint (\"\\n\".join(sys.path))\n\nfrom pyVmomi import vim\nfrom pyVim.connect import SmartConnect, Disconnect\nimport time\nimport vmutils\nimport subprocess\nimport configparser\nimport json\nfrom passlib.hash import md5_crypt\nimport os\nimport re\n\...
[ { "span": "from pyVmomi import vim", "start_line": 11, "start_column": 0, "end_line": 11, "end_column": 23 }, { "span": "from pyVim.connect import SmartConnect, Disconnect", "start_line": 12, "start_column": 0, "end_line": 12, "end_column": 50 }, { "span": "import...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", "create", "vm", ".", "py_", "\\u\\u\\uNL\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", "_", "\\u\\u\\uNL...
[ 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, 0, 1, 1, 1, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1...
Unused import
jookies/jasmin/jasmin/vendor/smpp/pdu/pdu_encoding.py
[ { "content": "\"\"\"\nCopyright 2009-2010 Mozes, Inc.\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 Unless require...
[ { "span": "from jasmin.vendor.smpp.pdu.pdu_types import DataCodingDefault", "start_line": 24, "start_column": 0, "end_line": 24, "end_column": 62 }, { "span": "from jasmin.vendor.messaging.sms.gsm0338 import encode", "start_line": 26, "start_column": 0, "end_line": 26, "e...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\"\"\"", "\\", "10", ";", "Copy", "right", " ", "200", "9", "-", "2010", " ", "Mo", "zes", ",", " ", "Inc", ".", "\\", "10", ";", "\\", "10", ";", " ", " ", " ", "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...
Except block handles 'BaseException'
Cclleemm/FriendlyTorrent/src/tornado/BitTornado/natpunch.py
[ { "content": " def _get_map(self):\n if self.last_got_map + EXPIRE_CACHE < clock():\n try:\n dispatcher = win32com.client.Dispatch(\"HNetCfg.NATUPnP\")\n self.map = dispatcher.StaticPortMappingCollection\n self.last_got_map = clock()\n ...
[ { "span": "except:", "start_line": 43, "start_column": 12, "end_line": 43, "end_column": 19 }, { "span": "except:", "start_line": 51, "start_column": 8, "end_line": 51, "end_column": 15 }, { "span": "except:", "start_line": 63, "start_column": 8, "end_...
[]
1
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "class_", "\\u", "UP", "n", "P1_", ":_", "#", " ", "derive", "d", " ", "from", " ", "My", "ers", " ", "Car", "pent", "er", "'", "s", " ", "code_", "\\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...
Imprecise assert
cournape/Bento/bento/core/tests/test_node.py
[ { "content": " def test_make_node(self):\n foo = self.d_node.make_node(\"foo\")\n foo.make_node(\"../bar\")\n self.assertTrue(self.d_node.find_node(\"bar\") is not None)", "metadata": "root.TestNodeInsideTemp.test_make_node", "header": "['class', 'TestNodeInsideTemp', '(', 'unitt...
[ { "span": "self.assertTrue(self.d_node.find_node(\"bar\") is not None)", "start_line": 109, "start_column": 8, "end_line": 109, "end_column": 65 } ]
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Test", "Node", "Inside", "Temp_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "make", "\\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, 0, 1, 1...
Unused import
azoft-dev-team/imagrium/env/Lib/test/test_unittest.py
[ { "content": "\"\"\"Test script for unittest.\n\nBy Collin Winter <collinw at gmail.com>\n\nStill need testing:\n TestCase.{assert,fail}* methods (some are tested implicitly)\n\"\"\"\n\nimport sys\nfrom test import test_support\nimport unittest\nfrom unittest import TestCase\nimport types\n\n### Support code...
[ { "span": "import sys", "start_line": 8, "start_column": 0, "end_line": 8, "end_column": 10 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\"\"\"", "Test", " ", "script", " ", "for", " ", "unittest", ".", "\\", "10", ";", "\\", "10", ";", "By", " ", "Colli", "n", " ", "Win", "ter", " ", "<", "colli", "nw",...
[ 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
okfn/bibserver/bibserver/ingest.py
[ { "content": "'''\nIndependent running process.\nHandling uploads asynchronously.\nSee: https://github.com/okfn/bibserver/wiki/AsyncUploadDesign\n'''\n\nimport os, stat, sys, uuid, time\nimport subprocess\nfrom cStringIO import StringIO\nimport requests\nimport hashlib\nimport json\nfrom datetime import datetim...
[ { "span": "from cStringIO import StringIO", "start_line": 8, "start_column": 0, "end_line": 8, "end_column": 30 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "'''", "\\", "10", ";", "Inde", "pend", "ent", " ", "runn", "ing", " ", "process", ".", "\\", "10", ";", "Hand", "ling", " ", "uploads", " ", "async", "hronous", "ly", "."...
[ 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
OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/moves/dbm/__init__.py
[ { "content": "from __future__ import absolute_import\nfrom future.utils import PY3\n\nif PY3:\n from dbm import *\nelse:\n __future_module__ = True\n from whichdb import *\n from anydbm import *\n\n# Py3.3's dbm/__init__.py imports ndbm but doesn't expose it via __all__.\n# In case some (badly writt...
[ { "span": "from dbm import ndbm", "start_line": 14, "start_column": 4, "end_line": 14, "end_column": 24 }, { "span": "from future.moves.dbm import ndbm", "start_line": 17, "start_column": 8, "end_line": 17, "end_column": 41 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "\\u\\u", "future\\u\\u_", "import_", "abs", "olute", "\\u", "import_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "future_", "._", "utils_", "import_", "PY", "3_", "\\u\\u\\uNEWLINE...
[ 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...
Unreachable code
crossbario/autobahn-python/examples/twisted/websocket/streaming/frame_based_client.py
[ { "content": "###############################################################################\n#\n# The MIT License (MIT)\n#\n# Copyright (c) Tavendo GmbH\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"),...
[ { "span": "from autobahn.websocket.compress import PerMessageDeflateOffer, \\\n PerMessageDeflateResponse, \\\n PerMessageDeflateResponseAccept", "start_line": 89, "start_column": 8, "end_line": 91, "end_column": 43 } ]
[]
1
true
[ "[CLS]_", "Unrea", "chab", "le_", "code_", "[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, 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...
Imprecise assert
StackStorm/st2/st2actions/tests/unit/test_actionchain.py
[ { "content": " @mock.patch.object(action_db_util, 'get_action_by_ref',\n mock.MagicMock(return_value=ACTION_1))\n @mock.patch.object(action_service, 'request',\n return_value=(DummyActionExecution(result={'o1': '1'}), None))\n def test_chain_runner_dependent_...
[ { "span": "self.assertTrue(call_args[0][0].parameters in expected_values)", "start_line": 442, "start_column": 12, "end_line": 442, "end_column": 74 }, { "span": "self.assertTrue(call_args[0][0].parameters in expected_values)", "start_line": 464, "start_column": 12, "end_line...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Test", "Action", "Chain", "Runner_", "(_", "Db", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "@_", "mock_", "._", "patch_", "._", "object...
[ 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
neurodata/ndstore/examples/denseannoblack.py
[ { "content": "def main():\n\n parser = argparse.ArgumentParser(description='Cutout a portion of the database.')\n parser.add_argument('baseurl', action=\"store\")\n parser.add_argument('dataset', action=\"store\")\n parser.add_argument('token', action=\"store\")\n parser.add_argument('resolution', action=\...
[ { "span": "annodata ", "start_line": 69, "start_column": 2, "end_line": 69, "end_column": 10 } ]
[ { "span": "annodata ", "start_line": 72, "start_column": 2, "end_line": 72, "end_column": 10 } ]
1
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "main_", "(_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "parser_", "=_", "arg...
[ 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...
Imprecise assert
Miserlou/django-easy-split/easy_split/tests/test_daily_report.py
[ { "content": " def testExperimentGroupParticipantFinder(self):\n days = [datetime.combine(date.today() + timedelta(days=i), time(hour=12))\n for i in range(-7, 0)]\n \n experiment = Experiment(name=\"experiment1\")\n experiment.save()\n experiment.state = Exp...
[ { "span": "self.assertTrue(anonymous_visitors[0] in ex1day2visitors)", "start_line": 314, "start_column": 8, "end_line": 314, "end_column": 65 }, { "span": "self.assertTrue(anonymous_visitors[0] in ex1day4testvisitors)", "start_line": 319, "start_column": 8, "end_line": 319, ...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Test", "Da", "il", "y", "Report", "s_", "(_", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test", "Experiment", "Group", "Partici...
[ 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
karesansui/karesansui/bin/restart_network_interface.py
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# This file is part of Karesansui.\n#\n# Copyright (C) 2012 HDE, Inc.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the S...
[ { "span": "import os", "start_line": 26, "start_column": 0, "end_line": 26, "end_column": 9 }, { "span": "import logging", "start_line": 28, "start_column": 0, "end_line": 28, "end_column": 14 }, { "span": "import fcntl", "start_line": 29, "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_", "#", " ", "-*-", " ", "codi", "ng", ":", " ", "utf", "-", "8", " ", "-*-", "_", "\\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
amrdraz/kodr/app/brython/www/src/Lib/test/test_timeit.py
[ { "content": " def test_main_exception(self):\n with captured_stderr() as error_stringio:\n s = self.run_main(switches=['1/0'])\n self.assert_exc_string(error_stringio.getvalue(), 'ZeroDivisionError')", "metadata": "root.TestTimeit.test_main_exception", "header": "['class', '...
[ { "span": "s ", "start_line": 292, "start_column": 12, "end_line": 292, "end_column": 13 }, { "span": "s ", "start_line": 297, "start_column": 12, "end_line": 297, "end_column": 13 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Test", "Time", "it_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "main", "\\u", "exceptio...
[ 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, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
aellerton/demo-allauth-bootstrap/allauthdemo/auth/admin.py
[ { "content": "from django.contrib import admin\n#from django.utils.html import format_html_join\n#from django.utils.safestring import mark_safe\n#from django.utils.encoding import python_2_unicode_compatible\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.contrib.auth.admin import UserAdmi...
[ { "span": "from django.utils.encoding import force_text", "start_line": 7, "start_column": 4, "end_line": 7, "end_column": 48 }, { "span": "from django.utils.encoding import force_unicode as force_text", "start_line": 9, "start_column": 4, "end_line": 9, "end_column": 65 ...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "django_", "._", "contrib_", "import_", "admin_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "#", "from", " ", "django", ".", "util", "s", ".", "html", " ", "import", " ", "format\\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
rwalk333/straw/aws_config/configure/configure_kafka.py
[ { "content": "#!/usr/bin/python3\n#\n# Configure Kafka on ec2 instances\n#\n\nimport boto3, os, sys\nfrom botocore.exceptions import ClientError as BotoClientError\nfrom time import sleep\nsys.path.append(\"..\")\nfrom create_clusters import get_tag, keyfile\n\n# configuration\nmy_instances_filters = [{ 'Name...
[ { "span": "from botocore.exceptions import ClientError as BotoClientError", "start_line": 6, "start_column": 0, "end_line": 6, "end_column": 62 }, { "span": "from time import sleep", "start_line": 7, "start_column": 0, "end_line": 7, "end_column": 22 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#!", "/", "usr", "/", "bin", "/", "python", "3_", "\\u\\u\\uNL\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", " ", " ", "Configure", " ", "Ka", "fk", "a", " ", "on"...
[ 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 1, 1...
Unused local variable
tienfuc/gdcmdtools/gdcmdtools/put.py
[ { "content": " def gas_pack(self):\n map_type_ext = {\"server_js\": \"js\", \"html\": \"html\"}\n json_packed = {}\n try:\n with open(self.source_file, \"rb\") as fr1:\n jsons = json.loads(fr1.read())\n\n path = os.path.split(self.source_file)[0]\...
[ { "span": "json_packed ", "start_line": 162, "start_column": 8, "end_line": 162, "end_column": 19 }, { "span": "url ", "start_line": 359, "start_column": 12, "end_line": 359, "end_column": 15 }, { "span": "url ", "start_line": 361, "start_column": 12, ...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "GD", "Put", "_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "gas", "\\u", "pack_", "(_", "self_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\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, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
openelections/openelections-core/openelex/us/ga/load.py
[ { "content": "import re\nimport csv\nimport xlrd\nimport unicodecsv\n\nfrom openelex.base.load import BaseLoader\nfrom openelex.models import RawResult\nfrom openelex.lib.text import ocd_type_id, slugify\nfrom .datasource import Datasource\n\n\"\"\"\nJust getting things stubbed out for GA\n\"\"\"\n\n\n\n\n", ...
[ { "span": "import re", "start_line": 0, "start_column": 0, "end_line": 0, "end_column": 9 }, { "span": "import csv", "start_line": 1, "start_column": 0, "end_line": 1, "end_column": 10 }, { "span": "import xlrd", "start_line": 2, "start_column": 0, "en...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "re_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "csv_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "xlr", "d_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "unicode", "csv_", "\\u\\u\\uNE...
[ 4, 4, 4, 4, 4, 2, 2, 0, 1, 2, 0, 1, 2, 0, 1, 1, 2, 0, 1, 1, 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, 2, 2, 2, 2, 2, 2...
Constant in conditional expression or statement
fp7-ofelia/ocf/ofam/src/src/foam/api/admin.py
[ { "content": " def gapi_CreateSliver(self, slice_urn, credentials, rspec, users, force_approval=False, options=None):\t\n #GENI API imports\n from foam.geni.db import GeniDB, UnknownSlice, UnknownNode\n import foam.geni.approval\n import foam.geni.ofeliaapproval\n import sfa\n user_info = use...
[ { "span": "True:", "start_line": 671, "start_column": 9, "end_line": 671, "end_column": 13 }, { "span": "True:", "start_line": 724, "start_column": 9, "end_line": 724, "end_column": 13 } ]
[]
1
true
[ "[CLS]_", "Constant_", "in_", "conditional", "_", "expression_", "or_", "statement_", "[SEP]_", "class_", "Admi", "n", "API", "v1_", "(_", "Dispatcher_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "gap", "i", "\...
[ 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 local variable
jmcnamara/XlsxWriter/xlsxwriter/test/comparison/test_hyperlink04.py
[ { "content": " def test_create_file(self):\n \"\"\"Test the creation of a simple XlsxWriter file with hyperlinks.\"\"\"\n\n workbook = Workbook(self.got_filename)\n\n # Turn off default URL format for testing.\n workbook.default_url_format = None\n\n worksheet1 = workbook.a...
[ { "span": "worksheet2 ", "start_line": 38, "start_column": 8, "end_line": 38, "end_column": 18 }, { "span": "worksheet3 ", "start_line": 39, "start_column": 8, "end_line": 39, "end_column": 18 }, { "span": "worksheet2 ", "start_line": 62, "start_column": 8...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Test", "Compare", "XL", "SX", "Files_", "(_", "Exce", "l", "Compari", "son", "Test_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\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...
Imprecise assert
PyTables/PyTables/tables/tests/test_links.py
[ { "content": " def _createFile(self):\n self.h5file.create_array('/', 'arr1', [1, 2])\n group1 = self.h5file.create_group('/', 'group1')\n arr2 = self.h5file.create_array(group1, 'arr2', [1, 2, 3])\n lgroup1 = self.h5file.create_hard_link('/', 'lgroup1', '/group1')\n self.a...
[ { "span": "self.assertTrue(lgroup1 is not None)", "start_line": 39, "start_column": 8, "end_line": 39, "end_column": 44 }, { "span": "self.assertTrue(larr1 is not None)", "start_line": 41, "start_column": 8, "end_line": 41, "end_column": 42 }, { "span": "self.asse...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Hard", "Link", "Test", "Case_", "(_", "common_", "._", "Temp", "File", "Mixin_", ",_", "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...
Missing call to `__init__` during object initialization
CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/api/OpenMaya.py
[ { "content": " def __init__(*args, **kwargs):\n \"\"\"\n x.__init__(...) initializes x; see help(type(x)) for signature\n \"\"\"\n \n pass", "metadata": "root.MFnBase.__init__", "header": "['class', 'MFnBase', '(', 'object', ')', ':', '___EOS___']", "index": 714 }...
[ { "span": "class MFnComponent(MFnBase):", "start_line": 12872, "start_column": 0, "end_line": 12872, "end_column": 28 }, { "span": "class MDagModifier(MDGModifier):", "start_line": 12928, "start_column": 0, "end_line": 12928, "end_column": 32 }, { "span": "class M...
[ { "span": "def __init__(*args, **kwargs):", "start_line": 714, "start_column": 4, "end_line": 714, "end_column": 34 }, { "span": "def __init__(*args, **kwargs):", "start_line": 3933, "start_column": 4, "end_line": 3933, "end_column": 34 }, { "span": "def __init__(...
1
false
[ "[CLS]_", "Missing", "_", "call_", "to_", " _", "`_", "\\u\\u", "init\\u\\u_", "`_", "dur", "ing_", "object_", "initialization", "_", "[SEP]_", "class_", "MF", "n", "Base_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", ...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 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...
Implicit string concatenation in a list
coursera/dataduct/dataduct/database/tests/test_database.py
[ { "content": " def test_database_recreate_table_dependencies(self):\n \"\"\"Recreating table dependencies\n \"\"\"\n view = create_view(\n \"\"\"CREATE VIEW view AS (\n SELECT id1 FROM second_table\n );\"\"\")\n database = Database(relations=[s...
[ { "span": "'ALTER TABLE first_table ADD FOREIGN KEY (id2) '\n 'REFERENCES second_table (id2)',", "start_line": 211, "start_column": 18, "end_line": 212, "end_column": 49 } ]
[]
1
true
[ "[CLS]_", "Implicit", "_", "string_", "concate", "nation_", "in_", "a_", "list_", "[SEP]_", "class_", "Test", "Database_", "(_", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "databa", "...
[ 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, 2...
Unused import
GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/datastore/datastore_pb.py
[ { "content": "#!/usr/bin/env python\n#\n# Copyright 2007 Google Inc.\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# U...
[ { "span": "from google.appengine.datastore.action_pb import Action", "start_line": 30, "start_column": 0, "end_line": 30, "end_column": 55 }, { "span": "from google.appengine.datastore.entity_pb import CompositeIndex", "start_line": 31, "start_column": 0, "end_line": 31, ...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#!", "/", "usr", "/", "bin", "/", "env", " ", "python_", "\\u\\u\\uNL\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Copy", "right", " ", "2007", " ", "Goo", "gle", ...
[ 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
saga-project/BigJob/examples/pilot-api/example-pilot-compute-data-cloud.py
[ { "content": "import sys\nimport os\nimport time\nimport logging\nimport uuid\n#logging.basicConfig(level=logging.DEBUG)\n\n#sys.path.append(os.path.join(os.path.dirname(__file__), \"../..\"))\nfrom pilot import PilotComputeService, PilotDataService, ComputeDataService, State\nfrom bigjob import logger \n\nCOOR...
[ { "span": "import sys", "start_line": 0, "start_column": 0, "end_line": 0, "end_column": 10 }, { "span": "import time", "start_line": 2, "start_column": 0, "end_line": 2, "end_column": 11 }, { "span": "import logging", "start_line": 3, "start_column": 0, ...
[]
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_", "time_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "logging_", "\\u\\u\\uNEWLINE\\u\\u\\u_...
[ 4, 4, 4, 4, 4, 2, 2, 0, 1, 2, 2, 2, 2, 0, 1, 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...
Testing equality to None
operasoftware/tlsprober/cluster_start.py
[ { "content": "# Copyright 2010-2012 Opera Software ASA \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# Un...
[ { "span": "proc.poll() == None:", "start_line": 248, "start_column": 7, "end_line": 248, "end_column": 26 }, { "span": "proc.poll() == None:", "start_line": 288, "start_column": 7, "end_line": 288, "end_column": 26 } ]
[]
1
true
[ "[CLS]_", "Test", "ing_", "equality", "_", "to_", "None_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", " ", " ", "Copy", "right", " ", "2010", "-", "2012", " ", "Opera", " ", "Sof", "twa", "re", " ", "AS", "A", " _", "\\u\\u\\uNL\\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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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
rizar/attention-lvcsr/libs/Theano/benchmark/convolution/opencv.py
[ { "content": "from __future__ import print_function\nimport sys, timeit\nimport numpy\nimport scikits.image.opencv\n\ntry:\n img_shape = int(sys.argv[1]), int(sys.argv[2])\n ker_shape = int(sys.argv[3]), int(sys.argv[4])\n dtype = sys.argv[5]\nexcept:\n print(\"Usage: %s <img rows> <img cols> <ker...
[ { "span": "import numpy", "start_line": 2, "start_column": 0, "end_line": 2, "end_column": 12 }, { "span": "import scikits.image.opencv", "start_line": 3, "start_column": 0, "end_line": 3, "end_column": 27 } ]
[]
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_", ",_", "timeit_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "numpy_"...
[ 4, 4, 4, 4, 4, 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
First argument to super() is not enclosing class
ckcollab/polished/polished/backends/simple.py
[ { "content": " def prepare(self):\n '''\n After changing git revisions, prepare the repository, make sure you call super!\n '''\n super(BaseBackend, self).prepare()", "metadata": "root.SimpleBackend.prepare", "header": "['class', 'SimpleBackend', '(', 'BaseBackend', ')', '...
[ { "span": "super(BaseBackend, self).", "start_line": 20, "start_column": 8, "end_line": 20, "end_column": 32 }, { "span": "super(BaseBackend, self).", "start_line": 26, "start_column": 8, "end_line": 26, "end_column": 32 }, { "span": "super(BaseBackend, self).", ...
[]
1
true
[ "[CLS]_", "First_", "argument_", "to_", "super_", "(_", ")_", "is_", "not_", "encl", "osin", "g_", "class_", "[SEP]_", "class_", "Simple", "Backend_", "(_", "Base", "Backend_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "prepare_", "(_"...
[ 4, 4, 4, 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...
Unused import
open-cloud/xos/xos/synchronizers/base/steps/sync_controller_slice_privileges.py
[ { "content": "import os\nimport base64\nfrom collections import defaultdict\nfrom django.db.models import F, Q\nfrom xos.config import Config\nfrom synchronizers.base.openstacksyncstep import OpenStackSyncStep\nfrom synchronizers.base.syncstep import *\nfrom core.models.slice import Controller, SlicePrivilege \...
[ { "span": "import os", "start_line": 0, "start_column": 0, "end_line": 0, "end_column": 9 }, { "span": "import base64", "start_line": 1, "start_column": 0, "end_line": 1, "end_column": 13 }, { "span": "from collections import defaultdict", "start_line": 2, ...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "os_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "base64_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "collections_", "import_", "defaultdict_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "dja...
[ 4, 4, 4, 4, 4, 2, 2, 0, 1, 2, 0, 1, 2, 0, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 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...
Imprecise assert
dchaplinsky/visual-logging/vlogging/tests/basic.py
[ { "content": " def test_nothing(self):\n s = str(vlogging.VisualRecord())\n self.assertTrue(\"<hr/>\" in s)", "metadata": "root.BasicTestCase.test_nothing", "header": "['class', 'BasicTestCase', '(', 'unittest', '.', 'TestCase', ')', ':', '___EOS___']", "index": 11 }, { "con...
[ { "span": "self.assertTrue(\"<hr/>\" in s)", "start_line": 13, "start_column": 8, "end_line": 13, "end_column": 37 }, { "span": "self.assertTrue(\"title\" in s)", "start_line": 17, "start_column": 8, "end_line": 17, "end_column": 37 }, { "span": "self.assertTrue(\...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Basic", "Test", "Case_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "def_", "test\\u", "nothing_", "...
[ 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, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 2, 2, 2, 2, 2...
Unused import
sassoftware/conary/conary/repository/__init__.py
[ { "content": "#\n# Copyright (c) SAS Institute Inc.\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# Unless required by...
[ { "span": "from conary.repository import changeset", "start_line": 20, "start_column": 0, "end_line": 20, "end_column": 39 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "c", ")", " ", "SAS", " ", "Institut", "e", " ", "Inc", "._", "\\u\\u\\uNL\\u\\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
ReactiveX/RxPY/tests/test_observable/test_takeuntil.py
[ { "content": "import unittest\n\nfrom rx import Observable\nfrom rx.testing import TestScheduler, ReactiveTest, is_prime, MockDisposable\nfrom rx.disposables import Disposable, SerialDisposable\n\non_next = ReactiveTest.on_next\non_completed = ReactiveTest.on_completed\non_error = ReactiveTest.on_error\nsubscri...
[ { "span": "from rx.testing import TestScheduler, ReactiveTest, is_prime, MockDisposable", "start_line": 3, "start_column": 0, "end_line": 3, "end_column": 76 }, { "span": "from rx.disposables import Disposable, SerialDisposable", "start_line": 4, "start_column": 0, "end_line"...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "unittest_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "from_", "rx_", "import_", "Observable_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "rx_", "._", "testing_", "import_...
[ 4, 4, 4, 4, 4, 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, 1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Variable defined multiple times
ml-slac/deep-jets/training/visualize-conv.py
[ { "content": "def filter_grid(filters, labels=None, nfilters='all', shape=None, normalize=True, cmap=None, symmetric=True):\n '''\n A tool for visualizing filters on a grid.\n\n Args:\n filters (iterable): each element should be an \n image with len(image.shape) == 2\n\n nfilte...
[ { "span": "image ", "start_line": 78, "start_column": 12, "end_line": 78, "end_column": 17 }, { "span": "image ", "start_line": 81, "start_column": 12, "end_line": 81, "end_column": 17 } ]
[]
1
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "filter", "\\u", "grid_", "(_", "filters_", ",_", "labels_", "=_", "None_", ",_", "nfi", "lter", "s_", "=_", "'", "all", "'_",...
[ 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
ImageEngine/gaffer/python/GafferUITest/BoxUITest.py
[ { "content": "\tdef testDisabledNodulesAfterCutAndPaste( self ) :\n\n\t\ts = Gaffer.ScriptNode()\n\t\tg = GafferUI.GraphGadget( s )\n\n\t\ts[\"b\"] = Gaffer.Box()\n\t\ts[\"b\"][\"n\"] = self.NodulePositionNode()\n\n\t\tg = GafferUI.GraphGadget( s )\n\n\t\ts[\"b\"].promotePlug( s[\"b\"][\"n\"][\"op1\"] )\n\t\tp ...
[ { "span": "g ", "start_line": 165, "start_column": 2, "end_line": 165, "end_column": 3 } ]
[]
1
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "class_", "Box", "UI", "Test_", "(_", "Ga", "ffer", "UI", "Test_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test", ...
[ 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, 0, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
neuropoly/spinalcordtoolbox/dev/atlas/validate_atlas/plot_abs_error_vs_csf_values.py
[ { "content": "def main():\n results_folder = param_default.results_folder\n methods_to_display = param_default.methods_to_display\n\n # Parameters for debug mode\n if param_default.debug:\n print '\\n*** WARNING: DEBUG MODE ON ***\\n'\n results_folder = \"/Users/slevy_local/spinalcordt...
[ { "span": "std_per_label ", "start_line": 237, "start_column": 4, "end_line": 237, "end_column": 17 }, { "span": "max_abs_error_per_meth ", "start_line": 240, "start_column": 4, "end_line": 240, "end_column": 26 }, { "span": "min_abs_error_per_meth ", "start_l...
[]
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_", "main_", "(_", ")_", ":_", "\\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...
Imprecise assert
rcbops/glance-buildpackage/glance/tests/functional/test_cache_middleware.py
[ { "content": " def verify_no_images(self):\n path = \"http://%s:%d/v1/images\" % (\"0.0.0.0\", self.api_port)\n http = httplib2.Http()\n response, content = http.request(path, 'GET')\n self.assertEqual(response.status, 200)\n data = json.loads(content)\n self.assertT...
[ { "span": "self.assertTrue('images' in data)", "start_line": 219, "start_column": 8, "end_line": 219, "end_column": 41 }, { "span": "self.assertTrue('cached_images' in data)", "start_line": 254, "start_column": 8, "end_line": 254, "end_column": 48 }, { "span": "se...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Base", "Cache", "Manage", "Mid", "dle", "ware", "Test_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "verify", "\\u", "no", "\\u", "images_", "(_", "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 local variable
cpbotha/nvpy/nvpy/nvpy.py
[ { "content": " def observer_view_keep_house(self, view, evt_type, evt):\n # queue up all notes that need to be saved\n nsaved = self.notes_db.save_threaded()\n msg = self.helper_save_sync_msg()\n\n if self.config.simplenote_sync:\n nsynced, sync_errors = self.notes_db.s...
[ { "span": "nsaved ", "start_line": 494, "start_column": 8, "end_line": 494, "end_column": 14 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Controller_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "observer", "\\u", "view", "\\u", "keep", "\\u", "house_", "(_", "self_", ",_", "view_", ",...
[ 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, 0, 1, 1, 2, 2, 2, 2...
Unused import
ggordan/GutterColor/file.py
[ { "content": "from sublime import Region\nfrom threading import Thread\nfrom .line import Line\n\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content": "class File():\n \"\"\" A File corresponds to one sublime.View \"\"\"\n\n", "metadata": "root.File", ...
[ { "span": "from threading import Thread", "start_line": 1, "start_column": 0, "end_line": 1, "end_column": 28 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "sublime_", "import_", "Region_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "threading_", "import_", "Thread_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "._", "line_", "import_", "Line_",...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 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, 2, 2, 2...
Unused import
iogf/vy/vyapp/plugins/cmd.py
[ { "content": "\"\"\"\nOverview\n========\n\nIt implements functionalities to execute python code that affects vy state. \n\nUsage\n=====\n\nIn order to use the functionalities of this module it is needed to introduce the concept of target that is implemented\nin vy. It is possible to instantiate more than an Ar...
[ { "span": "import sys", "start_line": 57, "start_column": 0, "end_line": 57, "end_column": 10 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\"\"\"", "\\", "10", ";", "Over", "view", "\\", "10", ";", "=======", "=", "\\", "10", ";", "\\", "10", ";", "It", " ", "implement", "s", " ", "functional", "iti", "es", ...
[ 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...
Variable defined multiple times
openstack/horizon/openstack_dashboard/test/api_tests/base_tests.py
[ { "content": " def test_url_for(self):\n url = api_base.url_for(self.request, 'image')\n self.assertEqual('http://public.glance.example.com:9292/v1', url)\n\n url = api_base.url_for(self.request, 'image', endpoint_type='adminURL')\n self.assertEqual('http://admin.glance.example.co...
[ { "span": "url ", "start_line": 218, "start_column": 12, "end_line": 218, "end_column": 15 }, { "span": "url ", "start_line": 231, "start_column": 12, "end_line": 231, "end_column": 15 } ]
[ { "span": "url ", "start_line": 221, "start_column": 8, "end_line": 221, "end_column": 11 }, { "span": "url ", "start_line": 234, "start_column": 8, "end_line": 234, "end_column": 11 } ]
1
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "class_", "Ap", "i", "Help", "er", "Tests_", "(_", "test_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "test\\u", "url", "\\u", "for_", "(_", "...
[ 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
eBay/bayesian-belief-networks/bayesian/factor_graph.py
[ { "content": "def make_factor_node_message(node, target_node):\n '''\n The rules for a factor node are:\n take the product of all the incoming\n messages (except for the destination\n node) and then take the sum over\n all the variables except for the\n destination variable.\n >>> def f(...
[ { "span": "args ", "start_line": 423, "start_column": 4, "end_line": 423, "end_column": 8 }, { "span": "iterations ", "start_line": 613, "start_column": 4, "end_line": 613, "end_column": 14 }, { "span": "variable_nodes ", "start_line": 617, "start_column":...
[]
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_", "make", "\\u", "factor", "\\u", "node", "\\u", "message_", "(_", "node_", ",_", "target", "\\u", "node_", ")_",...
[ 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
arachnys/cabot/cabot/cabotapp/migrations/0008_auto__add_field_statuscheckresult_job_number.py
[ { "content": "# -*- coding: utf-8 -*-\nimport 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(SchemaMigration):\n\n\n\n\n\n mode...
[ { "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_", "#", " ", "-*-", " ", "codi", "ng", ":", " ", "utf", "-", "8", " ", "-*-", "_", "\\u\\u\\uNL\\u\\u\\u_", "import_", "datetime_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "south_", "...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 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, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
First parameter of a method is not named 'self'
cornell-brg/pymtl/pclib/rtl/regs.py
[ { "content": " def __init__( s, dtype = 1 ):\n\n s.in_ = InPort ( dtype )\n s.out = OutPort ( dtype )\n\n @s.posedge_clk\n def seq_logic():\n s.out.next = s.in_", "metadata": "root.Reg.__init__", "header": "['class', 'Reg', '(', 'Model', ')', ':', '___EOS___']", "index": 12 }, ...
[ { "span": "def __init__( s, dtype = 1 ):", "start_line": 12, "start_column": 2, "end_line": 12, "end_column": 31 }, { "span": "def line_trace( s ):", "start_line": 21, "start_column": 2, "end_line": 21, "end_column": 22 }, { "span": "def __init__( s, dtype = 1 ):"...
[]
1
true
[ "[CLS]_", "First_", "parameter_", "of_", "a_", "method_", "is_", "not_", "named_", "'", "self", "'_", "[SEP]_", "class_", "Reg_", "(_", "Model_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "\\u\\u", "init\\u\\u_", "(_", "s_", ",_", "d...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 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, 2, 2, 2, 2...
Imprecise assert
revsys/django-friendship/friendship/tests/tests.py
[ { "content": " def test_friendship_view_users(self):\n url = reverse('friendship_view_users')\n\n # test that the view requires authentication to access it\n response = self.client.get(url)\n self.assertResponse200(response)\n\n with self.settings(FRIENDSHIP_CONTEXT_OBJECT_...
[ { "span": "self.assertTrue('object_list' in response.context)", "start_line": 249, "start_column": 12, "end_line": 249, "end_column": 62 }, { "span": "self.assertTrue('user' in response.context)", "start_line": 257, "start_column": 8, "end_line": 257, "end_column": 51 }...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Friends", "hip", "View", "Tests_", "(_", "Base", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "friends", "hip", "\\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 local variable
zzzeek/sqlalchemy/test/dialect/postgresql/test_reflection.py
[ { "content": " @classmethod\n def define_tables(cls, metadata):\n from sqlalchemy.testing import config\n dblink = config.file_config.get(\n 'sqla_testing', 'postgres_test_db_link')\n\n testtable = Table(\n 'testtable', metadata,\n Column('id', Integer...
[ { "span": "testtable ", "start_line": 31, "start_column": 8, "end_line": 31, "end_column": 17 }, { "span": "t ", "start_line": 306, "start_column": 8, "end_line": 306, "end_column": 9 }, { "span": "t ", "start_line": 327, "start_column": 8, "end_line":...
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Fore", "ign", "Table", "Reflect", "ion", "Test_", "(_", "fixtures_", "._", "Table", "s", "Test_", ",_", "Assert", "s", "Execut", "ion", "Results_", ")_", ":_", "\\u\\u\\uEOS\\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...
Incomplete URL substring sanitization
meejah/txtorcon/test/test_addrmap.py
[ { "content": " def test_expires(self):\n \"\"\"\n Test simply expiry case\n \"\"\"\n\n clock = task.Clock()\n am = AddrMap()\n am.scheduler = IReactorTime(clock)\n\n now = datetime.datetime.now() + datetime.timedelta(seconds=10)\n nowutc = datetime.date...
[ { "span": "'www.example.com' in am.addr)", "start_line": 58, "start_column": 24, "end_line": 58, "end_column": 52 }, { "span": "'www.example.com' in am.addr)", "start_line": 76, "start_column": 24, "end_line": 76, "end_column": 52 }, { "span": "'www.example.com' i...
[]
1
true
[ "[CLS]_", "Incomp", "lete", "_", "URL_", "substring", "_", "sani", "ti", "zation_", "[SEP]_", "class_", "Add", "r", "Map", "Tests_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\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 import
QuantSoftware/QuantSoftwareToolkit/bin/DataGenerate_SineWave.py
[ { "content": "import datetime as dt\nimport csv\nimport copy\nimport os\nimport pickle\nimport math\n\n# 3rd party imports\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport pandas as pd\n\n# QSTK imports\nfrom QSTK.qstkutil import qsdateutil as du\n# import qstkutil.DataEvolved as de\n\n\n\n\n\nif __...
[ { "span": "import csv", "start_line": 1, "start_column": 0, "end_line": 1, "end_column": 10 }, { "span": "import copy", "start_line": 2, "start_column": 0, "end_line": 2, "end_column": 11 }, { "span": "import os", "start_line": 3, "start_column": 0, "e...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "datetime_", "as_", "dt_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "csv_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "copy_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "os_", "\\u\\u\...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 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, 0, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
IEEERobotics/bot/bot/test_hardware/arm_test.py
[ { "content": "import os \nfrom time import sleep\nimport bot.hardware.complex_hardware.robot_arm as RA \nimport bot.lib.lib as lib \n\nbot_config = lib.get_config()\n\narm_config = bot_config[\"dagu_arm\"] \n\narm = RA.RobotArm(arm_config) \n\n\n\narm.competition_solver_barge('B')\n", "metadata": "root", ...
[ { "span": "import os ", "start_line": 0, "start_column": 0, "end_line": 0, "end_column": 9 }, { "span": "from time import sleep", "start_line": 1, "start_column": 0, "end_line": 1, "end_column": 22 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "os_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "time_", "import_", "sleep_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "bot_", "._", "hardware_", "._", "complex", "\\u", "hardware_...
[ 4, 4, 4, 4, 4, 2, 2, 0, 1, 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
trailbehind/DeepOSM/src/label_chunks_cnn.py
[ { "content": "def train_neural_net(bands_to_use, \n image_size, \n train_images, \n train_labels, \n test_images, \n test_labels, \n convolution_patch_size,\n number_of_bat...
[ { "span": "loss ", "start_line": 88, "start_column": 2, "end_line": 88, "end_column": 6 }, { "span": "index ", "start_line": 116, "start_column": 2, "end_line": 116, "end_column": 7 } ]
[]
1
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "train", "\\u", "neural", "\\u", "net_", "(_", "band", "s", "\\u", "to", "\\u", "use_", ",_", "\\u\\u\\uNL\\u\\u\\u_", "image", "\\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...
Imprecise assert
dimagi/commcare-hq/corehq/apps/reports/tests/test_export_api.py
[ { "content": " def testExportTokenMigration(self):\n c = Client()\n c.login(**{'username': 'test', 'password': 'foobar'})\n\n _submit_form()\n time.sleep(1)\n resp = get_export_response(c)\n self.assertEqual(200, resp.status_code)\n self.assertTrue(_content(re...
[ { "span": "self.assertTrue(_content(resp) is not None)", "start_line": 90, "start_column": 8, "end_line": 90, "end_column": 51 }, { "span": "self.assertTrue(\"X-CommCareHQ-Export-Token\" in resp)", "start_line": 91, "start_column": 8, "end_line": 91, "end_column": 60 },...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Export", "Test_", "(_", "Base", "Account", "ing", "Test_", ",_", "Doma", "in", "Subscription", "Mixin_", ")_", ":_", "\\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
fasrc/slurmmon/lib/python/site-packages/slurmmon/tests/test_util.py
[ { "content": "# Copyright (c) 2013-2014\n# Harvard FAS Research Computing\n# All rights reserved.\n\n\"\"\"unit tests\"\"\"\n\nimport sys, os\nimport unittest\n\ntry:\n\timport slurmmon\nexcept ImportError:\n\tsys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')))\n\timport slurmmon\...
[ { "span": "import slurmmon", "start_line": 10, "start_column": 1, "end_line": 10, "end_column": 16 }, { "span": "import slurmmon", "start_line": 13, "start_column": 1, "end_line": 13, "end_column": 16 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "c", ")", " ", "2013", "-", "2014_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Har", "vard", " ", "FA", "S", " ", "Rese", "arch", " ", "Comp...
[ 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
ProgVal/Limnoria/plugins/PluginDownloader/config.py
[ { "content": "###\n# Copyright (c) 2011, Valentin Lorentz\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 source code must retain the above copyright notic...
[ { "span": "import supybot.registry as registry", "start_line": 31, "start_column": 0, "end_line": 31, "end_column": 35 }, { "span": "from supybot.i18n import PluginInternationalization, internationalizeDocstring", "start_line": 32, "start_column": 0, "end_line": 32, "end_...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "###", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "c", ")", " ", "2011", ",", " ", "Val", "enti", "n", " ", "Lore", "ntz", "_", "\\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
hoytak/treedict/tests/test_retrieval.py
[ { "content": "#!/usr/bin/env python\n\n# Copyright (c) 2009-2011, Hoyt Koepke (hoytak@gmail.com)\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# - Redistributions of source code...
[ { "span": "import random, unittest, collections", "start_line": 28, "start_column": 0, "end_line": 28, "end_column": 36 }, { "span": "from treedict import TreeDict, getTree", "start_line": 29, "start_column": 0, "end_line": 29, "end_column": 38 }, { "span": "impor...
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#!", "/", "usr", "/", "bin", "/", "env", " ", "python_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "c", ")", " ", "200", "9", "-"...
[ 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...
Variable defined multiple times
networkx/networkx/networkx/algorithms/flow/capacityscaling.py
[ { "content": "def capacity_scaling(G, demand='demand', capacity='capacity', weight='weight',\n heap=BinaryHeap):\n r\"\"\"Find a minimum cost flow satisfying all demands in digraph G.\n\n This is a capacity scaling successive shortest augmenting path algorithm.\n\n G is a digraph wi...
[ { "span": "flow ", "start_line": 287, "start_column": 20, "end_line": 287, "end_column": 24 } ]
[ { "span": "flow ", "start_line": 289, "start_column": 24, "end_line": 289, "end_column": 28 }, { "span": "flow ", "start_line": 377, "start_column": 16, "end_line": 377, "end_column": 20 } ]
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_", "def_", "capacit", "y", "\\u", "scaling_", "(_", "G_", ",_", "demand_", "=_", "'", "demand", "'_", ",_", "cap...
[ 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...
Imprecise assert
splunk/splunk-sdk-python/tests/test_role.py
[ { "content": " def check_role(self, role):\n self.check_entity(role)\n capabilities = role.service.capabilities\n for capability in role.content.capabilities:\n self.assertTrue(capability in capabilities)", "metadata": "root.RoleTestCase.check_role", "header": "['class...
[ { "span": "self.assertTrue(capability in capabilities)", "start_line": 37, "start_column": 12, "end_line": 37, "end_column": 55 }, { "span": "self.assertTrue(self.role_name in self.service.roles)", "start_line": 52, "start_column": 8, "end_line": 52, "end_column": 61 },...
[]
1
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Ro", "le", "Test", "Case_", "(_", "testlib_", "._", "SD", "KT", "est", "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_", "\\...
[ 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
PaloAltoNetworks/SplunkforPaloAltoNetworks/bin/panContentPack.py
[ { "content": "#!/usr/bin/env python\n\n# Copyright (c) 2015, Palo Alto Networks\n#\n# Permission to use, copy, modify, and/or distribute this software for any\n# purpose with or without fee is hereby granted, provided that the above\n# copyright notice and this permission notice appear in all copies.\n#\n# THE ...
[ { "span": "import environment", "start_line": 52, "start_column": 0, "end_line": 52, "end_column": 18 }, { "span": "import splunk.entity as entity ", "start_line": 60, "start_column": 4, "end_line": 60, "end_column": 34 } ]
[]
1
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#!", "/", "usr", "/", "bin", "/", "env", " ", "python_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "c", ")", " ", "201", "5", ","...
[ 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
sightmachine/SimpleCV/SimpleCV/base.py
[ { "content": "#!/usr/bin/python\n\n# SimpleCV system includes\nimport os\nimport sys\nimport warnings\nimport time\nimport socket\nimport re\nimport urllib2\nimport types\nimport SocketServer\nimport threading\nimport tempfile\nimport zipfile\nimport pickle\nimport glob #for directory scanning\nimport abc #abst...
[ { "span": "import warnings", "start_line": 5, "start_column": 0, "end_line": 5, "end_column": 15 }, { "span": "import time", "start_line": 6, "start_column": 0, "end_line": 6, "end_column": 11 }, { "span": "import socket", "start_line": 7, "start_column": ...
[]
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_", "#", " ", "Simple", "CV", " ", "system", " ", "includes_", "\\u\\u\\uNL\\u\\u\\u_", "im...
[ 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, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 2, 2, 2, 0, 1, 2, 0, 1, 1, 1, 2, 0, 1, 2, 2, 2, 2, 2, 2, 2, 0...