Search is not available for this dataset
id
int32
source_tokens
list
has_bug
bool
error_location
int32
repair_candidates
list
bug_kind
int32
bug_kind_name
string
repair_targets
list
edges
list
provenances
list
template_name
string
template
string
rendered_input
string
rendered_output
string
5,887
[ "#NEWLINE#", "def isFinished(", "self", ")", ":", "#NEWLINE#", "#INDENT#", "res", "=", "self", ".", "env", ".", "gameOver", "(", ")", "#NEWLINE#", "if", "(", "self", "and", "self", ".", "alternateStarting", "and", "(", "not", "self", ".", "switched", ")", ...
true
19
[ "2", "9", "19", "21", "27", "35", "46", "7", "54" ]
1
VARIABLE_MISUSE
[ 7, 54 ]
[ [ { "before_index": 6, "after_index": 14, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 17, "after_index": 20, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 53, "after_index": ...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "pybrain/pybrain/pybrain/rl/environments/twoplayergames/tasks/gomokutask.py", "license": "bsd-3-clause", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def isFinished(self) : res = self.env.gameOver () if (<MASK> and self.alternateStarting and (not self.switched)) : self.opponent.color *= (- 1) self.switched = True return res Given the code above, what is a proper replacement for <MASK>? Choose among: self, res
res
5,888
[ "#NEWLINE#", "def isFinished(", "self", ")", ":", "#NEWLINE#", "#INDENT#", "res", "=", "self", ".", "env", ".", "gameOver", "(", ")", "#NEWLINE#", "if", "(", "res", "and", "res", ".", "alternateStarting", "and", "(", "not", "self", ".", "switched", ")", ...
true
21
[ "2", "9", "27", "35", "46", "7", "19", "21", "54" ]
1
VARIABLE_MISUSE
[ 2, 9, 27, 35, 46 ]
[ [ { "before_index": 6, "after_index": 14, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 17, "after_index": 20, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 53, "after_index": ...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "pybrain/pybrain/pybrain/rl/environments/twoplayergames/tasks/gomokutask.py", "license": "bsd-3-clause", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def isFinished(self) : res = self.env.gameOver () if (res and <MASK>.alternateStarting and (not self.switched)) : self.opponent.color *= (- 1) self.switched = True return res Given the code above, what is a proper replacement for <MASK>? Choose among: self, res
self
5,889
[ "#NEWLINE#", "def rotateRight(", "self", ",", "head", ",", "k", ")", ":", "#NEWLINE#", "#INDENT#", "if", "(", "not", "head", ")", ":", "#NEWLINE#", "#INDENT#", "return", "head", "#NEWLINE#", "#UNINDENT#", "dummy", "=", "ListNode", "(", "0", ")", "#NEWLINE#",...
true
100
[ "85", "94", "107", "141", "4", "14", "20", "34", "42", "6", "45", "67", "23", "30", "51", "133", "137", "144", "53", "62", "80", "2", "38", "49", "59", "74", "76", "87", "109", "36", "47", "65", "100", "105", "116", "122", "124", "129" ]
1
VARIABLE_MISUSE
[ 23, 30, 51, 133, 137, 144 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 11, "after_index": 13, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 22, "after_index": 2...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "algorhythms/LintCode/Rotate List.py", "license": "apache-2.0", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def rotateRight(self, head, k) : if (not head) : return head dummy = ListNode (0) dummy.next = head l = self.get_len (head) k %= l pre = dummy i = 0 while (pre and (i < (l - k))) : pre = pre.next i += 1 new_head = pre.next if (not new_head) : ...
dummy
5,890
[ "#NEWLINE#", "@", "pytest", ".", "fixture", "#NEWLINE#", "def app(", "blueprint", ",", "db", ",", "request", ")", ":", "#NEWLINE#", "#INDENT#", "app", "=", "flask", ".", "Flask", "(", "__name__", ")", "#NEWLINE#", "app", ".", "config", "[", "'SQLALCHEMY_DATA...
true
94
[ "7", "62", "9", "69", "16", "25", "43", "52", "58", "73", "78", "100", "76", "84", "11", "90", "94" ]
1
VARIABLE_MISUSE
[ 76, 84 ]
[ [ { "before_index": 1, "after_index": 8, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 15, "after_index": 21, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 24, "after_index": 3...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "singingwolfboy/flask-dance/tests/consumer/storage/test_sqla.py", "license": "mit", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
@ pytest.fixture def app(blueprint, db, request) : app = flask.Flask (__name__) app.config ['SQLALCHEMY_DATABASE_URI'] = os.environ.get ('DATABASE_URI', 'sqlite://') app.config ['CACHE_TYPE'] = 'simple' app.secret_key = 'secret' app.register_blueprint (blueprint, url_prefix = '/login') db...
ctx
5,891
[ "#NEWLINE#", "def get_value(", "self", ",", "user_ids", ",", "datespan", "=", "None", ",", "is_debug", "=", "False", ")", ":", "#NEWLINE#", "#INDENT#", "open_cases", "=", "[", "]", "#NEWLINE#", "closed_on_closed_cases", "=", "[", "]", "#NEWLINE#", "opened_on_clo...
true
65
[ "88", "120", "109", "124", "95", "111", "102", "115", "6", "51", "67", "83", "4", "35", "65", "22", "55", "99", "27", "71", "106", "33", "49", "81", "2", "43", "59", "75", "17", "39", "92", "118", "131", "145", "10", "135", "127", "141", "1...
1
VARIABLE_MISUSE
[ 33, 49, 81 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 16, "after_index": 19, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 21, "after_index": 2...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "dimagi/commcare-hq/custom/_legacy/mvp/models.py", "license": "bsd-3-clause", "note": "license: manual_eval" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def get_value(self, user_ids, datespan = None, is_debug = False) : open_cases = [] closed_on_closed_cases = [] opened_on_closed_cases = [] for user_id in user_ids : open_cases.extend (self.get_value_by_status ('opened_on open', user_id, datespan)) closed_on_closed_cases.extend (sel...
user_id
5,913
[ "#NEWLINE#", "@", "mock", ".", "patch", ".", "object", "(", "vif", ".", "LOG", ",", "'warning'", ")", "#NEWLINE#", "@", "mock", ".", "patch", ".", "object", "(", "vim_util", ",", "'get_vc_version'", ",", "return_value", "=", "'5.0.0'", ")", "#NEWLINE#", ...
true
70
[ "34", "63", "91", "103", "36", "68", "78", "32", "99", "48", "70", "86" ]
1
VARIABLE_MISUSE
[ 36 ]
[ [ { "before_index": 1, "after_index": 33, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 40, "after_index": 44, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 47, "after_index": ...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/virt/vmwareapi/test_vif.py", "license": "apache-2.0", "note": "license: github_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
@ mock.patch.object (vif.LOG, 'warning') @ mock.patch.object (vim_util, 'get_vc_version', return_value = '5.0.0') def test_check_invalid_ovs_version(self, mock_version, mock_warning) : vif._check_ovs_supported_version ('fake_session') expected_arg = { 'version' : constants.MIN_VC_OVS_VERSION, } ...
mock_warning
5,914
[ "#NEWLINE#", "def check_tag_support(", "self", ",", "operation", ",", "resultset_key", ",", "sample_item_id", ",", "id_key", ",", "item_kinds", "=", "[", "]", ")", ":", "#NEWLINE#", "#INDENT#", "self", ".", "db_api", ".", "get_tags", "=", "tools", ".", "Copyin...
true
383
[ "56", "198", "4", "82", "363", "448", "6", "100", "118", "128", "145", "148", "151", "450", "12", "246", "251", "302", "317", "415", "433", "92", "202", "240", "108", "141", "158", "116", "124", "8", "38", "171", "258", "370", "420", "436", "10...
1
VARIABLE_MISUSE
[ 2, 20, 78, 176, 185, 211, 236, 264, 270, 282, 326, 359, 377, 395, 444 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 19, "after_index": 29, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 55, "after_index": 5...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "openstack/ec2-api/ec2api/tests/unit/base.py", "license": "apache-2.0", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def check_tag_support(self, operation, resultset_key, sample_item_id, id_key, item_kinds = []) : self.db_api.get_tags = tools.CopyingMock (return_value = [{ 'item_id' : sample_item_id, 'key' : 'fake_key', 'value' : 'fake_value', }]) ec2_tags = [{ 'key' : 'fake_key', ...
self
5,915
[ "#NEWLINE#", "def setUp(", "self", ")", ":", "#NEWLINE#", "#INDENT#", "super", "(", "DbTestCase", ",", "self", ")", ".", "setUp", "(", ")", "#NEWLINE#", "self", ".", "configure", "(", "connection", "=", "'sqlite://'", ",", "group", "=", "'database'", ")", ...
true
79
[ "58", "66", "2", "11", "18", "31", "44", "75", "79", "50", "60" ]
1
VARIABLE_MISUSE
[ 50, 60 ]
[ [ { "before_index": 6, "after_index": 15, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 17, "after_index": 25, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 30, "after_index": ...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "openstack/ec2-api/ec2api/tests/unit/base.py", "license": "apache-2.0", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def setUp(self) : super (DbTestCase, self).setUp () self.configure (connection = 'sqlite://', group = 'database') self.configure (sqlite_synchronous = False, group = 'database') self._init_db_schema () engine = db_backend.get_engine () conn = engine.connect () conn.connection.executes...
engine
5,916
[ "#NEWLINE#", "def __init__(", "self", ",", "full_thread_id", ",", "author_id", ",", "exploration_id", ",", "exploration_version", ",", "state_name", ",", "description", ",", "state_content", ")", ":", "#NEWLINE#", "#INDENT#", "self", ".", "id", "=", "exploration_ver...
true
25
[ "16", "59", "61", "4", "8", "35", "37", "6", "29", "31", "14", "53", "55", "12", "47", "49", "10", "25", "41", "43", "2", "21", "27", "33", "39", "45", "51", "57" ]
1
VARIABLE_MISUSE
[ 4 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 20, "after_index": 25, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 26, "after_index": 3...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "oppia/oppia/core/domain/feedback_domain.py", "license": "apache-2.0", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def __init__(self, full_thread_id, author_id, exploration_id, exploration_version, state_name, description, state_content) : self.id = <MASK> self.author_id = author_id self.exploration_id = exploration_id self.exploration_version = exploration_version self.state_name = state_name self.des...
full_thread_id
5,917
[ "#NEWLINE#", "def test_user_exists_with_email(", "self", ")", ":", "#NEWLINE#", "#INDENT#", "user", "=", "UserProfile", ".", "objects", ".", "create", "(", "fxa_id", "=", "'9999'", ",", "email", "=", "'me@amo.ca'", ")", "#NEWLINE#", "found_user", "=", "views", "...
true
51
[ "7", "49", "51", "2", "24" ]
1
VARIABLE_MISUSE
[ 24 ]
[ [ { "before_index": 6, "after_index": 18, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 23, "after_index": 29, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 47, "after_index": ...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "mozilla/addons-server/src/olympia/accounts/tests/test_views.py", "license": "bsd-3-clause", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def test_user_exists_with_email(self) : user = UserProfile.objects.create (fxa_id = '9999', email = 'me@amo.ca') found_user = views.find_user ({ 'uid' : '8888', 'email' : 'me@amo.ca', }) assert (user == <MASK>) Given the code above, what is a proper replacement for <MASK>? Ch...
found_user
5,918
[ "#NEWLINE#", "def get_image_data(", "self", ",", "update_index", ")", ":", "#NEWLINE#", "#INDENT#", "with", "update_index", ".", "_buflock", ":", "#NEWLINE#", "#INDENT#", "if", "(", "self", ".", "_buf", "is", "None", ")", ":", "#NEWLINE#", "#INDENT#", "return", ...
true
10
[ "40", "53", "2", "18", "31", "42", "4", "10" ]
1
VARIABLE_MISUSE
[ 2, 18, 31, 42 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 51, "after_index": 52, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 16, "after_index": 2...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "dddomodossola/remi/examples/matplotlib_app.py", "license": "apache-2.0", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def get_image_data(self, update_index) : with <MASK>._buflock : if (self._buf is None) : return None self._buf.seek (0) data = self._buf.read () return [data, { 'Content-type' : 'image/png', }] Given the code above, what is a proper replacement for <MASK>? Choos...
self
5,919
[ "#NEWLINE#", "@", "extensionclassmethod", "(", "Observable", ")", "#NEWLINE#", "def using(", "cls", ",", "resource_factory", ",", "observable_factory", ")", ":", "#NEWLINE#", "#INDENT#", "\"Constructs an observable sequence that depends on a resource object,\\n whose lifetime is...
true
108
[ "10", "39", "77", "96", "8", "12", "55", "108" ]
1
VARIABLE_MISUSE
[ 77, 96 ]
[ [ { "before_index": 1, "after_index": 9, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 16, "after_index": 17, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 105, "after_index": ...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "ReactiveX/RxPY/rx/linq/observable/using.py", "license": "mit", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
@ extensionclassmethod (Observable) def using(cls, resource_factory, observable_factory) : "Constructs an observable sequence that depends on a resource object, whose lifetime is tied to the resulting observable sequence's lifetime. 1 - res = rx.Observable.using(lambda: AsyncSubject(), lambda: s: s) ...
subscribe
5,920
[ "#NEWLINE#", "def lookup_url(", "self", ",", "view", ")", ":", "#NEWLINE#", "#INDENT#", "'Shortcut method to the the proper url from the `paymentModule`'", "#NEWLINE#", "return", "lookup_url", "(", "view", ".", "paymentModule", ",", "view", ")" ]
true
14
[ "2", "4", "14", "18" ]
1
VARIABLE_MISUSE
[ 2 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 8, "after_index": 9, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 11, "after_index": 17,...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "dokterbob/satchmo/satchmo/apps/payment/views/confirm.py", "license": "bsd-3-clause", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def lookup_url(self, view) : 'Shortcut method to the the proper url from the `paymentModule`' return lookup_url (<MASK>.paymentModule, view) Given the code above, what is a proper replacement for <MASK>? Choose among: self, view
self
5,921
[ "#NEWLINE#", "@", "apply_defaults", "#NEWLINE#", "def __init__(", "self", ",", "pig", ",", "pig_cli_conn_id", "=", "'pig_cli_default'", ",", "pigparams_jinja_translate", "=", "False", ",", "*", "args", ",", "**kwargs", ")", ":", "#NEWLINE#", "#INDENT#", "super", "...
true
38
[ "9", "38", "55", "57", "13", "43", "45", "5", "29", "41", "47", "53", "7", "49", "51", "18", "35" ]
1
VARIABLE_MISUSE
[]
[ [ { "before_index": 1, "after_index": 6, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 6, "after_index": 18, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 24, "after_index": 36...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "airbnb/airflow/airflow/operators/pig_operator.py", "license": "apache-2.0", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
@ apply_defaults def __init__(self, pig, pig_cli_conn_id = 'pig_cli_default', pigparams_jinja_translate = False, * args, **kwargs) : super (PigOperator, self).__init__ (* args, ** <MASK>) self.pigparams_jinja_translate = pigparams_jinja_translate self.pig = pig self.pig_cli_conn_id = pig_cli_conn_i...
5,922
[ "#NEWLINE#", "def build_spider_registry(", "config", ")", ":", "#NEWLINE#", "#INDENT#", "SPIDER_REGISTRY", ".", "clear", "(", ")", "#NEWLINE#", "opt_modules", "=", "[", "]", "#NEWLINE#", "opt_modules", "=", "config", "[", "'global'", "]", ".", "get", "(", "'spid...
true
80
[ "2", "20", "34", "44", "50", "55", "101", "229", "131", "142", "161", "175", "213", "235", "242", "253", "265", "283", "52", "67", "155", "163", "13", "18", "36", "169", "182", "189", "198", "215", "231", "269", "286", "76", "80", "135", "173",...
1
VARIABLE_MISUSE
[ 34, 44, 50, 55, 101, 229 ]
[ [ { "before_index": 6, "after_index": 10, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 12, "after_index": 15, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 17, "after_index": ...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "lorien/grab/grab/util/module.py", "license": "mit", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def build_spider_registry(config) : SPIDER_REGISTRY.clear () opt_modules = [] opt_modules = config ['global'].get ('spider_modules', []) for path in opt_modules : if (':' in path) : (path, cls_name) = path.split (':') else : cls_name = None try : mod...
path
5,923
[ "#NEWLINE#", "def _limit(", "self", ",", "request", ")", ":", "#NEWLINE#", "#INDENT#", "limit", "=", "request", ".", "GET", ".", "get", "(", "self", ".", "limit_arg", ",", "self", ".", "limit", ")", "#NEWLINE#", "return", "(", "int", "(", "self", ")", ...
true
30
[ "4", "11", "35", "2", "17", "21", "30", "9", "23" ]
1
VARIABLE_MISUSE
[ 9, 23 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 8, "after_index": 20, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 26, "after_index": 32...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "opps/opps/opps/api/__init__.py", "license": "mit", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def _limit(self, request) : limit = request.GET.get (self.limit_arg, self.limit) return (int (<MASK>) * int (request.GET.get ('page', 1))) Given the code above, what is a proper replacement for <MASK>? Choose among: request, self, limit
limit
5,924
[ "#NEWLINE#", "def set_openshift_required_version(", "self", ",", "openshift_required_version", ")", ":", "#NEWLINE#", "#INDENT#", "if", "(", "openshift_required_version", "is not", "None", ")", ":", "#NEWLINE#", "#INDENT#", "self", ".", "_openshift_required_version", "=", ...
true
22
[ "2", "18", "22", "4", "11" ]
1
VARIABLE_MISUSE
[ 4, 11 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 9, "after_index": 12, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 12, "after_index": 11...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "projectatomic/osbs-client/osbs/build/build_request.py", "license": "bsd-3-clause", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def set_openshift_required_version(self, openshift_required_version) : if (openshift_required_version is not None) : self._openshift_required_version = <MASK> Given the code above, what is a proper replacement for <MASK>? Choose among: self, openshift_required_version
openshift_required_version
5,925
[ "#NEWLINE#", "def test_format_sep_tags(", "self", ")", ":", "#NEWLINE#", "#INDENT#", "sep_tags", "=", "[", "'These, we know'", ",", "'should be many'", "]", "#NEWLINE#", "sep_output", "=", "helpers", ".", "format_tags", "(", "sep_tags", ",", "sep", "=", "','", ")"...
true
32
[ "7", "21", "32", "15", "2" ]
1
VARIABLE_MISUSE
[ 15 ]
[ [ { "before_index": 6, "after_index": 9, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 14, "after_index": 22, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 28, "after_index": 3...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "CenterForOpenScience/scrapi/tests/test_helpers.py", "license": "apache-2.0", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def test_format_sep_tags(self) : sep_tags = ['These, we know', 'should be many'] sep_output = helpers.format_tags (sep_tags, sep = ',') assert (set (<MASK>) == set (['these', 'we know', 'should be many'])) Given the code above, what is a proper replacement for <MASK>? Choose among: sep_tags, se...
sep_output
5,926
[ "#NEWLINE#", "def test_resolve(", "self", ")", ":", "#NEWLINE#", "#INDENT#", "' test resolve function '", "#NEWLINE#", "tmp", "=", "{", "#NEWLINE#", "#INDENT#", "'t'", ":", "{", "#NEWLINE#", "#INDENT#", "#NEWLINE#", "#UNINDENT#", "}", ",", "#NEWLINE#", "#UNINDENT#", ...
true
122
[ "9", "103", "120", "133", "143", "155", "167", "182", "196", "2", "127", "149", "176", "27", "116", "122", "108", "112" ]
1
VARIABLE_MISUSE
[ 9, 103 ]
[ [ { "before_index": 6, "after_index": 7, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 8, "after_index": 11, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 26, "after_index": 29...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "mission-liao/pyswagger/pyswagger/tests/test_base.py", "license": "mit", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def test_resolve(self) : ' test resolve function ' tmp = { 't' : { }, } obj = { 'a' : [{ }, { }, { }], 'b' : { '/a' : { }, '~b' : { }, 'cc' : { ...
tmp
5,927
[ "#NEWLINE#", "def __call__(", "self", ",", "args", ")", ":", "#NEWLINE#", "#INDENT#", "(", "options", ",", "args", ",", "context", ")", "=", "self", ".", "parse_args_and_create_context", "(", "args", ")", "#NEWLINE#", "method", "=", "args", ".", "pop", "(", ...
true
73
[ "2", "17", "24", "65", "33", "67", "73", "4", "12", "21", "26", "35", "47", "55", "42", "69", "10", "14", "63" ]
1
VARIABLE_MISUSE
[ 10 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 8, "after_index": 20, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 23, "after_index": 29...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "gholt/swiftly/swiftly/cli/tempurl.py", "license": "apache-2.0", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def __call__(self, args) : (options, args, context) = self.parse_args_and_create_context (args) method = args.pop (0) path = args.pop (0) seconds = (int (args.pop (0)) if args else None) return cli_tempurl (context, method, path, seconds, use_container = <MASK>.use_container) Given th...
options
5,928
[ "#NEWLINE#", "def quote_name(", "self", ",", "name", ")", ":", "#NEWLINE#", "#INDENT#", "if", "(", "name", ".", "startswith", "(", "'\"'", ")", "and", "name", ".", "endswith", "(", "'\"'", ")", ")", ":", "#NEWLINE#", "#INDENT#", "return", "name", "#NEWLINE...
true
36
[ "4", "11", "18", "29", "2", "36" ]
1
VARIABLE_MISUSE
[ 4, 11, 18, 29 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 9, "after_index": 17, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 32, "after_index": 35...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "AppScale/appscale/AppServer/lib/django-1.5/django/db/backends/postgresql_psycopg2/operations.py", "license": "apache-2.0", "note": "license: github_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def quote_name(self, name) : if (name.startswith ('"') and name.endswith ('"')) : return name return ('"%s"' % <MASK>) Given the code above, what is a proper replacement for <MASK>? Choose among: name, self
name
5,929
[ "#NEWLINE#", "def __init__(", "self", ",", "entity", ",", "parent", "=", "None", ")", ":", "#NEWLINE#", "#INDENT#", "if", "(", "not", "entity", ")", ":", "#NEWLINE#", "#INDENT#", "QtGui", ".", "QTreeWidgetItem", ".", "__init__", "(", "self", ",", "parent", ...
true
155
[ "155", "358", "368", "393", "475", "489", "505", "521", "536", "551", "584", "599", "615", "629", "644", "660", "678", "4", "16", "132", "134", "147", "286", "322", "352", "360", "689", "700", "6", "29", "144", "403", "414", "418", "438", "501", ...
1
VARIABLE_MISUSE
[ 4, 16, 132, 134, 147, 286, 322, 352, 360, 689, 700 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 13, "after_index": 15, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 129, "after_index": ...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "VisTrails/VisTrails/vistrails/gui/collection/workspace.py", "license": "bsd-3-clause", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def __init__(self, entity, parent = None) : if (not entity) : QtGui.QTreeWidgetItem.__init__ (self, parent) self.tag_to_item = { } self.workflowsItem = QWorkflowsItem () self.addChild (self.workflowsItem) self.mshp_to_item = { } self...
entity
5,930
[ "#NEWLINE#", "def __eq__(", "self", ",", "other", ")", ":", "#NEWLINE#", "#INDENT#", "'\\n :param other: an IP set\\n\\n :return: ``True`` if this IP set is equivalent to the ``other`` IP set,\\n ``False`` otherwise.\\n '", "#NEWLINE#", "try", ":", "#NEWLINE...
true
17
[ "2", "4", "17", "21" ]
1
VARIABLE_MISUSE
[ 2 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 8, "after_index": 9, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 15, "after_index": 20,...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "drkjam/netaddr/netaddr/ip/sets.py", "license": "bsd-3-clause", "note": "license: manual_eval" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def __eq__(self, other) : ' :param other: an IP set :return: ``True`` if this IP set is equivalent to the ``other`` IP set, ``False`` otherwise. ' try : return (<MASK>._cidrs == other._cidrs) except AttributeError : return NotImplemented Given ...
self
5,931
[ "#NEWLINE#", "def _register_user(", "request", ",", "facebook", ",", "profile_callback", "=", "None", ",", "remove_old_connections", "=", "False", ")", ":", "#NEWLINE#", "#INDENT#", "'\\n Creates a new user and authenticates\\n The registration form handles the registration a...
true
102
[ "82", "110", "4", "22", "64", "102", "322", "351", "38", "50", "57", "260", "266", "356", "6", "70", "98", "108", "154", "159", "185", "187", "255", "264", "285", "316", "320", "339", "354", "366", "370", "303", "312", "53", "183", "84", "113",...
1
VARIABLE_MISUSE
[ 82, 110 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 16, "after_index": 17, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 19, "after_index": 2...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "tschellenbach/Django-facebook/django_facebook/connect.py", "license": "bsd-3-clause", "note": "license: manual_eval" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def _register_user(request, facebook, profile_callback = None, remove_old_connections = False) : ' Creates a new user and authenticates The registration form handles the registration and validation Other data on the user profile is updates afterwards if remove_old_connections = True we will discon...
k
5,932
[ "#NEWLINE#", "def http_error_302(", "self", ",", "req", ",", "fp", ",", "code", ",", "msg", ",", "headers", ")", ":", "#NEWLINE#", "#INDENT#", "newurl", "=", "None", "#NEWLINE#", "for", "key", "in", "(", "'location'", ",", "'uri'", ")", ":", "#NEWLINE#", ...
true
45
[ "10", "141", "4", "86", "135", "12", "36", "43", "45", "98", "105", "119", "143", "2", "133", "6", "137", "17", "41", "54", "68", "82", "92", "111", "124", "64", "73", "8", "139", "22", "34", "109", "121" ]
1
VARIABLE_MISUSE
[ 22, 34, 109, 121 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 16, "after_index": 19, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 21, "after_index": 2...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "francelabs/datafari/windows/python/Lib/site-packages/pip/_vendor/distlib/locators.py", "license": "apache-2.0", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def http_error_302(self, req, fp, code, msg, headers) : newurl = None for key in ('location', 'uri') : if (key in headers) : newurl = headers [<MASK>] break if (newurl is None) : return urlparts = urlparse (newurl) if (urlparts.scheme == '') : newurl...
key
5,933
[ "#NEWLINE#", "def test_get_elastic_page_numbers_tens(", "self", ")", ":", "#NEWLINE#", "#INDENT#", "test_data", "=", "(", "(", "1", ",", "11", ",", "[", "1", ",", "2", ",", "4", ",", "8", ",", "10", ",", "11", ",", "'next'", ",", "'last'", "]", ")", ...
true
801
[ "2", "797", "801", "7" ]
1
VARIABLE_MISUSE
[ 7 ]
[ [ { "before_index": 6, "after_index": 33, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 796, "after_index": 800, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 800, "after_index...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "frankban/django-endless-pagination/endless_pagination/tests/test_utils.py", "license": "mit", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def test_get_elastic_page_numbers_tens(self) : test_data = ((1, 11, [1, 2, 4, 8, 10, 11, 'next', 'last']), (2, 11, ['first', 'previous', 1, 2, 3, 5, 8, 10, 11, 'next', 'last']), (3, 11, ['first', 'previous', 1, 2, 3, 4, 6, 8, 10, 11, 'next', 'last']), (4, 11, ['first', 'previous', 1, 2, 3, 4, 5, 7, 8, 10, 11, 'nex...
test_data
5,934
[ "#NEWLINE#", "def _servers_create(", "self", ",", "method", ",", "url", ",", "body", ",", "headers", ")", ":", "#NEWLINE#", "#INDENT#", "body", "=", "self", ".", "fixtures", ".", "load", "(", "'servers_create.json'", ")", "#NEWLINE#", "return", "(", "httplib",...
true
32
[ "2", "17", "4", "8", "15", "10", "32", "6" ]
1
VARIABLE_MISUSE
[ 8, 15 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 14, "after_index": 22, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 26, "after_index": 3...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "apache/libcloud/libcloud/test/compute/test_elasticstack.py", "license": "apache-2.0", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def _servers_create(self, method, url, body, headers) : body = self.fixtures.load ('servers_create.json') return (httplib.OK, <MASK>, { }, httplib.responses [httplib.OK]) Given the code above, what is a proper replacement for <MASK>? Choose among: self, method, body, headers, url
body
5,935
[ "#NEWLINE#", "def increment_name(", "name", ")", ":", "#NEWLINE#", "#INDENT#", "p", "=", "re", ".", "compile", "(", "'\\\\([0-9]+\\\\)$'", ")", "#NEWLINE#", "s", "=", "p", ".", "search", "(", "name", ")", "#NEWLINE#", "if", "s", ":", "#NEWLINE#", "#INDENT#",...
true
73
[ "30", "55", "65", "83", "93", "7", "18", "73", "46", "16", "26", "34", "2", "22", "75", "86" ]
1
VARIABLE_MISUSE
[ 46 ]
[ [ { "before_index": 6, "after_index": 12, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 15, "after_index": 21, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 25, "after_index": ...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "HewlettPackard/python-hpOneView/examples/scripts/copy-profile.py", "license": "mit", "note": "license: bigquery_api" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def increment_name(name) : p = re.compile ('\\([0-9]+\\)$') s = p.search (name) if s : num = int (s.group ().strip ('()')) inc = (('(' + str ((num + 1))) + ')') dest_name = re.sub ('\\([0-9]+\\)$', <MASK>, name) else : dest_name = (name + ' (1)') return dest_name ...
inc
5,936
[ "#NEWLINE#", "def generate_settings(", "config_template", "=", "None", ")", ":", "#NEWLINE#", "#INDENT#", "'\\n Used to emit a generated configuration from ``config_template``.\\n\\n :param config_template:\\n Config template\\n '", "#NEWLINE#", "if", "(", "config_template"...
true
37
[ "2", "13", "20", "29", "37", "41", "43" ]
1
VARIABLE_MISUSE
[ 2, 13, 20 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 8, "after_index": 9, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 11, "after_index": 14,...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "dropbox/nsot/nsot/util/core.py", "license": "apache-2.0", "note": "license: manual_eval" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def generate_settings(config_template = None) : ' Used to emit a generated configuration from ``config_template``. :param config_template: Config template ' if (config_template is None) : config_template = CONFIG_TEMPLATE.strip () secret_key = generate_secret_key () return ...
config_template
5,937
[ "#NEWLINE#", "def _enqueue_multipart_upload_tasks(", "self", ",", "filename", ",", "remove_local_file", "=", "False", ")", ":", "#NEWLINE#", "#INDENT#", "chunksize", "=", "find_chunksize", "(", "filename", ".", "size", ",", "self", ".", "chunksize", ")", "#NEWLINE#"...
true
66
[ "6", "87", "91", "114", "13", "23", "41", "53", "26", "55", "64", "119", "47", "68", "83", "103", "105", "2", "21", "49", "60", "66", "77", "108", "4", "17", "35", "57", "70", "81", "99" ]
1
VARIABLE_MISUSE
[ 13, 23, 41, 53 ]
[ [ { "before_index": 1, "after_index": 3, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 12, "after_index": 20, "edge_type": 7, "edge_type_name": "enum_FIELD" } ], [ { "before_index": 25, "after_index": 2...
[ { "datasetProvenance": { "datasetName": "ETHPy150Open", "filepath": "aws/aws-cli/awscli/customizations/s3/s3handler.py", "license": "apache-2.0", "note": "license: manual_eval" } } ]
identifier prediction with choices
{% set mask = '<MASK>' %} {% set indent = ' ' %} {% set ns = namespace(indent_size=0, result=[]) %} {% if has_bug %} {% for token in source_tokens %} {% if loop.index0 == error_location %} {% set token = mask %} {% endif%} {% if token== '#INDENT#' %} {% set ns...
def _enqueue_multipart_upload_tasks(self, filename, remove_local_file = False) : chunksize = find_chunksize (filename.size, self.chunksize) num_uploads = int (math.ceil ((filename.size / float (chunksize)))) upload_context = self._enqueue_upload_start_task (chunksize, num_uploads, filename) self._en...
chunksize