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
Redundant comparison
martyzz1/heroku3.py/heroku3/api.py
[ { "content": " def _get_data(self, resource, params=None, legacy=None, order_by=None, limit=None, valrange=None, sort=None):\n\n r = self._http_resource('GET', resource, params=params, legacy=legacy, order_by=order_by, limit=limit, valrange=valrange, sort=sort)\n\n items = self._resource_deseri...
[]
[]
0
true
[ "[CLS]_", "Redu", "ndan", "t_", "comparison_", "[SEP]_", "class_", "Hero", "ku", "Core_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u", "get", "\\u", "data_", "(_", "self_", ",_", "resourc...
[ 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
mozilla/addons-server/src/olympia/amo/tests/test_celery.py
[ { "content": " def test_cache_start_time(self):\n fake_task.delay()\n assert self.cache.set.call_args[0][0].startswith('task_start_time')", "metadata": "root.TestTaskTiming.test_cache_start_time", "header": "['class', 'TestTaskTiming', '(', 'unittest', '.', 'TestCase', ')', ':', '___EOS...
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Test", "Task", "Tim", "ing_", "(_", "unittest_", "._", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "cache", "\\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...
Testing equality to None
scrapy/scrapy/scrapy/loader/__init__.py
[ { "content": " def __init__(self, item=None, selector=None, response=None, parent=None, **context):\n if selector is None and response is not None:\n selector = self.default_selector_class(response)\n self.selector = selector\n context.update(selector=selector, response=respon...
[]
[]
0
true
[ "[CLS]_", "Test", "ing_", "equality", "_", "to_", "None_", "[SEP]_", "class_", "Item", "Loader_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "\\u\\u", "init\\u\\u_", "(_", "self_", ",_", "item_", "=_", "None_", ",_", ...
[ 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...
First parameter of a method is not named 'self'
twitterdev/twitter-for-bigquery/libs/config.py
[ { "content": " def handleMismatch(self, obj1, obj2):\n \"\"\"\n Handle a mismatch between two objects.\n\n @param obj1: The object to merge into.\n @type obj1: any\n @param obj2: The object to merge.\n @type obj2: any\n \"\"\"\n raise ConfigError(\"unab...
[]
[]
0
true
[ "[CLS]_", "First_", "parameter_", "of_", "a_", "method_", "is_", "not_", "named_", "'", "self", "'_", "[SEP]_", "class_", "Config", "Merge", "r_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDE...
[ 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, 2...
Unused local variable
getsentry/freight/freight/checks/github.py
[ { "content": " def check(self, app, sha, config):\n token = current_app.config['GITHUB_TOKEN']\n if not token:\n raise CheckFailed('GITHUB_TOKEN is not set')\n\n api_root = (\n config.get('api_root') or current_app.config['GITHUB_API_ROOT']\n ).rstrip('/')\n\...
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Git", "Hub", "Context", "Check_", "(_", "Check_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "check_", "(_", "self_", ",_", "app_", ",_", "s...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unnecessary pass
jon-jacky/PyModel/samples/WebApplication/fsmpy/TestIntFailureFSM.py
[ { "content": "def Login(): pass", "metadata": "root.Login", "header": "['module', '___EOS___']", "index": 8 } ]
[]
[]
0
true
[ "[CLS]_", "Un", "necessar", "y_", "pass_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "def_", "Login_", "(_", ")_", ":_", "pass_", "\\u\\u\\uNEWLINE\\u\\u\\u_" ]
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ]
Except block handles 'BaseException'
blaze/blaze/blaze/sql.py
[ { "content": "@dispatch(sa.Table, (list, tuple))\ndef create_index(s,\n columns,\n name=None,\n unique=False,\n ignore_existing=False,\n concurrently=False):\n \"\"\"Create an index for a single column.\n\n Parameters\n ---...
[]
[]
0
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "@_", "dispatch_", "(_", "sa_", "._", "Table_", ",_", "(_", "list_", ",_", "tuple_...
[ 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...
Implicit string concatenation in a list
kiberpipa/Intranet/pipa/video/migrations/0001_initial.py
[ { "content": "class Migration(SchemaMigration):\n\n\n\n\n\n models = {\n 'auth.group': {\n 'Meta': {'object_name': 'Group'},\n 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\n 'name': ('django.db.models.fields.CharField', [], {'unique': 'True...
[]
[]
0
true
[ "[CLS]_", "Implicit", "_", "string_", "concate", "nation_", "in_", "a_", "list_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "class_", "Migration_", "(_", "Schema", "Migration_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_",...
[ 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 local variable
Toblerity/Shapely/packaging/specifiers.py
[ { "content": " @property\n def version(self):\n return self._spec[1]", "metadata": "root._IndividualSpecifier.version", "header": "['class', '_IndividualSpecifier', '(', 'BaseSpecifier', ')', ':', '___EOS___']", "index": 157 } ]
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "\\u", "Individual", "Specifie", "r_", "(_", "Base", "Specifie", "r_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "@_", "property_", "\\u\\u\\uNEWLINE\\u\\...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ]
Unused import
lukesneeringer/django-pgfields/django_pg/models/fields/array.py
[ { "content": "from __future__ import absolute_import, unicode_literals\nfrom django.core.management.color import no_style\nfrom django.db import models\ntry:\n from django_pg import lookups\nexcept ImportError: # Django < 1.7\n lookups = None\nfrom django_pg.utils.datatypes import CoerciveList\nfrom djan...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "\\u\\u", "future\\u\\u_", "import_", "abs", "olute", "\\u", "import_", ",_", "unicode", "\\u", "literals_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "django_", "._", "core_", "....
[ 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...
Module is imported with 'import' and 'import from'
kdart/pycopia/storage/pycopia/db/tables.py
[ { "content": "#!/usr/bin/python2.7\n# -*- coding: utf8 -*-\n# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab\n# File originally autogenerated by SQLAutoCode, then modified.\n# see http://code.google.com/p/sqlautocode/\n\n\"\"\"\nBasic set of tables useful for web applications, test automation, and lab\nmanageme...
[]
[]
0
true
[ "[CLS]_", "Module_", "is_", "imported_", "with_", "'", "import", "'_", "and_", "'", "import", " ", "from", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#!", "/", "usr", "/", "bin", "/", "python", "2.7", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "-*-",...
[ 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
dimagi/commcare-hq/custom/icds_reports/sqldata.py
[ { "content": " def custom_data(self, filters, domain):\n data = {}\n for config in self.sources['data_source']:\n if 'date_filter_field' in config:\n filters.update({config['date_filter_field']: self.config['date_span']})\n report_data = ICDSData(domain, fil...
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "IC", "DS", "Mixin_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "custom", "\\u", "data_", "(_", "s...
[ 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
openstack/fuel-web/nailgun/nailgun/test/integration/test_fixture_uploading.py
[ { "content": " def test_upload_working(self):\n check = self.db.query(Node).all()\n self.assertEqual(len(list(check)), 8)", "metadata": "root.TestFixture.test_upload_working", "header": "['class', 'TestFixture', '(', 'BaseIntegrationTest', ',', 'DeploymentTasksTestMixin', ')', ':', '___...
[]
[]
0
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "Test", "Fixture_", "(_", "Base", "Integrati", "on", "Test_", ",_", "Deployment", "Task", "s", "Test", "Mixin_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "test\\u", "uploa...
[ 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...
Module is imported more than once
openstack/nova/nova/tests/functional/regressions/test_bug_1554631.py
[ { "content": "# Copyright 2016 IBM Corp.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
[]
[]
0
true
[ "[CLS]_", "Module_", "is_", "imported_", "more_", "than_", "once_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "Copy", "right", " ", "2016", " ", "IB", "M", " ", "Cor", "p", "._", "\\u\\u\\uNL\\u\\u\\u_", "#", "_", "\\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...
Unreachable code
wickman/pystachio/tests/test_composite_types.py
[ { "content": "def test_bad_inputs():\n class Resources(Struct):\n cpu = Float\n ram = Required(Integer)\n with pytest.raises(AttributeError):\n Resources(herp = \"derp\")\n with pytest.raises(AttributeError):\n Resources({'foo': 'bar'})\n with pytest.raises(ValueError):\n Resources(None)", ...
[]
[]
0
true
[ "[CLS]_", "Unrea", "chab", "le_", "code_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "bad", "\\u", "inputs_", "(_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "cl...
[ 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...
Redundant comparison
kayhayen/Nuitka/tests/basics/ComparisonChains.py
[ { "content": "def generator_function_with_chain():\n x = (1, 2, 3)\n\n yield x[0] < x[1] < x[2]", "metadata": "root.generator_function_with_chain", "header": "['module', '___EOS___']", "index": 74 } ]
[]
[]
0
true
[ "[CLS]_", "Redu", "ndan", "t_", "comparison_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "generat", "or", "\\u", "function", "\\u", "with", "\\u", "chain_", "(_", ")_", ":_", "\\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 ]
Testing equality to None
iancmcc/ouimeaux/ouimeaux/device/api/xsd/service.py
[ { "content": "def parseString(inString):\n from StringIO import StringIO\n doc = parsexml_(StringIO(inString))\n rootNode = doc.getroot()\n rootTag, rootClass = get_root_tag(rootNode)\n if rootClass is None:\n rootTag = 'scpd'\n rootClass = scpd\n rootObj = rootClass.factory()\n ...
[]
[]
0
true
[ "[CLS]_", "Test", "ing_", "equality", "_", "to_", "None_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "parse", "String_", "(_", "in", "String_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\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...
Unreachable code
Rediker-Software/doac/tests/tests/handlers/test_bearer.py
[ { "content": " def test_validate(self):\n from doac.exceptions.base import InvalidToken\n from doac.exceptions.invalid_request import CredentialsNotProvided\n \n request = self.factory.get(\"/\")\n \n result = self.handler.validate(self.token.token, request)\n ...
[]
[]
0
true
[ "[CLS]_", "Unrea", "chab", "le_", "code_", "[SEP]_", "class_", "Test", "Bear", "er", "Handler_", "(_", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "validate_", "(_", "self_", ")_", "...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
jezdez-archive/django-comment-utils/comment_utils/templatetags/moderated_comments.py
[ { "content": "\"\"\"\nTemplate tags designed to work with applications which use comment\nmoderation.\n\n\"\"\"\n\nfrom django import template\nfrom comment_utils.moderation import moderator\n\n\n\n\nregister = template.Library()\nregister.filter(comments_open)\nregister.filter(comments_moderated)\n", "meta...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\"\"\"", "\\", "10", ";", "Templa", "te", " ", "tags", " ", "design", "ed", " ", "to", " ", "work", " ", "with", " ", "applica", "tion", "s", " ", "whi", "ch", " ", "us...
[ 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...
Comparison of constants
datastax/python-driver/cassandra/cluster.py
[ { "content": " def _reprepare(self, prepare_message):\n cb = partial(self.session.submit, self._execute_after_prepare)\n request_id = self._query(self._current_host, prepare_message, cb=cb)\n if request_id is None:\n # try to submit the original prepared statement on some othe...
[]
[]
0
true
[ "[CLS]_", "Compari", "son_", "of_", "constants_", "[SEP]_", "class_", "Respons", "e", "Future_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u", "repr", "epa", "re_", "(_", "self_", ",_", "p...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Testing equality to None
tomchristie/django-rest-framework/rest_framework/routers.py
[ { "content": " def register(self, prefix, viewset, base_name=None):\n if base_name is None:\n base_name = self.get_default_base_name(viewset)\n self.registry.append((prefix, viewset, base_name))", "metadata": "root.BaseRouter.register", "header": "['class', 'BaseRouter', '(',...
[]
[]
0
true
[ "[CLS]_", "Test", "ing_", "equality", "_", "to_", "None_", "[SEP]_", "class_", "Base", "Router_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "register_", "(_", "self_", ",_", "prefix_", ",_", ...
[ 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
ReactiveX/RxPY/rx/linq/observable/timeout.py
[ { "content": "from datetime import datetime\n\nfrom rx.observable import Observable\nfrom rx.anonymousobservable import AnonymousObservable\nfrom rx.disposables import CompositeDisposable, SingleAssignmentDisposable, \\\n SerialDisposable\nfrom rx.concurrency import timeout_scheduler\nfrom rx.internal import...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "datetime_", "import_", "datetime_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "from_", "rx_", "._", "observable_", "import_", "Observable_", "\\u\\u\\uNEWLINE\\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...
Wrong number of arguments in a call
apache/libcloud/libcloud/compute/drivers/azure.py
[ { "content": " @staticmethod\n def create_deployment_to_xml(name,\n package_url,\n label,\n configuration,\n start_deployment,\n treat_warnings_as...
[]
[]
0
false
[ "[CLS]_", "Wro", "ng_", "number_", "of_", "arguments_", "in_", "a_", "call_", "[SEP]_", "class_", "Az", "ure", "Xm", "l", "Serializer_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "@_", "staticmethod_",...
[ 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...
Unnecessary 'else' clause in loop
MirantisWorkloadMobility/CloudFerry/cloudferry_devlab/cloudferry_devlab/tests/functional_test.py
[ { "content": " def filter_images(self, exclude_images_with_fields=None):\n if exclude_images_with_fields is None:\n exclude_images_with_fields = {}\n\n if exclude_images_with_fields.get('broken') is None:\n exclude_images_with_fields['broken'] = True\n\n if exclude_...
[]
[]
0
true
[ "[CLS]_", "Un", "necessar", "y_", "'", "else", "'_", "clause_", "in_", "loop_", "[SEP]_", "class_", "Function", "al", "Test_", "(_", "unittest_", "._", "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, 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
keenlabs/KeenClient-Python/keen/scoped_keys.py
[ { "content": "import binascii\nimport json\nimport os\nfrom Crypto.Cipher import AES\n\nfrom keen import Padding\n\n__author__ = 'dkador'\n\n# the block size for the cipher object; must be 16, 24, or 32 for AES\nOLD_BLOCK_SIZE = 32\n\n\n\n\n\n\n\n\n\n\n# encrypt with AES-256-CBC, encode with hex\n\n\n\n\n\n\n\n...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "binascii_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "json_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "os_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "Crypto_", "._", "Cipher_", "imp...
[ 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
racker/rackspace-monitoring/demo/web/app.py
[ { "content": "import os\nimport sys\n\nroot_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))\nweb_dir = os.path.join(root_dir, 'demo', 'web')\nsys.path.insert(0, root_dir)\n\nimport cherrypy\nfrom jinja2 import Environment, FileSystemLoader\n\nfrom rackspace_monitoring.types i...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "os_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "sys_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "root", "\\u", "dir_", "=_", "os_", "._", "path_", "._", "dirname_"...
[ 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...
Implicit string concatenation in a list
OpenMDAO/OpenMDAO-Framework/openmdao.test/src/openmdao/test/execcomp.py
[ { "content": " def execute(self):\n ''' ExecComp execute function '''\n global _expr_dict\n if self.trace:\n for var in self.list_inputs(connected=True):\n print \"%s.%s = %s\" % (self.name,var,getattr(self,var))\n for var in self.list_outputs(connect...
[]
[]
0
true
[ "[CLS]_", "Implicit", "_", "string_", "concate", "nation_", "in_", "a_", "list_", "[SEP]_", "class_", "Exe", "c", "Comp_", "(_", "Component_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "execute_", "(_", "self_"...
[ 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 local variable
acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/books/__init__.py
[ { "content": " def GetThumbnailLink(self):\n \"\"\"Returns the atom.Link object representing the thumbnail URI.\"\"\"\n for i in self.link:\n if i.rel == THUMBNAIL_REL:\n return i", "metadata": "root.Book.GetThumbnailLink", "header": "['class', 'Book', '(', '_A...
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Book_", "(_", "\\u", "Atom", "Fro", "m", "String_", ",_", "gdata_", "._", "GD", "ata", "Entry_", ")_", ":_", "\\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...
Except block handles 'BaseException'
Parkayun/initpy/initpy/creator.py
[ { "content": "def downloader(args):\n url = args.download\n from urllib2 import urlopen, HTTPError\n try:\n res = urlopen(url)\n except HTTPError:\n from initpy.prompt import color_print\n color_print(\"Wrong downloadable url!\", \"red\")\n return\n from initpy.compact...
[]
[]
0
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "downloader_", "(_", "args_", ")_", ":_", "\\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
opps/opps/opps/archives/admin.py
[ { "content": "# coding: utf-8\nfrom django.contrib import admin\nfrom django.contrib.auth import get_user_model\nfrom django.utils import timezone\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom opps.core.admin import apply_opps_rules\nfrom opps.core.permissions.admin import AdminViewPermission...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "codi", "ng", ":", " ", "utf", "-", "8_", "\\u\\u\\uNL\\u\\u\\u_", "from_", "django_", "._", "contrib_", "import_", "admin_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "django_...
[ 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'
xhtml2pdf/xhtml2pdf/demo/tgpisa/start-tgpisa.py
[ { "content": "#!C:\\Python25\\python.exe\n# -*- coding: utf-8 -*-\n\"\"\"Start script for the tgpisa TurboGears project.\n\nThis script is only needed during development for running from the project\ndirectory. When the project is installed, easy_install will create a\nproper start script.\n\"\"\"\n\nimport sys...
[]
[]
0
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#!", "C", ":\\\\", "Pyth", "on2", "5", "\\\\", "python", ".", "exe_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "-*-", " ", "codi", "n...
[ 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...
Constant in conditional expression or statement
nlloyd/SubliminalCollaborator/libs/twisted/web/xmlrpc.py
[ { "content": " def connectionMade(self):\n self._response = None\n self.sendCommand('POST', self.factory.path)\n self.sendHeader('User-Agent', 'Twisted/XMLRPClib')\n self.sendHeader('Host', self.factory.host)\n self.sendHeader('Content-type', 'text/xml')\n self.sendH...
[]
[]
0
true
[ "[CLS]_", "Constant_", "in_", "conditional", "_", "expression_", "or_", "statement_", "[SEP]_", "class_", "Query", "Protocol_", "(_", "http_", "._", "HTTP", "Client_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "d...
[ 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
fp7-ofelia/ocf/vt_manager/src/python/vt_manager/communication/sfa/rspecs/elements/versions/pgv2DiskImage.py
[ { "content": " @staticmethod\n def get_images(xml, filter={}):\n xpath = './default:disk_image | ./disk_image'\n image_elems = xml.xpath(xpath)\n images = []\n for image_elem in image_elems:\n image = DiskImage(image_elem.attrib, image_elem)\n images.appen...
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "PG", "v2", "Disk", "Image_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "@_", "staticmethod_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "def_", "g...
[ 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
pyinvoke/invoke/tests/parser/argument.py
[ { "content": "from spec import Spec, eq_, skip, ok_, raises\n\nfrom invoke.parser import Argument\n\n\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content": "class Argument_(Spec):\n class init:\n \"__init__\"\n def may_take_names_list(self):...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "spec_", "import_", "Spec_", ",_", "eq\\u_", ",_", "skip_", ",_", "ok\\u_", ",_", "raises_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "from_", "invoke_", "._", "p...
[ 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, 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...
Unused local variable
AppScale/appscale/AppServer/lib/django-1.5/django/core/serializers/xml_serializer.py
[ { "content": " def _handle_fk_field_node(self, node, field):\n \"\"\"\n Handle a <field> node for a ForeignKey\n \"\"\"\n # Check if there is a child node named 'None', returning None if so.\n if node.getElementsByTagName('None'):\n return None\n else:\n ...
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Deserializ", "er_", "(_", "base_", "._", "Deserializ", "er_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u", "handle", "\\u", "fk", "\\u", ...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Variable defined multiple times
robclewley/compneuro/Ch10_model.py
[ { "content": "def makeHHneuron(name, par_args, ic_args, const_I=False,\n rand_seed=None, with_IA=False, adapt_AHP=False, gentype='vode'):\n if gentype in ['vode', 'euler']:\n targetlang = 'python'\n else:\n targetlang = 'C'\n if const_I:\n Iapp_str = 'Iapp'\n els...
[]
[]
0
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "make", "HH", "neuron_", "(_", "name_", ",_", "par", "\\u", "args_", ",_", "ic", "\\u", "args_", ",_", "const", "\\u", "I_", ...
[ 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
wq/wq.io/parsers/xls.py
[ { "content": "import xlrd\nimport datetime\nimport math\nfrom .base import TableParser\n\n\n\n\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content": "class WorkbookParser(TableParser):\n workbook = None\n worksheet = None\n sheet_name = 0\n start...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "xlr", "d_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "datetime_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "math_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "._", "base_", "import_", ...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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...
Except block handles 'BaseException'
openshift/openshift-ansible/inventory/openstack/hosts/nova.py
[ { "content": "#!/usr/bin/env python2\n\n# pylint: skip-file\n\n# (c) 2012, Marco Vito Moscaritolo <marco@agavee.com>\n#\n# This file is part of Ansible,\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Softw...
[]
[]
0
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#!", "/", "usr", "/", "bin", "/", "env", " ", "python", "2_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "pylint",...
[ 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
hpk42/p4p/attic/play_async_print2.py
[ { "content": "# based on http://stackoverflow.com/questions/2082387/reading-input-from-raw-input-without-having-the-prompt-overwritten-by-other-th\n\nfrom rl import readline\nfrom threading import Thread, Timer\n\nfrom sys import stdout\nfrom struct import unpack\nfrom fcntl import ioctl\nfrom termios import TI...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "based", " ", "on", " ", "http", "://", "stack", "overflow", ".", "com", "/", "question", "s", "/", "208", "238", "7", "/", "readi", "ng", "-", "input", "-", "...
[ 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
PyRag/sports-naarad/sports_naarad/barclay.py
[ { "content": " def Fixtures(self, type_return='string'):\n url = \"http://www.premierleague.com/en-gb/matchday/matches.html?paramClubId=ALL&paramComp_8=true&view=.dateSeason\"\n\n res = requests.get(url, stream=True, proxies=proxy_dict)\n soup = bs4.BeautifulSoup(res.text, parser)\n ...
[]
[]
0
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "class_", "Barc", "lay_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "Fix", "tures", "_", "(_", "self_", ",_", "type", "\\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...
Module is imported with 'import' and 'import from'
SALib/SALib/SALib/tests/test_regression.py
[ { "content": "from __future__ import division\n\nimport sys\n\nfrom nose.tools import with_setup\nfrom numpy.testing import assert_allclose\n\nfrom SALib.analyze import delta\nfrom SALib.analyze import dgsm\nfrom SALib.analyze import fast\nfrom SALib.analyze import sobol\nfrom SALib.sample import fast_sampler\n...
[]
[]
0
true
[ "[CLS]_", "Module_", "is_", "imported_", "with_", "'", "import", "'_", "and_", "'", "import", " ", "from", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "\\u\\u", "future\\u\\u_", "import_", "division_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\...
[ 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Comparison using is when operands support `__eq__`
ossxp-com/repo/git_command.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#...
[]
[]
0
false
[ "[CLS]_", "Compari", "son_", "using_", "is_", "when_", "operands_", "support_", " _", "`_", "\\u\\u", "eq\\u\\u_", "`_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "C", ")", " ", "2008...
[ 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...
Deprecated slice method
dragoon/django-selenium/django_selenium/testcases.py
[ { "content": " def __getitem__(self, key):\n \"\"\"Return item from the internal sequence, bypassing ``__getattribute__``\"\"\"\n return object.__getattribute__(self, 'elements')[key]", "metadata": "root.SeleniumElement.__getitem__", "header": "['class', 'SeleniumElement', '(', 'object'...
[]
[]
0
true
[ "[CLS]_", "Dep", "reca", "ted_", "slice_", "method_", "[SEP]_", "class_", "Selen", "ium", "Element_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u\\u", "getitem\\u\\u_", "(_", "self_", ",_", ...
[ 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
saltstack/salt/tests/integration/states/rabbitmq_vhost.py
[ { "content": "# -*- coding: utf-8 -*-\n\n'''\nTests for the rabbitmq state\n'''\n# Import python libs\nfrom __future__ import absolute_import\nimport os\n\n# Import Salt Testing libs\nfrom salttesting.helpers import ensure_in_syspath\nensure_in_syspath('../../')\n\n# Import salt libs\nimport integration\n\n\n\n...
[]
[]
0
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_", "'''", "\\", "10", ";", "Test", "s", " ", "...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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
fengsp/plan/plan/testsuite/commands.py
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n plan.testsuite.commands\n ~~~~~~~~~~~~~~~~~~~~~~~\n\n Tests the command line tools for Plan.\n\n :copyright: (c) 2014 by Shipeng Feng.\n :license: BSD, see LICENSE for more details.\n\"\"\"\n\nimport unittest\n\nimport click\nfrom click.testing impo...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "-*-", " ", "codi", "ng", ":", " ", "utf", "-", "8", " ", "-*-", "_", "\\u\\u\\uNL\\u\\u\\u_", "\"\"\"", "\\", "10", ";", " ", " ", " ", " ", "plan", ".", "tes...
[ 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
UFAL-DSG/cloud-asr/cloudasr/recordings/test_lib.py
[ { "content": "import unittest\nfrom lib import RecordingsSaver\nfrom cloudasr.test_doubles import SocketSpy\nfrom cloudasr.messages.helpers import *\n\n\n\n\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content": "class TestRecordingsSaver(unittest.TestCase):\...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "unittest_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "lib_", "import_", "Record", "ings", "Saver_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "cloud", "as", "r_", "._", "test\\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, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused local variable
CGATOxford/cgat/legacy/ScopTester.py
[ { "content": " def GetAlignandum( self, nid, nrdb_from, nrdb_to ):\n\n n = self.mTableNeighbours.GetNumNeighbours( nid )\n \n if n >= self.mMinProfileSize:\n \n profile = alignlib.makeEmptyProfile( self.mRegularizor, self.mLogOddor )\n\n pairsdblib.fillPr...
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Sco", "p", "Tester", "Profil", "es_", "(_", "Sco", "p", "Tester_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "Get", "Align", "and", "um_", ...
[ 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
CybOXProject/python-cybox/cybox/objects/artifact_object.py
[ { "content": " def __init__(self, compression_mechanism=None):\n super(Compression, self).__init__()\n self.compression_mechanism = compression_mechanism", "metadata": "root.Compression.__init__", "header": "['class', 'Compression', '(', 'Packaging', ')', ':', '___EOS___']", "index"...
[]
[]
0
false
[ "[CLS]_", "Missing", "_", "call_", "to_", " _", "`_", "\\u\\u", "init\\u\\u_", "`_", "dur", "ing_", "object_", "initialization", "_", "[SEP]_", "class_", "Compress", "ion_", "(_", "Packa", "ging", "_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_",...
[ 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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
larsyencken/anytop/anytop/top.py
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# top.py\n# anytop\n#\n\n\"\"\"\nLive updating frequency distributions on streaming data.\n\"\"\"\n\nimport os\nimport sys\nimport curses\nimport time\nimport threading\nimport heapq\nimport logging\nimport codecs\nimport locale\n\nimport click\...
[]
[]
0
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...
Variable defined multiple times
iron-io/iron_worker_python/iron_worker.py
[ { "content": "class Task:\n id = None\n project = None\n code_id = None\n code_history_id = None\n schedule_id = None\n status = None\n code_name = None\n code_rev = None\n created_at = None\n updated_at = None\n start_time = None\n end_time = None\n duration = None\n t...
[]
[]
0
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "class_", "Task_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "id_", "=_", "None_", "\\u\...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Variable defined multiple times
frankban/django-endless-pagination/endless_pagination/tests/integration/test_digg.py
[ { "content": " def test_no_next_link_in_last_page(self):\n # Ensure there is no forward link on the last page.\n self.get(page=10)\n self.asserLinksEqual(0, self.NEXT)", "metadata": "root.DiggPaginationTest.test_no_next_link_in_last_page", "header": "['class', 'DiggPaginationTest...
[]
[]
0
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "class_", "Dig", "g", "Pagination", "Test_", "(_", "Selen", "ium", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "test\\u", "no", ...
[ 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
ferventdesert/tnpy/src/tngraph.py
[ { "content": "def addNode(A,entity,nodes):\n nodeid= id(entity);\n name= str(entity);\n if nodeid not in nodes:\n A.add_node(name);\n nodes[nodeid]=entity;\n if isinstance(entity, SQE):\n for child in entity.MatchEntities:\n addNode(A,child,nodes);\n A.add_...
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "add", "Node_", "(_", "A_", ",_", "entity_", ",_", "nodes_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "n...
[ 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'
dustin/py-github/github/github.py
[ { "content": "#!/usr/bin/env python\n#\n# Copyright (c) 2005-2008 Dustin Sallings <dustin@spy.net>\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 Software without restriction, includ...
[]
[]
0
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_", "#", " ", "C...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
First parameter of a method is not named 'self'
ImageEngine/gaffer/python/GafferAppleseed/AppleseedRender.py
[ { "content": "\tdef _createRenderer( self ) :\n\n\t\tfileName = self[\"fileName\"].getValue()\n\t\tdirectory = os.path.dirname( fileName )\n\t\tif directory :\n\t\t\tself._makeDir( directory )\n\n\t\trenderer = IECoreAppleseed.Renderer( fileName )\n\t\treturn renderer", "metadata": "root.AppleseedRender._cr...
[]
[]
0
true
[ "[CLS]_", "First_", "parameter_", "of_", "a_", "method_", "is_", "not_", "named_", "'", "self", "'_", "[SEP]_", "class_", "Apple", "seed", "Render_", "(_", "Ga", "ffer", "Scene_", "._", "Executable", "Render_", ")_", ":_", "\\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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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/urls.py
[ { "content": "from django.conf.urls.defaults import *\n\nimport test_utils.views as test_views\n\nurlpatterns = patterns('',\n url(r'^set_logging/(?P<filename>.*?)/',\n test_views.set_logging,\n name='test_utils_set_logging'),\n ...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "django_", "._", "conf_", "._", "urls_", "._", "defaults_", "import_", "*_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "import_", "test\\u", "utils_", "._", "views_"...
[ 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
ganeti/ganeti/lib/vcluster.py
[ { "content": "def _RemoveNodePrefix(path, _noderoot=_VIRT_NODEROOT):\n \"\"\"Removes the node-specific prefix from a path.\n\n This is the opposite of L{AddNodePrefix} and removes a node-local prefix\n path.\n\n \"\"\"\n assert os.path.isabs(path), \"Path not absolute: \" + path\n\n norm_path = os.path.no...
[]
[]
0
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_", "\\u", "Remove", "Node", "Prefix_", "(_", "path_", ",_", "\\u", "node", "root_", "=_", "\\u", "VIR", "T", "\\...
[ 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
jdf/processing.py/mode/formatter/autopep8.py
[ { "content": "#!/usr/bin/env python\n#\n# Copyright (C) 2010-2011 Hideo Hattori\n# Copyright (C) 2011-2013 Hideo Hattori, Steven Myint\n# Copyright (C) 2013-2014 Hideo Hattori, Steven Myint, Bill Wendling\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and ...
[]
[]
0
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", ")", " ", "2010...
[ 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...
`__init__` method calls overridden method
ganeti/ganeti/lib/masterd/iallocator.py
[ { "content": "class IARequestBase(outils.ValidatedSlots):\n \"\"\"A generic IAllocator request object.\n\n \"\"\"\n __metaclass__ = _AutoReqParam\n\n MODE = NotImplemented\n REQ_PARAMS = []\n REQ_RESULT = NotImplemented\n\n\n\n\n", "metadata": "root.IARequestBase", "header": "['module', '___EOS___...
[]
[]
0
false
[ "[CLS]_", "`_", "\\u\\u", "init\\u\\u_", "`_", "method_", "calls_", "overrid", "den_", "method_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "class_", "IA", "Request", "Base_", "(_", "out...
[ 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
BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/virt/xenapi/test_volumeops.py
[ { "content": "# Copyright (c) 2012 Citrix Systems, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# ...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "c", ")", " ", "2012", " ", "Cit", "rix", " ", "System", "s", ",", " ", "Inc", "._", "\\u\\u\\uNL\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\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
arista-eosplus/pyeapi/pyeapi/api/abstract.py
[ { "content": "#\n# Copyright (c) 2014, Arista Networks, Inc.\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\n# met:\n#\n# Redistributions of source code must retain the above copyright n...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "c", ")", " ", "2014", ",", " ", "Ari", "sta", " ", "Network", "s", ",", " ", "Inc", "._", "\\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
home-assistant/home-assistant/tests/components/alarm_control_panel/test_mqtt.py
[ { "content": "\"\"\"The tests the MQTT alarm control panel component.\"\"\"\nimport unittest\n\nfrom homeassistant.bootstrap import _setup_component\nfrom homeassistant.const import (\n STATE_ALARM_DISARMED, STATE_ALARM_ARMED_HOME, STATE_ALARM_ARMED_AWAY,\n STATE_ALARM_PENDING, STATE_ALARM_TRIGGERED, STAT...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\"\"\"", "The", " ", "tests", " ", "the", " ", "MQ", "TT", " ", "alarm", " ", "control", " ", "panel", " ", "component", ".\"\"\"_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_", "uni...
[ 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
dclambert/pyensemble/ensemble.py
[ { "content": "# Author: David C. Lambert [dcl -at- panix -dot- com]\n# Copyright(c) 2013\n# License: Simple BSD\n\"\"\"\nThe :mod:`ensemble` module implements the ensemble selection\ntechnique of Caruana et al [1][2].\n\nCurrently supports f1, auc, rmse, accuracy and mean cross entropy scores\nfor hillclimbing....
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "Author", ":", " ", "Dav", "id", " ", "C", ".", " ", "Lam", "bert", " ", "[", "dcl", " ", "-", "at", "-", " ", "pani", "x", " ", "-", "dot", "-", " ", "c...
[ 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...
Testing equality to None
enthought/traitsui/traitsui/wx/ui_panel.py
[ { "content": " def add_items ( self, content, panel, sizer ):\n \"\"\" Adds a list of Item objects to the panel.\n \"\"\"\n # Get local references to various objects we need:\n ui = self.ui\n info = ui.info\n handler = ui.handler\n\n group =...
[]
[]
0
true
[ "[CLS]_", "Test", "ing_", "equality", "_", "to_", "None_", "[SEP]_", "class_", "Fil", "l", "Panel_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_"...
[ 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...
Constant in conditional expression or statement
yildizberkay/MongoApp/MongoApp.py
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport subprocess\nimport threading\nimport tkFont\nimport ttk\nimport webbrowser\n\nfrom os import makedirs\nfrom os.path import exists, expanduser, join as path_join\nfrom sys import path as sys_path\nfrom Tkinter import *\n\nsys_path.append('lib...
[]
[]
0
true
[ "[CLS]_", "Constant_", "in_", "conditional", "_", "expression_", "or_", "statement_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#!", "/", "usr", "/", "bin", "/", "env", " ", "python_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "-*-", " ", "codi", "ng", ":", " "...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
jesolem/PCV/PCV/geometry/warp.py
[ { "content": "import matplotlib.delaunay as md \nfrom scipy import ndimage\nfrom pylab import *\nfrom numpy import *\n\nfrom PCV.geometry import homography\n \n\n\n\n \n\n \n\n\n\n\n\n \n \n\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content"...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "import_", "matplotlib_", "._", "dela", "una", "y_", "as_", "md_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "scipy_", "import_", "ndimage_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "pylab_", ...
[ 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, 4, 2...
Unused import
ojii/django-server-manager/server_manager/admin.py
[ { "content": "from server_manager.models import Server\nfrom server_manager.loader import backend_loader\nfrom django.shortcuts import render_to_response\nfrom django.utils import simplejson\nfrom django.template import RequestContext, Template\nfrom django.http import HttpResponse, Http404\nfrom django.contrib...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "server", "\\u", "manager_", "._", "models_", "import_", "Server_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "server", "\\u", "manager_", "._", "loader_", "import_", "back", "end...
[ 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
openstack/freezer-web-ui/disaster_recovery/api/api.py
[ { "content": " def delete(self, action_id):\n return self.client.actions.delete(action_id)", "metadata": "root.Action.delete", "header": "['class', 'Action', '(', 'object', ')', ':', '___EOS___']", "index": 420 } ]
[]
[]
0
true
[ "[CLS]_", "Unrea", "chab", "le_", "code_", "[SEP]_", "class_", "Action_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "delete_", "(_", "self_", ",_", "action", "\\u", "id_", ")_", ":_", "\\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 ]
Unused import
anandology/pyjamas/pyjd/sessionhistory.py
[ { "content": "# Copyright (C) 2007, One Laptop Per Child\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2 of the License, or\n# (at your option) any later version.\...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "C", ")", " ", "2007", ",", " ", "One", " ", "Lap", "top", " ", "Per", " ", "Child_", "\\u\\u\\uNL\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\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...
Module is imported with 'import' and 'import from'
dimagi/commcare-hq/corehq/apps/fixtures/dispatcher.py
[ { "content": "from corehq import privileges\nfrom corehq.apps.accounting.decorators import requires_privilege_with_fallback\nfrom corehq.apps.reports.dispatcher import ProjectReportDispatcher\nfrom django.utils.decorators import method_decorator\nfrom corehq.apps.users.decorators import require_permission\nfrom...
[]
[]
0
true
[ "[CLS]_", "Module_", "is_", "imported_", "with_", "'", "import", "'_", "and_", "'", "import", " ", "from", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "from_", "core", "hq", "_", "import_", "privilege", "s_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "from_", "core",...
[ 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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
dcm-oss/blockade/blockade/net.py
[ { "content": " def get_container_device(self, docker_client, container_id):\n try:\n exec_handle = docker_client.exec_create(container_id, ['ip', 'link', 'show', 'eth0'])\n res = docker_client.exec_start(exec_handle).decode('utf-8')\n device = re.search('^([0-9]+):', r...
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Block", "ade", "Network_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "get", "\\u", "container", "\\u", "device_", "(_", "sel...
[ 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...
Use of the return value of a procedure
mrknow/filmkodi/plugin.video.mrknow/lib/utils/javascriptUtils.py
[ { "content": " def ionX(self, x, arrayX):\n r = []\n s = 0\n w = 0\n \n for d in x:\n w |= int(arrayX[ord(d)-48]) << s\n if (s):\n r.append(chr(165 ^ w & 255))\n w >>= 8\n s -= 2\n else:\n ...
[]
[]
0
false
[ "[CLS]_", "Use_", "of_", "the_", "return_", "value_", "of_", "a_", "procedure_", "[SEP]_", "class_", "Js", "Un", "Io", "n", "Cube_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "def_", "ion", "X_", "(_", "self_"...
[ 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
acba/elm/elm/elmk.py
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\n This file contains ELMKernel classes and all developed methods.\n\"\"\"\n\n# Python2 support\nfrom __future__ import unicode_literals\nfrom __future__ import division\nfrom __future__ import absolute_import\nfrom __future__ import print_function\n\nfrom .mlto...
[]
[]
0
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_", "\"\"\"", "\\", "10", ";", " ", " ", " ", "...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Redundant comparison
lionheart/django-pyodbc/django_pyodbc/base.py
[ { "content": " def _get_connection_string(self):\n settings_dict = self.settings_dict\n db_str, user_str, passwd_str, port_str = None, None, \"\", None\n options = settings_dict['OPTIONS']\n if settings_dict['NAME']:\n db_str = settings_dict['NAME']\n if settings...
[]
[]
0
true
[ "[CLS]_", "Redu", "ndan", "t_", "comparison_", "[SEP]_", "class_", "Databa", "se", "Wrapper_", "(_", "Base", "Databa", "se", "Wrapper_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u", "get", "\\u", "connecti"...
[ 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'
beetbox/beets/beetsplug/ipfs.py
[ { "content": " def ipfs_add(self, album):\n try:\n album_dir = album.item_dir()\n except AttributeError:\n return False\n try:\n if album.ipfs:\n self._log.debug('{0} already added', album_dir)\n # Already added to ipfs\n ...
[]
[]
0
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "class_", "IP", "FS", "Plugin_", "(_", "Bee", "ts", "Plugin_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "ip", "f...
[ 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
nltk/nltk/nltk/stem/lancaster.py
[ { "content": "# Natural Language Toolkit: Stemmers\n#\n# Copyright (C) 2001-2016 NLTK Project\n# Author: Steven Tomcavage <stomcava@law.upenn.edu>\n# URL: <http://nltk.org/>\n# For license information, see LICENSE.TXT\n\n\"\"\"\nA word stemmer based on the Lancaster stemming algorithm.\nPaice, Chris D. \"Anothe...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "Nat", "ural", " ", "Lang", "ua", "ge", " ", "Tool", "kit", ":", " ", "Stem", "mers", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", "_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "Cop...
[ 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
ClusterHQ/eliot/docs/source/conf.py
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Eliot documentation build configuration file, created by\n# sphinx-quickstart on Mon Apr 14 12:04:03 2014.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this...
[]
[]
0
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_", "#", " ", "Eli", "ot", " ", "docu...
[ 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'
pyjs/pyjs/pyjswidgets/pyjamas/Canvas/GWTCanvasImplDefault.hulahop.py
[ { "content": " def createElement(self):\n e = DOM.createElement(\"CANVAS\")\n try:\n # This results occasionally in an error:\n # AttributeError: XPCOM component '<unknown>' has no attribute 'MozGetIPCContext'\n self.setCanvasContext(e.MozGetIPCContext(u'2d'))\n...
[]
[]
0
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "class_", "GW", "TC", "anv", "as", "Impl", "Default_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uINDENT\\u\\u\\u ", " _", "def_", "create", "Eleme...
[ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Except block handles 'BaseException'
dimagi/commcare-hq/corehq/apps/cleanup/management/commands/undelete_docs.py
[ { "content": "def get_deleted_doc(db, doc_id, rev):\n res = db.get(doc_id, revs=True, rev=rev)\n start = res['_revisions']['start']\n ids = res['_revisions']['ids']\n prev_revision = \"{}-{}\".format(start-1, ids[1])\n try:\n doc = db.get(doc_id, rev=prev_revision)\n except ResourceNotF...
[]
[]
0
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "get", "\\u", "delete", "d\\u", "doc_", "(_", "db_", ",_", "doc", "\\u", "id_", ",_", "rev_", ")_...
[ 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...
Use of the return value of a procedure
statsmodels/statsmodels/statsmodels/tsa/arima_process.py
[ { "content": "def deconvolve(num, den, n=None):\n \"\"\"Deconvolves divisor out of signal, division of polynomials for n terms\n\n calculates den^{-1} * num\n\n Parameters\n ----------\n num : array_like\n signal or lag polynomial\n denom : array_like\n coefficients of lag polyno...
[]
[]
0
false
[ "[CLS]_", "Use_", "of_", "the_", "return_", "value_", "of_", "a_", "procedure_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "deconv", "olve", "_", "(_", "num_", ",_", "den_", ",_", "n_", "=_", "None_"...
[ 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 local variable
cloudera/hue/desktop/core/ext-py/openpyxl-2.3.0-b2/openpyxl/chart/layout.py
[ { "content": "class ManualLayout(Serialisable):\n\n tagname = \"manualLayout\"\n\n layoutTarget = NestedNoneSet(values=(['inner', 'outer']))\n xMode = NestedNoneSet(values=(['edge', 'factor']))\n yMode = NestedNoneSet(values=(['edge', 'factor']))\n wMode = NestedNoneSet(values=(['edge', 'factor']...
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "class_", "Manu", "al", "Layout_", "(_", "Seriali", "sab", "le_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uINDENT\\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...
Unreachable code
google/grr/grr/lib/artifact_registry.py
[ { "content": " def GetArtifact(self, name):\n \"\"\"Get artifact by name.\n\n Args:\n name: artifact name string.\n\n Returns:\n artifact object.\n Raises:\n ArtifactNotRegisteredError: if artifact doesn't exist in the registy.\n \"\"\"\n self._CheckDirty()\n result = self._...
[]
[]
0
true
[ "[CLS]_", "Unrea", "chab", "le_", "code_", "[SEP]_", "class_", "Artifact", "Registry_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "Get", "Artifact", "_", "(_", "self_", ",_", "name_", ")_", "...
[ 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
django-bmf/django-bmf/djangobmf/contrib/position/tests.py
[ { "content": "class PositionModuleTests(ModuleMixin, TestCase):\n\n\n# data = self.autotest_ajax_get('create', kwargs={'key': 'default'})\n# self.autotest_get('api', status_code=404)\n# self.autotest_post('api', status_code=302)\n\n# data = self.autotest_ajax_post('create', kwargs={'key'...
[]
[]
0
false
[ "[CLS]_", "Missing", "_", "call_", "to_", " _", "`_", "\\u\\u", "init\\u\\u_", "`_", "dur", "ing_", "object_", "initialization", "_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "class_", "Position", "Modul", "e",...
[ 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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
cloudera/hue/apps/useradmin/setup.py
[ { "content": "# Licensed to Cloudera, Inc. under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. Cloudera, Inc. licenses this file\n# to you under the Apache License, Version 2.0 (the\n# \"License\");...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "License", "d", " ", "to", " ", "Cloud", "era", ",", " ", "Inc", ".", " ", "under", " ", "one_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "or", " ", "more", " ", "cont...
[ 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...
First parameter of a method is not named 'self'
pindexis/qfc/qfc/core.py
[ { "content": " def reset_input(self):\n self.input = self.default_input", "metadata": "root.State.reset_input", "header": "['class', 'State', '(', 'object', ')', ':', '___EOS___']", "index": 65 } ]
[]
[]
0
true
[ "[CLS]_", "First_", "parameter_", "of_", "a_", "method_", "is_", "not_", "named_", "'", "self", "'_", "[SEP]_", "class_", "State_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "reset", "\\u", "...
[ 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 ]
Unused local variable
mongodb/motor/test/tornado_tests/test_motor_gridfs.py
[ { "content": " @gen_test\n def test_gridfs_secondary(self):\n primary_host, primary_port = test.env.primary\n primary = self.motor_client(primary_host, primary_port)\n if test.env.auth:\n yield primary.admin.authenticate(test.db_user, test.db_password)\n \n secondary...
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Test", "Grid", "fs", "Replica", "Set_", "(_", "Moto", "r", "Replica", "Set", "Test", "Base_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\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...
First parameter of a method is not named 'self'
mgaitan/waliki/waliki/rst2html5.py
[ { "content": " def _strip_spaces(self, text):\n return re.sub(r'\\s+', ' ', text)", "metadata": "root.HTML5Translator._strip_spaces", "header": "['class', 'HTML5Translator', '(', 'nodes', '.', 'NodeVisitor', ')', ':', '___EOS___']", "index": 540 } ]
[]
[]
0
true
[ "[CLS]_", "First_", "parameter_", "of_", "a_", "method_", "is_", "not_", "named_", "'", "self", "'_", "[SEP]_", "class_", "HTM", "L", "5", "Translator_", "(_", "nodes_", "._", "Node", "Visitor_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\...
[ 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 ]
Unused import
ooici/pyon/pyon/ion/test/test_process.py
[ { "content": "#!/usr/bin/env python\n\n__author__ = 'Dave Foster <dfoster@asascience.com>'\n\nfrom pyon.ion.process import IonProcessThread\nfrom pyon.ion.endpoint import ProcessRPCServer\nfrom gevent.event import AsyncResult, Event\nfrom gevent.coros import Semaphore\nfrom gevent.timeout import Timeout\nfrom p...
[]
[]
0
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_", "\\u\\u", "author\\u\\u_", "=_", "'", "Dav", "e", " ", "Fos", "ter", " ...
[ 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...
Comparison using is when operands support `__eq__`
gregmuellegger/django-autofixture/autofixture/base.py
[ { "content": "# -*- coding: utf-8 -*-\nimport warnings\nfrom django.db.models import fields, ImageField\nfrom django.db.models.fields import related\nfrom django.utils.six import with_metaclass\n\nimport autofixture\nfrom autofixture import constraints, generators, signals\nfrom autofixture.values import Values...
[]
[]
0
false
[ "[CLS]_", "Compari", "son_", "using_", "is_", "when_", "operands_", "support_", " _", "`_", "\\u\\u", "eq\\u\\u_", "`_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "-*-", " ", "codi", "ng", ":", " ", "utf", "-", "8", " ", "-*-", "_", "\\u\\u\...
[ 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
maxtepkeev/architect/tests/models/pony.py
[ { "content": "from __future__ import absolute_import\n\nimport os\nimport datetime\n\nfrom pony.orm import *\nfrom architect import install\n\ndatabases = {\n 'sqlite': {'type': 'sqlite', 'args': (':memory:',), 'kwargs': {}},\n 'pgsql': {'type': 'postgres', 'args': (), 'kwargs': {'user': 'postgres', 'data...
[]
[]
0
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_", "\\u\\u\\uNL\\u\\u\\u_", "import_", "os_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "import_"...
[ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2...
Unused import
benadida/helios-server/helios_auth/utils.py
[ { "content": "\"\"\"\nSome basic utils \n(previously were in helios module, but making things less interdependent\n\n2010-08-17\n\"\"\"\n\nimport json\n\n## JSON\n \n \n \n \n\n\n", "metadata": "root", "header": "['module', '___EOS___']", "index": 0 }, { "content": "def to_json(d):\n...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\"\"\"", "\\", "10", ";", "Some", " ", "basic", " ", "util", "s", " ", "\\", "10", ";", "(", "previ", "ously", " ", "wer", "e", " ", "in", " ", "heli", "os", " ", "mo...
[ 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...
Comparison of identical values
google/transitfeed/transitfeed/schedule.py
[ { "content": " def GetStopsInBoundingBox(self, north, east, south, west, n):\n \"\"\"Return a sample of up to n stops in a bounding box\"\"\"\n stop_list = []\n for s in self.stops.values():\n if (s.stop_lat <= north and s.stop_lat >= south and\n s.stop_lon <= east and s.stop_lon >= west...
[]
[]
0
true
[ "[CLS]_", "Compari", "son_", "of_", "identical_", "values_", "[SEP]_", "class_", "Schedule_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "Get", "Stops", "In", "Bound", "ing", "Box_", "(_", "self...
[ 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...
Imprecise assert
m-vdb/github-buildservice-boilerplate/buildservice/tests/views/test_oauth.py
[ { "content": " @patch.object(Repository, 'add_user_to_known_repositories')\n @patch('requests_oauthlib.OAuth2Session.fetch_token', return_value={'access_token': 'abc'})\n def test_callback_ok(self, fetch_token, add_repos):\n self.assertTrue(self.client.login(username='user', password='pwd'))\n ...
[]
[]
0
true
[ "[CLS]_", "Imp", "reci", "se_", "assert_", "[SEP]_", "class_", "OA", "uth", "View", "s", "Test", "Case_", "(_", "Test", "Case_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "@_", "patch_", "._", "object_", "(_", "Rep...
[ 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
thumbor/thumbor/tests/detectors/test_queued_detector.py
[ { "content": "class QueuedDetectorTestCase(TestCase):\n\n\n", "metadata": "root.QueuedDetectorTestCase", "header": "['module', '___EOS___']", "index": 20 } ]
[]
[]
0
true
[ "[CLS]_", "Variable_", "defined_", "multiple_", "times_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "class_", "Queued", "Detect", "or", "Test", "Case_", "(_", "Test", "Case_", ")_", ":_", "\\u\\u\\uNEWLINE\\u\\u\\u_", "\\u\\u\\uNEWLINE\\u\\u\\u...
[ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ]
Unused local variable
carpedm20/LINE/line/api.py
[ { "content": " def _sendMessage(self, message, seq=0):\n \"\"\"Send a message to `id`. `id` could be contact id or group id\n\n :param message: `message` instance\n \"\"\"\n return self._client.sendMessage(seq, message)", "metadata": "root.LineAPI._sendMessage", "header": ...
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Line", "API_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u", "send", "Message_", "(_", "self_", ",_", "message_", ",_", ...
[ 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
kivy/python-for-android/pythonforandroid/recipes/zeroconf/__init__.py
[ { "content": " def get_recipe_env(self, arch=None):\n env = super(ZeroconfRecipe, self).get_recipe_env(arch)\n\n # TODO: fix hardcoded path\n # This is required to prevent issue with _io.so import.\n hostpython = self.get_recipe('hostpython2', self.ctx)\n env['PYTHONPATH'] ...
[]
[]
0
true
[ "[CLS]_", "Un", "used_", "local_", "variable_", "[SEP]_", "class_", "Zero", "conf", "Recipe_", "(_", "Pyth", "on", "Recipe_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "get", "\\u", "recip", "e\\u", "env_", "(_", "self_", ",_", "arch...
[ 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
kuri65536/python-for-android/python-modules/twisted/twisted/names/dns.py
[ { "content": "# -*- test-case-name: twisted.names.test.test_dns -*-\n# Copyright (c) 2001-2010 Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nDNS protocol implementation.\n\nFuture Plans:\n - Get rid of some toplevels, maybe.\n\n@author: Moshe Zadka\n@author: Jean-Paul Calderone\n\"\"\"\...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "-*-", " ", "test", "-", "case", "-", "name", ":", " ", "twist", "ed", ".", "names", ".", "test", ".", "test\\u", "dns", " ", "-*-", "_", "\\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
cloudera/hue/desktop/libs/notebook/src/notebook/connectors/jdbc.py
[ { "content": "#!/usr/bin/env python\n# Licensed to Cloudera, Inc. under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. Cloudera, Inc. licenses this file\n# to you under the Apache License, Version 2....
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#!", "/", "usr", "/", "bin", "/", "env", " ", "python_", "\\u\\u\\uNL\\u\\u\\u_", "#", " ", "License", "d", " ", "to", " ", "Cloud", "era", ",", " ", "Inc", ".", " ", "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, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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'
graphite-project/carbon/bin/carbon-client.py
[ { "content": " def lineReceived(self, line):\n #log.msg(\"[DEBUG] lineReceived(): %s\" % line)\n try:\n (metric, value, timestamp) = line.split()\n datapoint = (float(timestamp), float(value))\n assert datapoint[1] == datapoint[1] # filter out NaNs\n client_manager.sendDatapoint(metri...
[]
[]
0
true
[ "[CLS]_", "Except", "_", "block_", "handles_", "'", "Base", "Except", "ion", "'_", "[SEP]_", "class_", "Std", "in", "Met", "ric", "s", "Reader_", "(_", "Line", "Receiver_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "def_", "line", "Received_...
[ 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...
Comparison of constants
mne-tools/mne-python/mne/externals/tempita/__init__.py
[ { "content": " def _interpret_code(self, code, ns, out, defs):\n # __traceback_hide__ = True\n name, pos = code[0], code[1]\n if name == 'py':\n self._exec(code[2], ns, pos)\n elif name == 'continue':\n raise _TemplateContinue()\n elif name == 'break':...
[]
[]
0
true
[ "[CLS]_", "Compari", "son_", "of_", "constants_", "[SEP]_", "class_", "Template_", "(_", "object_", ")_", ":_", "\\u\\u\\uEOS\\u\\u\\u_", "\\u\\u\\uNL\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "\\u\\u\\uDEDENT\\u\\u\\u_", "def_", "\\u", "interpret", ...
[ 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
facebook/sparts/sparts/vservice.py
[ { "content": "# Copyright (c) 2014, Facebook, Inc. All rights reserved.\n#\n# This source code is licensed under the BSD-style license found in the\n# LICENSE file in the root directory of this source tree. An additional grant\n# of patent rights can be found in the PATENTS file in the same directory.\n#\n\"\"...
[]
[]
0
false
[ "[CLS]_", "Un", "used_", "import_", "[SEP]_", "module_", "\\u\\u\\uEOS\\u\\u\\u_", "#", " ", "Copy", "right", " ", "(", "c", ")", " ", "2014", ",", " ", "Face", "book", ",", " ", "Inc", ".", " ", " ", "All", " ", "rights", " ", "reserve", "d", "._", ...
[ 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...