[ { "input": " except NoOptionError:\n except (NoOptionError, NoSectionError):\n except NoOptionError:\n except (NoOptionError, NoSectionError):\n except NoOptionError:\n except (NoOptionError, NoSectionError):\n except NoOptionError:\n except (NoOptionError, NoSectionError):\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/nicolargo/glances/commit/551bdbfe851297095d7fc7a52f88e36cef5a457a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " msg, self.get_alert(self.stats['min5'], max=100 * self.stats['cpucore'])))\n msg, self.get_views(key='min5', option='decoration')))\n msg, self.get_alert_log(self.stats['min15'], max=100 * self.stats['cpucore'])))\n msg, self.get_views(key='min15', option='decoration')))\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/nicolargo/glances/commit/5496fcac2ff3f296853f9df9551a12848085a0c5", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " ret.append(self.curse_add_line(msg, optional=True))\n ret.append(self.curse_add_line(msg))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.052941176470588235, "commit_url": "https://github.com/nicolargo/glances/commit/3e49d3cc2d2cc44a1a3a35de14eb9db90f0fb319", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " ret.append(self.curse_add_line(msg, optional=True))\n ret.append(self.curse_add_line(msg))\n ret.append(self.curse_add_line(msg, optional=True))\n ret.append(self.curse_add_line(msg))\n ret.append(self.curse_add_line(msg, optional=True))\n ret.append(self.curse_add_line(msg))\n ret.append(self.curse_add_line(msg, optional=True))\n ret.append(self.curse_add_line(msg))\n ret.append(self.curse_add_line(msg, optional=True))\n ret.append(self.curse_add_line(msg))\n ret.append(self.curse_add_line(msg, optional=True))\n ret.append(self.curse_add_line(msg))\n ret.append(self.curse_add_line(msg, decoration='NICE', optional=True))\n ret.append(self.curse_add_line(msg, decoration='NICE'))\n ret.append(self.curse_add_line(msg, optional=True))\n ret.append(self.curse_add_line(msg))\n ret.append(self.curse_add_line(msg, decoration='STATUS', optional=True))\n ret.append(self.curse_add_line(msg, decoration='STATUS'))\n ret.append(self.curse_add_line(msg, optional=True))\n ret.append(self.curse_add_line(msg))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.052941176470588235, "commit_url": "https://github.com/nicolargo/glances/commit/3e49d3cc2d2cc44a1a3a35de14eb9db90f0fb319", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 6, 7, 8, 9, 10, 11 ] }, { "input": " ret.append(self.curse_add_line(msg, decoration='NICE', optional=True))\n ret.append(self.curse_add_line(msg, decoration='NICE'))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.052941176470588235, "commit_url": "https://github.com/nicolargo/glances/commit/3e49d3cc2d2cc44a1a3a35de14eb9db90f0fb319", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 9, 10, 11 ] }, { "input": " ret.append(self.curse_add_line(msg, decoration='STATUS', optional=True))\n ret.append(self.curse_add_line(msg, decoration='STATUS'))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.052941176470588235, "commit_url": "https://github.com/nicolargo/glances/commit/3e49d3cc2d2cc44a1a3a35de14eb9db90f0fb319", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 9, 11 ] }, { "input": " clientsnmp = GlancesSNMPClient(host=self.args.client)\n clientsnmp = GlancesSNMPClient(host=self.args.client,\n port=self.args.snmp_port,\n community=self.args.snmp_community)\n clientsnmp = GlancesSNMPClient(host=self.args.client)\n clientsnmp = GlancesSNMPClient(host=self.args.client,\n port=self.args.snmp_port,\n community=self.args.snmp_community)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/nicolargo/glances/commit/35ad7eb3fb85706fc6b3e501b5a4661dbd9a61b1", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " clientsnmp = GlancesSNMPClient(host=self.args.client)\n clientsnmp = GlancesSNMPClient(host=self.args.client,\n port=self.args.snmp_port,\n community=self.args.snmp_community)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/nicolargo/glances/commit/35ad7eb3fb85706fc6b3e501b5a4661dbd9a61b1", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " ret.append(self.curse_add_line(basename, decoration='OK', optional=True, splittable=True))\n msg = \" {0}\".format(args)\n ret.append(self.curse_add_line(msg, optional=True, splittable=True))\n ret.append(self.curse_add_line(basename, decoration='PROCESS', optional=True, splittable=True))\n ret.append(self.curse_add_line(msg, decoration='OK', optional=True, splittable=True))\n msg = \" {0}\".format(args)\n ret.append(self.curse_add_line(msg, optional=True, splittable=True))\n ret.append(self.curse_add_line(msg, decoration='PROCESS', optional=True, splittable=True))\n msg = \" {0}\".format(args)\n ret.append(self.curse_add_line(msg, optional=True, splittable=True))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.017964071856287425, "commit_url": "https://github.com/nicolargo/glances/commit/29fdeec161e67a3c870ab985ca4bf198c6286e30", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " ret.append(self.curse_add_line(msg, decoration='OK', optional=True, splittable=True))\n msg = \" {0}\".format(args)\n ret.append(self.curse_add_line(msg, optional=True, splittable=True))\n ret.append(self.curse_add_line(msg, decoration='PROCESS', optional=True, splittable=True))\n msg = \" {0}\".format(args)\n ret.append(self.curse_add_line(msg, optional=True, splittable=True))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.017857142857142856, "commit_url": "https://github.com/nicolargo/glances/commit/29fdeec161e67a3c870ab985ca4bf198c6286e30", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " msg = \" {0:>6}\".format(_(\"Rx\"))\n ret.append(self.curse_add_line(msg))\n msg = \" {0:>6}\".format(_(\"Tx\"))\n ret.append(self.curse_add_line(msg))\n if (args.network_sum):\n # Sum stats\n msg = \" {0:>14}\".format(_(\"Rx+Tx\"))\n ret.append(self.curse_add_line(msg))\n else:\n # Rx/Tx stats\n msg = \" {0:>6}\".format(_(\"Rx\"))\n ret.append(self.curse_add_line(msg))\n msg = \" {0:>6}\".format(_(\"Tx\"))\n ret.append(self.curse_add_line(msg))\n msg = \" {0:>6}\".format(rxps)\n ret.append(self.curse_add_line(msg))\n msg = \" {0:>6}\".format(txps)\n ret.append(self.curse_add_line(msg))\n if (args.network_sum):\n msg = \" {0:>14}\".format(sx)\n ret.append(self.curse_add_line(msg))\n else:\n msg = \" {0:>6}\".format(rx)\n ret.append(self.curse_add_line(msg))\n msg = \" {0:>6}\".format(tx)\n ret.append(self.curse_add_line(msg))\n msg = \" {0:>6}\".format(_(\"Rx/s\"))\n ret.append(self.curse_add_line(msg))\n msg = \" {0:>6}\".format(_(\"Tx/s\"))\n ret.append(self.curse_add_line(msg)) \n if (args.network_sum):\n # Sum stats\n msg = \" {0:>14}\".format(_(\"Rx+Tx/s\"))\n ret.append(self.curse_add_line(msg))\n else:\n msg = \" {0:>6}\".format(_(\"Rx/s\"))\n ret.append(self.curse_add_line(msg))\n msg = \" {0:>6}\".format(_(\"Tx/s\"))\n ret.append(self.curse_add_line(msg)) \n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/nicolargo/glances/commit/1dc591b7770f7c15c7e3ab80b960b1726ea5b36a", "target_edit_idx": 5, "propagatable_edit_idx": [ 11, 6 ] }, { "input": " rxps = self.auto_unit(int(i['rx'] // i['time_since_update']))\n txps = self.auto_unit(int(i['tx'] // i['time_since_update']))\n rx = self.auto_unit(int(i['rx'] // i['time_since_update']))\n tx = self.auto_unit(int(i['tx'] // i['time_since_update']))\n sx = self.auto_unit(int(i['rx'] // i['time_since_update']) \n + int(i['tx'] // i['time_since_update']))\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nicolargo/glances/commit/1dc591b7770f7c15c7e3ab80b960b1726ea5b36a", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " rxps = self.auto_unit(int(i['rx'] // i['time_since_update'] * 8)) + \"b\"\n txps = self.auto_unit(int(i['tx'] // i['time_since_update'] * 8)) + \"b\" \n rx = self.auto_unit(int(i['rx'] // i['time_since_update'] * 8)) + \"b\"\n tx = self.auto_unit(int(i['tx'] // i['time_since_update'] * 8)) + \"b\" \n sx = self.auto_unit(int(i['rx'] // i['time_since_update'] * 8) +\n int(i['tx'] // i['time_since_update'] * 8)) + \"b\"\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/nicolargo/glances/commit/1dc591b7770f7c15c7e3ab80b960b1726ea5b36a", "target_edit_idx": 10, "propagatable_edit_idx": [ 8 ] }, { "input": " def check_param_typos(cls, values):\n @classmethod\n def check_param_typos(cls, values: Any) -> Any:\n def check_param_typos(cls, values):\n @classmethod\n def check_param_typos(cls, values: Any) -> Any:\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mindsdb/mindsdb/commit/9c0fb0bef7d5603db6cde53f974001456c3b37e7", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "def get_available_models(api_key: str) -> List[str]:\n \"\"\"\n Returns a list of available openai models for the given API key.\ndef get_available_models(api_key: str, base_url: str) -> List[str]:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mindsdb/mindsdb/commit/73b047d246cfd39f78ee168e5e6ffec495d39569", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": " api_base = args.get('api_base', os.environ.get('OPENAI_API_BASE', OPENAI_API_BASE))\n api_base = connection_args.get('api_base') or args.get('api_base') or os.environ.get('OPENAI_API_BASE', OPENAI_API_BASE)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/73b047d246cfd39f78ee168e5e6ffec495d39569", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " available_models = get_available_models(api_key)\n connection_args = self.engine_storage.get_connection_args()\n api_base = connection_args.get('api_base') or args.get('api_base') or os.environ.get('OPENAI_API_BASE', OPENAI_API_BASE)\n available_models = get_available_models(api_key, api_base)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mindsdb/mindsdb/commit/73b047d246cfd39f78ee168e5e6ffec495d39569", "target_edit_idx": 7, "propagatable_edit_idx": [ 0 ] }, { "input": " args['api_base'] = pred_args.get(\n 'api_base',\n args.get(\n 'api_base', os.environ.get('OPENAI_API_BASE', OPENAI_API_BASE)\n ))\n connection_args = self.engine_storage.get_connection_args()\n args['api_base'] = connection_args.get('api_base') or args.get('api_base') or os.environ.get('OPENAI_API_BASE', OPENAI_API_BASE)\n api_base = args.get('api_base', os.environ.get('OPENAI_API_BASE', OPENAI_API_BASE))\n api_base = connection_args.get('api_base') or args.get('api_base') or os.environ.get('OPENAI_API_BASE', OPENAI_API_BASE)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/73b047d246cfd39f78ee168e5e6ffec495d39569", "target_edit_idx": 8, "propagatable_edit_idx": [ 6 ] }, { "input": " ft_suffix = self.engine_storage.json_get('ft-suffix')\n ft_suffix = self.engine_storage.json_get('ft-suffix')['ft-suffix']\n ft_suffix = self.engine_storage.json_get('ft-suffix')\n ft_suffix = self.engine_storage.json_get('ft-suffix')['ft-suffix']\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/mindsdb/mindsdb/commit/6a55fff21b0f076a26f22e30b33b4f7d8067681d", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " if args[\"recommendation_type\"] == \"user_item\":\n if predict_params[\"recommender_type\"] == \"user_item\":\n elif args[\"recommendation_type\"] == \"item_item\":\n elif predict_params[\"recommender_type\"] == \"item_item\":\n elif args[\"recommendation_type\"] == \"user_user\":\n elif predict_params[\"recommender_type\"] == \"user_user\":\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/a13bc17cfad12cd165efba2a1b442efd18c2ba84", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " recommendation_type='user_item',\n recommendation_type='{recommender_type}',\n recommendation_type='item_item',\n recommendation_type='{recommender_type}',\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/mindsdb/mindsdb/commit/a13bc17cfad12cd165efba2a1b442efd18c2ba84", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": "def load_chroma(embeddings_model_name, persist_directory, chroma_settings):\ndef load_chroma(embeddings_model_name, persist_directory, collection_name, chroma_settings):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/5e1919b4621aadd63a77746b366f6f3f79f233ee", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " db = load_chroma(embeddings_model_name, persist_directory, chroma_settings)\n db = load_chroma(embeddings_model_name, persist_directory, collection_name, chroma_settings)\ndef load_chroma(embeddings_model_name, persist_directory, chroma_settings):\ndef load_chroma(embeddings_model_name, persist_directory, collection_name, chroma_settings):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/5e1919b4621aadd63a77746b366f6f3f79f233ee", "target_edit_idx": 4, "propagatable_edit_idx": [ 1 ] }, { "input": " \"db_engine\": \"\"\n \"db_engine\": \"mysql\"\n \"db_engine\": \"\"\n \"db_engine\": \"postgresql\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/mindsdb/mindsdb/commit/19897afd286d641508c56e092b18547be46f2e4d", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " def join(self, stmt, data_handler: BaseHandler) -> pd.DataFrame:\n def join(self, stmt, data_handler: BaseHandler, into: Optional[str]) -> pd.DataFrame:\n def join(self, stmt, data_handler) -> pd.DataFrame:\n def join(self, stmt, data_handler, into: Optional[str]) -> pd.DataFrame:\n def join(self, table, left_integration: str, on: str, left_where: Union[None, str] = None):\n # def join(self, stmt, data_handler, into: Optional[str]) -> pd.DataFrame: # todo: adapt to base signature\n def join(self, table, left_integration: str, on: str, left_where: Union[None, str] = None, into: Optional[str] = None):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/5a672261a6841830062c1ecc6a7c3bf8defd364d", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 6 ] }, { "input": " def join(self, table, left_integration: str, on: str, left_where: Union[None, str] = None):\n # def join(self, stmt, data_handler, into: Optional[str]) -> pd.DataFrame: # todo: adapt to base signature\n def join(self, table, left_integration: str, on: str, left_where: Union[None, str] = None, into: Optional[str] = None):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/5a672261a6841830062c1ecc6a7c3bf8defd364d", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " self._aply_to_all_data(input_data, column, clean_float)\n self._aply_to_all_data(input_data, column, self._handle_nan)\n self._aply_to_all_data(input_data, column, clean_float, self.transaction.lmd['type'])\n self._aply_to_all_data(input_data, column, self._handle_nan, self.transaction.lmd['type'])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/mindsdb/mindsdb/commit/0c8b311996663c95b81872c534caaff325c5fd60", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 11, 7 ] }, { "input": " self._aply_to_all_data(input_data, column, DataTransformer._try_round)\n self._aply_to_all_data(input_data, column, DataTransformer._try_round, self.transaction.lmd['type'])\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/0c8b311996663c95b81872c534caaff325c5fd60", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 11, 6 ] }, { "input": " self._aply_to_all_data(input_data, column, self._standardize_date)\n self._aply_to_all_data(input_data, column, self._standardize_date, self.transaction.lmd['type'])\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/0c8b311996663c95b81872c534caaff325c5fd60", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 11, 6, 7 ] }, { "input": " self._aply_to_all_data(input_data, column, self._standardize_datetime)\n self._aply_to_all_data(input_data, column, self._standardize_datetime, self.transaction.lmd['type'])\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/0c8b311996663c95b81872c534caaff325c5fd60", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 11, 6, 7 ] }, { "input": " self._aply_to_all_data(input_data, column, self._standardize_datetime)\n self._aply_to_all_data(input_data, column, self._lightwood_datetime_processing)\n self._aply_to_all_data(input_data, column, self._handle_nan)\n self._aply_to_all_data(input_data, column, self._standardize_datetime, self.transaction.lmd['type'])\n self._aply_to_all_data(input_data, column, self._lightwood_datetime_processing, self.transaction.lmd['type'])\n self._aply_to_all_data(input_data, column, self._handle_nan, self.transaction.lmd['type'])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/mindsdb/mindsdb/commit/0c8b311996663c95b81872c534caaff325c5fd60", "target_edit_idx": 11, "propagatable_edit_idx": [ 8, 9, 6, 7 ] }, { "input": " self.predictor.learn(from_data=train_df, test_data=test_df)\n self.predictor.learn(from_data=train_df, test_data=test_df, callback_on_iter=self.callback_on_iter)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/mindsdb/mindsdb/commit/3e6539134d1f4370bc44962b7648d780aef83565", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " self.predictor.learn(from_data=train_df, test_data=test_df, stop_training_after_seconds=self.transaction.lmd['stop_training_in_x_seconds'])\n self.predictor.learn(from_data=train_df, test_data=test_df, stop_training_after_seconds=self.transaction.lmd['stop_training_in_x_seconds'], callback_on_iter=self.callback_on_iter)\n self.predictor.learn(from_data=train_df, test_data=test_df)\n self.predictor.learn(from_data=train_df, test_data=test_df, callback_on_iter=self.callback_on_iter)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/mindsdb/mindsdb/commit/3e6539134d1f4370bc44962b7648d780aef83565", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " def closest(arr, value):\n def _closest(arr, value):\n \"\"\"\n :return: The index of the member of `arr` which is closest to `value`\n \"\"\"\n i = self.closest(histogram['x'], value)\n i = self._closest(histogram['x'], value)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/6e6803cb253339f2e87baa1fca0cb76ebff75b67", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " i = self.closest(histogram['x'], value)\n i = self._closest(histogram['x'], value)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/6e6803cb253339f2e87baa1fca0cb76ebff75b67", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": " CLASS = 'Class'\n CATEGORICAL = 'Class'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/0aa80b2671b8316ba7cc27c0dc36993c0b3df12b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " if cell_stats[KEYS.DATA_TYPE] == DATA_TYPES.CLASS:\n if cell_stats[KEYS.DATA_TYPE] == DATA_TYPES.CATEGORICAL:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/0aa80b2671b8316ba7cc27c0dc36993c0b3df12b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " if round(abs(value[-1])) <= 0 and cell_stats[KEYS.DATA_TYPE] != DATA_TYPES.CLASS:\n if round(abs(value[-1])) <= 0 and cell_stats[KEYS.DATA_TYPE] != DATA_TYPES.CATEGORICAL:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/0aa80b2671b8316ba7cc27c0dc36993c0b3df12b", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " currentGuess = DATA_TYPES.CLASS\n currentGuess = DATA_TYPES.CATEGORICAL\n CLASS = 'Class'\n CATEGORICAL = 'Class'\n if cell_stats[KEYS.DATA_TYPE] == DATA_TYPES.CLASS:\n if cell_stats[KEYS.DATA_TYPE] == DATA_TYPES.CATEGORICAL:\n if round(abs(value[-1])) <= 0 and cell_stats[KEYS.DATA_TYPE] != DATA_TYPES.CLASS:\n if round(abs(value[-1])) <= 0 and cell_stats[KEYS.DATA_TYPE] != DATA_TYPES.CATEGORICAL:\n if cell_stats[KEYS.DATA_TYPE] == DATA_TYPES.CLASS:\n if cell_stats[KEYS.DATA_TYPE] == DATA_TYPES.CATEGORICAL:\n curr_data_type = DATA_TYPES.CLASS\n curr_data_type = DATA_TYPES.CATEGORICAL\n if curr_data_type == DATA_TYPES.CLASS:\n if curr_data_type == DATA_TYPES.CATEGORICAL:\n return DATA_TYPES.CLASS\n return DATA_TYPES.CATEGORICAL\n return DATA_TYPES.CLASS\n return DATA_TYPES.CATEGORICAL\n if stats[col_name][KEYS.DATA_TYPE] != DATA_TYPES.CLASS and stats[col_name][KEYS.DATA_TYPE] != DATA_TYPES.DATE:\n if stats[col_name][KEYS.DATA_TYPE] != DATA_TYPES.CATEGORICAL and stats[col_name][KEYS.DATA_TYPE] != DATA_TYPES.DATE:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/0aa80b2671b8316ba7cc27c0dc36993c0b3df12b", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9 ] }, { "input": " if curr_data_type == DATA_TYPES.CLASS:\n if curr_data_type == DATA_TYPES.CATEGORICAL:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/0aa80b2671b8316ba7cc27c0dc36993c0b3df12b", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 9 ] }, { "input": " return DATA_TYPES.CLASS\n return DATA_TYPES.CATEGORICAL\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/0aa80b2671b8316ba7cc27c0dc36993c0b3df12b", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8, 9 ] }, { "input": " if stats[col_name][KEYS.DATA_TYPE] != DATA_TYPES.CLASS and stats[col_name][KEYS.DATA_TYPE] != DATA_TYPES.DATE:\n if stats[col_name][KEYS.DATA_TYPE] != DATA_TYPES.CATEGORICAL and stats[col_name][KEYS.DATA_TYPE] != DATA_TYPES.DATE:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/mindsdb/mindsdb/commit/0aa80b2671b8316ba7cc27c0dc36993c0b3df12b", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " # ### commands auto generated by Alembic - please adjust! ###\n # ### commands auto generated by Alembic - please adjust! ###\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getredash/redash/commit/acc27f05793701ba055446463018468cd2ddb46d", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " # ### end Alembic commands ###\n\n # ### end Alembic commands ###", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getredash/redash/commit/acc27f05793701ba055446463018468cd2ddb46d", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " def __init__(self, data_manager, query, priority,\n def __init__(self, redis_connection, query, priority,\n self.data_manager = data_manager\n self.redis_connection = redis_connection\n def _load(cls, data_manager, job_id):\n return data_manager.redis_connection.hgetall(cls._redis_key(job_id))\n def _load(cls, redis_connection, job_id):\n return redis_connection.hgetall(cls._redis_key(job_id))\n def load(cls, data_manager, job_id):\n job_dict = cls._load(data_manager, job_id)\n def load(cls, redis_connection, job_id):\n job_dict = cls._load(redis_connection, job_id)\n job = Job(data_manager, job_id=job_dict['id'], query=job_dict['query'].decode('utf-8'),\n job = Job(redis_connection, job_id=job_dict['id'], query=job_dict['query'].decode('utf-8'),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getredash/redash/commit/fc06f8c88e43960ab63acb283abaa8d054e19d6b", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5, 6, 7 ] }, { "input": " def _load(cls, data_manager, job_id):\n return data_manager.redis_connection.hgetall(cls._redis_key(job_id))\n def _load(cls, redis_connection, job_id):\n return redis_connection.hgetall(cls._redis_key(job_id))\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/getredash/redash/commit/fc06f8c88e43960ab63acb283abaa8d054e19d6b", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 6, 7 ] }, { "input": " job = Job.load(self.manager, job_id)\n job = Job.load(self.manager.redis_connection, job_id)\n job = Job.load(self.manager, job_id)\n redis_connection = redis.StrictRedis(**self.redis_connection_params)\n job = Job.load(redis_connection, job_id)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/getredash/redash/commit/fc06f8c88e43960ab63acb283abaa8d054e19d6b", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " self.data_manager = data_manager\n self.redis_connection = redis_connection\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getredash/redash/commit/6e0d1c613c5998cb19ce5b3bb74e192bb073b4bf", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 5, 6, 7 ] }, { "input": " def load(cls, data_manager, job_id):\n job_dict = cls._load(data_manager, job_id)\n def load(cls, redis_connection, job_id):\n job_dict = cls._load(redis_connection, job_id)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/getredash/redash/commit/6e0d1c613c5998cb19ce5b3bb74e192bb073b4bf", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 5, 7 ] }, { "input": " job = Job(data_manager, job_id=job_dict['id'], query=job_dict['query'].decode('utf-8'),\n job = Job(redis_connection, job_id=job_dict['id'], query=job_dict['query'].decode('utf-8'),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/getredash/redash/commit/6e0d1c613c5998cb19ce5b3bb74e192bb073b4bf", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 5, 6 ] }, { "input": "def help(update, context):\ndef help_command(update, context):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/0af5cc2db8448a0392d60a8ccd5bb1184d7096bb", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " dp.add_handler(CommandHandler(\"help\", help))\n dp.add_handler(CommandHandler(\"help\", help_command))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/0af5cc2db8448a0392d60a8ccd5bb1184d7096bb", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5 ] }, { "input": " updater.dispatcher.add_handler(CommandHandler('help', help))\n updater.dispatcher.add_handler(CommandHandler('help', help_command))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/0af5cc2db8448a0392d60a8ccd5bb1184d7096bb", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4 ] }, { "input": " def to_dict(self):\n data = super(CallbackQuery, self).to_dict()\n\n # Required\n data['from'] = data.pop('from_user', None)\n return data\n\n\n def to_dict(self):\n data = super(ChosenInlineResult, self).to_dict()\n\n # Required\n data['from'] = data.pop('from_user', None)\n\n return data def to_dict(self):\n data = super(InlineQuery, self).to_dict()\n\n # Required\n data['from'] = data.pop('from_user', None)\n\n return data\n\n def to_dict(self):\n data = super(PreCheckoutQuery, self).to_dict()\n\n data['from'] = data.pop('from_user', None)\n\n return data\n\n def to_dict(self):\n data = super(ShippingQuery, self).to_dict()\n\n data['from'] = data.pop('from_user', None)\n\n return data\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/0bed0875427e72088c08c10e96c9dbc79741c84b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 5, 6 ] }, { "input": "async_queue = Queue()\nasync_threads = set()\nASYNC_QUEUE = Queue()\nASYNC_THREADS = set()\n dispatcher.async_queue.put(0)\n dispatcher.ASYNC_QUEUE.put(0)\n func, args, kwargs = async_queue.get()\n func, args, kwargs = ASYNC_QUEUE.get()\n async_queue.put((func, pargs, kwargs))\n ASYNC_QUEUE.put((func, pargs, kwargs))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/78f9bdcac906d0cfdd633321b647095af4eab373", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 3, 5 ] }, { "input": "async_lock = Lock()\nASYNC_LOCK = Lock()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/78f9bdcac906d0cfdd633321b647095af4eab373", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": "def pooled():\ndef _pooled():\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/78f9bdcac906d0cfdd633321b647095af4eab373", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " func, args, kwargs = async_queue.get()\n func, args, kwargs = ASYNC_QUEUE.get()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/78f9bdcac906d0cfdd633321b647095af4eab373", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 9, 5 ] }, { "input": " (current_thread().getName(), len(async_threads)))\n (current_thread().getName(), len(ASYNC_THREADS)))\n if not len(async_threads):\n if not len(ASYNC_THREADS):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/78f9bdcac906d0cfdd633321b647095af4eab373", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " async_queue.put((func, pargs, kwargs))\n ASYNC_QUEUE.put((func, pargs, kwargs))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/78f9bdcac906d0cfdd633321b647095af4eab373", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 9, 3 ] }, { "input": " if not len(async_threads):\n if not len(ASYNC_THREADS):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/78f9bdcac906d0cfdd633321b647095af4eab373", "target_edit_idx": 6, "propagatable_edit_idx": [ 4 ] }, { "input": " thread = Thread(target=pooled, name=str(i))\n async_threads.add(thread)\n thread = Thread(target=_pooled, name=str(i))\n ASYNC_THREADS.add(thread)\ndef pooled():\ndef _pooled():\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/78f9bdcac906d0cfdd633321b647095af4eab373", "target_edit_idx": 7, "propagatable_edit_idx": [ 2 ] }, { "input": " with dispatcher.async_lock:\n threads = list(dispatcher.async_threads)\n with dispatcher.ASYNC_LOCK:\n threads = list(dispatcher.ASYNC_THREADS)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/78f9bdcac906d0cfdd633321b647095af4eab373", "target_edit_idx": 8, "propagatable_edit_idx": [ 1 ] }, { "input": " dispatcher.async_queue.put(0)\n dispatcher.ASYNC_QUEUE.put(0)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/78f9bdcac906d0cfdd633321b647095af4eab373", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 3, 5 ] }, { "input": " pass_update_queue (optional[bool]): If the handler should be passed the\n update queue as a keyword argument called ``update_queue``. It can\n be used to insert updates. Default is ``False``\n pass_job_queue (optional[bool]): If the callback should be passed the job queue as a\n keyword argument called ``job_queue``. It can be used to schedule new jobs.\n Default is ``False``\n pass_update_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``update_queue`` will be passed to the callback function. It will be the ``Queue``\n instance used by the ``Updater`` and ``Dispatcher`` that contains new updates which can\n be used to insert updates. Default is ``False``.\n pass_job_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``job_queue`` will be passed to the callback function. It will be a ``JobQueue``\n instance created by the ``Updater`` which can be used to schedule new jobs.\n Default is ``False``.\n pass_update_queue (optional[bool]): If the handler should be passed the\n update queue as a keyword argument called ``update_queue``. It can\n be used to insert updates. Default is ``False``\n pass_job_queue (optional[bool]): If the callback should be passed the job queue as a\n keyword argument called ``job_queue``. It can be used to schedule new jobs.\n Default is ``False``\n pass_update_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``update_queue`` will be passed to the callback function. It will be the ``Queue``\n instance used by the ``Updater`` and ``Dispatcher`` that contains new updates which can\n be used to insert updates. Default is ``False``.\n pass_job_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``job_queue`` will be passed to the callback function. It will be a ``JobQueue``\n instance created by the ``Updater`` which can be used to schedule new jobs.\n Default is ``False``.\n pass_update_queue (optional[bool]): If the handler should be passed the\n update queue as a keyword argument called ``update_queue``. It can\n be used to insert updates. Default is ``False``\n pass_job_queue (optional[bool]): If the callback should be passed the job queue as a\n keyword argument called ``job_queue``. It can be used to schedule new jobs.\n Default is ``False``\n pass_update_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``update_queue`` will be passed to the callback function. It will be the ``Queue``\n instance used by the ``Updater`` and ``Dispatcher`` that contains new updates which can\n be used to insert updates. Default is ``False``.\n pass_job_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``job_queue`` will be passed to the callback function. It will be a ``JobQueue``\n instance created by the ``Updater`` which can be used to schedule new jobs.\n Default is ``False``.\n pass_update_queue (optional[bool]): If the callback should be passed\n the update queue as a keyword argument called ``update_queue``. It\n can be used to insert updates. Default is ``False``\n pass_job_queue (optional[bool]): If the callback should be passed the job queue as a\n keyword argument called ``job_queue``. It can be used to schedule new jobs.\n Default is ``False``\n pass_update_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``update_queue`` will be passed to the callback function. It will be the ``Queue``\n instance used by the ``Updater`` and ``Dispatcher`` that contains new updates which can\n be used to insert updates. Default is ``False``.\n pass_job_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``job_queue`` will be passed to the callback function. It will be a ``JobQueue``\n instance created by the ``Updater`` which can be used to schedule new jobs.\n Default is ``False``.\n pass_update_queue (optional[bool]): If the handler should be passed the\n update queue as a keyword argument called ``update_queue``. It can\n be used to insert updates. Default is ``False``\n pass_job_queue (optional[bool]): If the callback should be passed the job queue as a\n keyword argument called ``job_queue``. It can be used to schedule new jobs.\n Default is ``False``\n pass_update_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``update_queue`` will be passed to the callback function. It will be the ``Queue``\n instance used by the ``Updater`` and ``Dispatcher`` that contains new updates which can\n be used to insert updates. Default is ``False``.\n pass_job_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``job_queue`` will be passed to the callback function. It will be a ``JobQueue``\n instance created by the ``Updater`` which can be used to schedule new jobs.\n Default is ``False``.\n pass_update_queue (optional[bool]): If the handler should be passed the\n update queue as a keyword argument called ``update_queue``. It can\n be used to insert updates. Default is ``False``\n pass_job_queue (optional[bool]): If the callback should be passed the job queue as a\n keyword argument called ``job_queue``. It can be used to schedule new jobs.\n Default is ``False``\n pass_update_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``update_queue`` will be passed to the callback function. It will be the ``Queue``\n instance used by the ``Updater`` and ``Dispatcher`` that contains new updates which can\n be used to insert updates. Default is ``False``.\n pass_job_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``job_queue`` will be passed to the callback function. It will be a ``JobQueue``\n instance created by the ``Updater`` which can be used to schedule new jobs.\n Default is ``False``.\n pass_update_queue (optional[bool]): If the handler should be passed the\n update queue as a keyword argument called ``update_queue``. It can\n be used to insert updates. Default is ``False``\n pass_job_queue (optional[bool]): If the callback should be passed the job queue as a\n keyword argument called ``job_queue``. It can be used to schedule new jobs.\n Default is ``False``\n pass_update_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``update_queue`` will be passed to the callback function. It will be the ``Queue``\n instance used by the ``Updater`` and ``Dispatcher`` that contains new updates which can\n be used to insert updates. Default is ``False``.\n pass_job_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``job_queue`` will be passed to the callback function. It will be a ``JobQueue``\n instance created by the ``Updater`` which can be used to schedule new jobs.\n Default is ``False``.\n pass_update_queue (optional[bool]): If the handler should be passed the\n update queue as a keyword argument called ``update_queue``. It can\n be used to insert updates. Default is ``False``\n pass_job_queue (optional[bool]): If the callback should be passed the job queue as a\n keyword argument called ``job_queue``. It can be used to schedule new jobs.\n Default is ``False``\n pass_update_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``update_queue`` will be passed to the callback function. It will be the ``Queue``\n instance used by the ``Updater`` and ``Dispatcher`` that contains new updates which can\n be used to insert updates. Default is ``False``.\n pass_job_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``job_queue`` will be passed to the callback function. It will be a ``JobQueue``\n instance created by the ``Updater`` which can be used to schedule new jobs.\n Default is ``False``.\n pass_update_queue (optional[bool]): If the handler should be passed the\n update queue as a keyword argument called ``update_queue``. It can\n be used to insert updates. Default is ``False``\n pass_job_queue (optional[bool]): If the callback should be passed the job queue as a\n keyword argument called ``job_queue``. It can be used to schedule new jobs.\n Default is ``False``\n pass_update_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``update_queue`` will be passed to the callback function. It will be the ``Queue``\n instance used by the ``Updater`` and ``Dispatcher`` that contains new updates which can\n be used to insert updates. Default is ``False``.\n pass_job_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``job_queue`` will be passed to the callback function. It will be a ``JobQueue``\n instance created by the ``Updater`` which can be used to schedule new jobs.\n Default is ``False``.\n pass_update_queue (optional[bool]): If the handler should be passed the\n update queue as a keyword argument called ``update_queue``. It can\n be used to insert updates. Default is ``False``\n pass_job_queue (optional[bool]): If the callback should be passed the job queue as a\n keyword argument called ``job_queue``. It can be used to schedule new jobs.\n Default is ``False``\n pass_update_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``update_queue`` will be passed to the callback function. It will be the ``Queue``\n instance used by the ``Updater`` and ``Dispatcher`` that contains new updates which can\n be used to insert updates. Default is ``False``.\n pass_job_queue (optional[bool]): If set to ``True``, a keyword argument called\n ``job_queue`` will be passed to the callback function. It will be a ``JobQueue``\n instance created by the ``Updater`` which can be used to schedule new jobs.\n Default is ``False``.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/python-telegram-bot/python-telegram-bot/commit/d40f0a830914105f7f3cf4df23e7101e3566cb76", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " preprocessed_dataset_dir = (preprocessed_dir / (\"val\" if val else \"train\")) if preprocessed_dir is not None else None\n if not preprocessed_dataset_dir.is_dir(): os.makedirs(preprocessed_dataset_dir)\n if not preprocessed_dir.is_dir(): os.makedirs(preprocessed_dir)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/tinygrad/tinygrad/commit/ce61be16f1ecfc46a0df923a7f81c7888ec2e5ff", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " np.save(preprocessed_dataset_dir / f\"{case}_x.npy\", image, allow_pickle=False)\n np.save(preprocessed_dataset_dir / f\"{case}_y.npy\", label, allow_pickle=False)\n np.save(preprocessed_dir / f\"{case}_x.npy\", image, allow_pickle=False)\n np.save(preprocessed_dir / f\"{case}_y.npy\", label, allow_pickle=False)\n preprocessed_dataset_dir = (preprocessed_dir / (\"val\" if val else \"train\")) if preprocessed_dir is not None else None\n if not preprocessed_dataset_dir.is_dir(): os.makedirs(preprocessed_dataset_dir)\n if not preprocessed_dir.is_dir(): os.makedirs(preprocessed_dir)\n if preprocessed_dataset_dir is not None:\n x_cached_path, y_cached_path = preprocessed_dataset_dir / f\"{os.path.basename(files[i])}_x.npy\", preprocessed_dataset_dir / f\"{os.path.basename(files[i])}_y.npy\"\n if preprocessed_dir is not None:\n x_cached_path, y_cached_path = preprocessed_dir / f\"{os.path.basename(files[i])}_x.npy\", preprocessed_dir / f\"{os.path.basename(files[i])}_y.npy\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/tinygrad/tinygrad/commit/ce61be16f1ecfc46a0df923a7f81c7888ec2e5ff", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " if preprocessed_dataset_dir is not None:\n x_cached_path, y_cached_path = preprocessed_dataset_dir / f\"{os.path.basename(files[i])}_x.npy\", preprocessed_dataset_dir / f\"{os.path.basename(files[i])}_y.npy\"\n if preprocessed_dir is not None:\n x_cached_path, y_cached_path = preprocessed_dir / f\"{os.path.basename(files[i])}_x.npy\", preprocessed_dir / f\"{os.path.basename(files[i])}_y.npy\"\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/tinygrad/tinygrad/commit/ce61be16f1ecfc46a0df923a7f81c7888ec2e5ff", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "cur.execute(f\"drop table if exists process_replay_{getenv('GITHUB_RUN_ID', 'HEAD')}_{VERSION}\")\ncur.execute(f\"drop table if exists process_replay_{getenv('GITHUB_RUN_ID', 'HEAD')}_{getenv('GITHUB_RUN_ATTEMPT')}_{VERSION}\") table_name = f\"process_replay_{getenv('GITHUB_RUN_ID', 'HEAD')}\"\n table_name = f\"process_replay_{getenv('GITHUB_RUN_ID', 'HEAD')}_{getenv('GITHUB_RUN_ATTEMPT')}\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0017482517482517483, "commit_url": "https://github.com/tinygrad/tinygrad/commit/e0e7293b0a44705d2512dc370870bd15c67fc0fe", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " table_name = f\"process_replay_{getenv('GITHUB_RUN_ID', 'HEAD')}\"\n table_name = f\"process_replay_{getenv('GITHUB_RUN_ID', 'HEAD')}_{getenv('GITHUB_RUN_ATTEMPT')}\"\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0034904013961605585, "commit_url": "https://github.com/tinygrad/tinygrad/commit/e0e7293b0a44705d2512dc370870bd15c67fc0fe", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " return UOp.const(dtypes.float, math.inf)\n return self.const(dtypes.max(cast(DType, self.dtype)))\n return UOp.const(dtypes.float, -math.inf)\n return self.const(dtypes.min(cast(DType, self.dtype)))\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tinygrad/tinygrad/commit/ea99efe815e468a8934f3eb3a9294b145043a3b4", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " def test_mod_mul(self):\n def test_mod_mul_large(self):\n self.helper_test_variable((Variable(\"a\", 0, 20)*10)%9, 0, 8, \"(a%9)\")\n\n def test_mod_mul_small(self):\n def test_mod_mul(self):\n def test_mod_mul_large(self):\n self.helper_test_variable((Variable(\"a\", 0, 20)*10)%9, 0, 8, \"(a%9)\")\n\n @unittest.expectedFailure\n def test_mod_mul_small(self):\n", "class": "clone", "binary_label": 1, "regression_label": 0.07142857142857142, "commit_url": "https://github.com/tinygrad/tinygrad/commit/92e7e657126bea58c16936807e8b80dea0bf6bf1", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " nn.BatchNorm2d(32), Tensor.max_pool2d,\n nn.BatchNorm(32), Tensor.max_pool2d,\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.07547169811320754, "commit_url": "https://github.com/tinygrad/tinygrad/commit/a9f5a764dc640a5e5cbaaeeee21df7c8ca37da38", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4, 8, 10 ] }, { "input": " nn.BatchNorm2d(64), Tensor.max_pool2d,\n nn.BatchNorm(64), Tensor.max_pool2d,\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.07547169811320754, "commit_url": "https://github.com/tinygrad/tinygrad/commit/a9f5a764dc640a5e5cbaaeeee21df7c8ca37da38", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 4, 8, 10 ] }, { "input": "from tinygrad.nn import BatchNorm2d, LayerNorm, LayerNorm2d, GroupNorm, InstanceNorm, RMSNorm\nfrom tinygrad.nn import BatchNorm, LayerNorm, LayerNorm2d, GroupNorm, InstanceNorm, RMSNorm\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07547169811320754, "commit_url": "https://github.com/tinygrad/tinygrad/commit/a9f5a764dc640a5e5cbaaeeee21df7c8ca37da38", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 4, 8, 10 ] }, { "input": " bn = BatchNorm2d(sz, eps=1e-5, track_running_stats=training)\n bn = BatchNorm(sz, eps=1e-5, track_running_stats=training)\n nn.BatchNorm2d(32), Tensor.max_pool2d,\n nn.BatchNorm(32), Tensor.max_pool2d,\n nn.BatchNorm2d(64), Tensor.max_pool2d,\n nn.BatchNorm(64), Tensor.max_pool2d,\nfrom tinygrad.nn import BatchNorm2d, LayerNorm, LayerNorm2d, GroupNorm, InstanceNorm, RMSNorm\nfrom tinygrad.nn import BatchNorm, LayerNorm, LayerNorm2d, GroupNorm, InstanceNorm, RMSNorm\nclass BatchNorm2d:\nclass BatchNorm:\n norm = nn.BatchNorm2d(3)\n norm = nn.BatchNorm(3)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.07547169811320754, "commit_url": "https://github.com/tinygrad/tinygrad/commit/a9f5a764dc640a5e5cbaaeeee21df7c8ca37da38", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 8, 10 ] }, { "input": "class BatchNorm2d:\nclass BatchNorm:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.07547169811320754, "commit_url": "https://github.com/tinygrad/tinygrad/commit/a9f5a764dc640a5e5cbaaeeee21df7c8ca37da38", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 4, 10 ] }, { "input": " op = _recursive_lazyop(out, inputs, outs, var_vals, output_st, realizes, cache={})\n lop = _recursive_lazyop(out, inputs, outs, var_vals, output_st, realizes, cache={})\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tinygrad/tinygrad/commit/4c232dc0ae0caee0f175a90509f405b0b75d6bf5", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " ast.append(LazyOp(BufferOps.STORE, (op, ), MemBuffer(i, out.dtype, output_view)))\n ast.append(LazyOp(BufferOps.STORE, (lop, ), MemBuffer(i, out.dtype, output_view)))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tinygrad/tinygrad/commit/4c232dc0ae0caee0f175a90509f405b0b75d6bf5", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " k = Linearizer(ast, self.linearizer_opts, var_vals)\n k = Linearizer(ast, self.linearizer_opts)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.022222222222222223, "commit_url": "https://github.com/tinygrad/tinygrad/commit/f1f64bc88d75354dffdf0d5b403814d4ad64e436", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " if getenv(\"KOPT\"): kernel_optimize(k, lambda: Linearizer(ast, self.linearizer_opts, var_vals), self.to_program, rawbuffers, key)\n if getenv(\"KOPT\"): kernel_optimize(k, lambda: Linearizer(ast, self.linearizer_opts), self.to_program, rawbuffers, ast)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.022222222222222223, "commit_url": "https://github.com/tinygrad/tinygrad/commit/f1f64bc88d75354dffdf0d5b403814d4ad64e436", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": "# TODO: expand to N-D\ndef _padding(X, pads=None, auto_pad=\"NOTSET\"):\n# onnx: [x1_begin, x2_begin, ..., x1_end, x2_end, ...]\n# numpy.pad: ((x1_begin, x1_end), (x2_begin, x2_end), ...)\ndef _format_padding(onnx_pads, ndims=None, axes=None):\n if ndims is None: ndims = len(onnx_pads) // 2\n if axes is None: axes = list(range(ndims))\n num_axes = len(axes)\n np_pads = [(0,0)] * ndims\n for i in range(num_axes):\n np_pads[axes[i]] = (onnx_pads[i], onnx_pads[i + num_axes])\n return np_pads\n\ndef _padding(X, pads=None, auto_pad=\"NOTSET\", axes=None, constant_value=0.):\n padding_included = _padding(X, pads, auto_pad).avg_pool2d(kernel_shape, stride=strides)\n pixel_axes = tuple(range(len(X.shape)))[-2:]\n padding_included = _padding(X, pads, auto_pad, axes=pixel_axes).avg_pool2d(kernel_shape, stride=strides)\n div = _padding(Tensor.ones(*X.shape), pads, auto_pad).avg_pool2d(kernel_shape, stride=strides)\n div = _padding(Tensor.ones(*X.shape), pads, auto_pad, axes=pixel_axes).avg_pool2d(kernel_shape, stride=strides)\n return _padding(X, pads, auto_pad).max_pool2d(kernel_shape, stride=strides)\n return _padding(X, pads, auto_pad, constant_value=-np.inf, axes=tuple(range(len(X.shape)))[-2:]).max_pool2d(kernel_shape, stride=strides)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tinygrad/tinygrad/commit/70b9072663165dc037faf25d629e10b3f984d64f", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 5, 7 ] }, { "input": " padding_included = _padding(X, pads, auto_pad).avg_pool2d(kernel_shape, stride=strides)\n pixel_axes = tuple(range(len(X.shape)))[-2:]\n padding_included = _padding(X, pads, auto_pad, axes=pixel_axes).avg_pool2d(kernel_shape, stride=strides)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tinygrad/tinygrad/commit/70b9072663165dc037faf25d629e10b3f984d64f", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 5, 7 ] }, { "input": " div = _padding(Tensor.ones(*X.shape), pads, auto_pad).avg_pool2d(kernel_shape, stride=strides)\n div = _padding(Tensor.ones(*X.shape), pads, auto_pad, axes=pixel_axes).avg_pool2d(kernel_shape, stride=strides)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tinygrad/tinygrad/commit/70b9072663165dc037faf25d629e10b3f984d64f", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 4, 7 ] }, { "input": " return _padding(X, pads, auto_pad).max_pool2d(kernel_shape, stride=strides)\n return _padding(X, pads, auto_pad, constant_value=-np.inf, axes=tuple(range(len(X.shape)))[-2:]).max_pool2d(kernel_shape, stride=strides)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tinygrad/tinygrad/commit/70b9072663165dc037faf25d629e10b3f984d64f", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 4, 5 ] }, { "input": " self.weight1 = Tensor.uniform(self.filters, self.filters//32)\n self.bias1 = Tensor.uniform(1,self.filters//32)\n self.weight2 = Tensor.uniform(self.filters//32, self.filters)\n self.bias2 = Tensor.uniform(1, self.filters)\n self.weight1 = Tensor.scaled_uniform(self.filters, self.filters//32)\n self.bias1 = Tensor.scaled_uniform(1,self.filters//32)\n self.weight2 = Tensor.scaled_uniform(self.filters//32, self.filters)\n self.bias2 = Tensor.scaled_uniform(1, self.filters)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/tinygrad/tinygrad/commit/cb679cd051aaae5510224b8507efaca88b0a16bf", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7 ] }, { "input": " self.cweights = [Tensor.uniform(filters, inp if i==0 else filters, conv, conv) for i in range(3)]\n self.cbiases = [Tensor.uniform(1, filters, 1, 1) for i in range(3)]\n self.cweights = [Tensor.scaled_uniform(filters, inp if i==0 else filters, conv, conv) for i in range(3)]\n self.cbiases = [Tensor.scaled_uniform(1, filters, 1, 1) for i in range(3)]\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5185185185185185, "commit_url": "https://github.com/tinygrad/tinygrad/commit/cb679cd051aaae5510224b8507efaca88b0a16bf", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7 ] }, { "input": " self.weight1 = Tensor.uniform(128,10)\n self.weight2 = Tensor.uniform(128,10)\n self.weight1 = Tensor.scaled_uniform(128,10)\n self.weight2 = Tensor.scaled_uniform(128,10)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5185185185185185, "commit_url": "https://github.com/tinygrad/tinygrad/commit/cb679cd051aaae5510224b8507efaca88b0a16bf", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7 ] }, { "input": " self.query = (Tensor.uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.key = (Tensor.uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.value = (Tensor.uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.query = (Tensor.scaled_uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.key = (Tensor.scaled_uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.value = (Tensor.scaled_uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.48148148148148145, "commit_url": "https://github.com/tinygrad/tinygrad/commit/cb679cd051aaae5510224b8507efaca88b0a16bf", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7 ] }, { "input": " self.out = (Tensor.uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.out = (Tensor.scaled_uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5555555555555556, "commit_url": "https://github.com/tinygrad/tinygrad/commit/cb679cd051aaae5510224b8507efaca88b0a16bf", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7 ] }, { "input": " self.ff1 = (Tensor.uniform(embed_dim, ff_dim), Tensor.zeros(ff_dim))\n self.ff2 = (Tensor.uniform(ff_dim, embed_dim), Tensor.zeros(embed_dim))\n self.ff1 = (Tensor.scaled_uniform(embed_dim, ff_dim), Tensor.zeros(ff_dim))\n self.ff2 = (Tensor.scaled_uniform(ff_dim, embed_dim), Tensor.zeros(embed_dim))\n self.weight1 = Tensor.uniform(self.filters, self.filters//32)\n self.bias1 = Tensor.uniform(1,self.filters//32)\n self.weight2 = Tensor.uniform(self.filters//32, self.filters)\n self.bias2 = Tensor.uniform(1, self.filters)\n self.weight1 = Tensor.scaled_uniform(self.filters, self.filters//32)\n self.bias1 = Tensor.scaled_uniform(1,self.filters//32)\n self.weight2 = Tensor.scaled_uniform(self.filters//32, self.filters)\n self.bias2 = Tensor.scaled_uniform(1, self.filters)\n self.cweights = [Tensor.uniform(filters, inp if i==0 else filters, conv, conv) for i in range(3)]\n self.cbiases = [Tensor.uniform(1, filters, 1, 1) for i in range(3)]\n self.cweights = [Tensor.scaled_uniform(filters, inp if i==0 else filters, conv, conv) for i in range(3)]\n self.cbiases = [Tensor.scaled_uniform(1, filters, 1, 1) for i in range(3)]\n self.weight1 = Tensor.uniform(128,10)\n self.weight2 = Tensor.uniform(128,10)\n self.weight1 = Tensor.scaled_uniform(128,10)\n self.weight2 = Tensor.scaled_uniform(128,10)\n self.query = (Tensor.uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.key = (Tensor.uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.value = (Tensor.uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.query = (Tensor.scaled_uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.key = (Tensor.scaled_uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.value = (Tensor.scaled_uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.out = (Tensor.uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.out = (Tensor.scaled_uniform(embed_dim, embed_dim), Tensor.zeros(embed_dim))\n self.embed = Tensor.uniform(maxlen+syms, embed_dim, requires_grad=False)\n self.embed = Tensor.scaled_uniform(maxlen+syms, embed_dim, requires_grad=False)\n self.final = Tensor.uniform(embed_dim, syms)\n self.final = Tensor.scaled_uniform(embed_dim, syms)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5185185185185185, "commit_url": "https://github.com/tinygrad/tinygrad/commit/cb679cd051aaae5510224b8507efaca88b0a16bf", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7 ] }, { "input": " self.embed = Tensor.uniform(maxlen+syms, embed_dim, requires_grad=False)\n self.embed = Tensor.scaled_uniform(maxlen+syms, embed_dim, requires_grad=False)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5555555555555556, "commit_url": "https://github.com/tinygrad/tinygrad/commit/cb679cd051aaae5510224b8507efaca88b0a16bf", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7 ] }, { "input": " self.final = Tensor.uniform(embed_dim, syms)\n self.final = Tensor.scaled_uniform(embed_dim, syms)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5555555555555556, "commit_url": "https://github.com/tinygrad/tinygrad/commit/cb679cd051aaae5510224b8507efaca88b0a16bf", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6 ] }, { "input": " lambda x,w: Tensor.conv2d(x,w,stride=2).relu(), atol=2e-5, grad_atol=2e-6, gpu=self.gpu)\n lambda x,w: Tensor.conv2d(x,w,stride=2).relu(), atol=2e-5, grad_atol=2e-6, gpu=self.gpu, forward_only=self.gpu)\n lambda x,w: Tensor.conv2d(x,w,stride=(2,1)).relu(), atol=2e-5, grad_atol=2e-6, gpu=self.gpu)\n lambda x,w: Tensor.conv2d(x,w,stride=(2,1)).relu(), atol=2e-5, grad_atol=2e-6, gpu=self.gpu, forward_only=self.gpu)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/tinygrad/tinygrad/commit/fbff6ab2e50a825292871eef0009e9f12ceb7e33", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " def HandleToLocation( self, handle : int ):\n def HandleToRootLocation( self, handle : int ):\n location = self._current_hierarchy.HandleToLocation( handle )\n location = self._current_hierarchy.HandleToRootLocation( handle )\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ycm-core/YouCompleteMe/commit/31f6517a875582be69969404380e322712160d46", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " print( 'NewFilter', config_or_filters)\n print( 'CompileFilters', config_or_filters)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ycm-core/YouCompleteMe/commit/13fda74cc1841d1fb8f29592bacf1ee4abdc7f61", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "def _CompileRegex( raw_regex ):\ndef CompileRegex( raw_regex ):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ycm-core/YouCompleteMe/commit/13fda74cc1841d1fb8f29592bacf1ee4abdc7f61", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "FILTER_COMPILERS = { 'regex' : _CompileRegex,\n 'level' : _CompileLevel }\nFILTER_COMPILERS = { 'regex' : CompileRegex,\n 'level' : CompileLevel }\ndef _CompileRegex( raw_regex ):\ndef CompileRegex( raw_regex ):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ycm-core/YouCompleteMe/commit/13fda74cc1841d1fb8f29592bacf1ee4abdc7f61", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": "def BufferExistsForFilename( filename ):\ndef BufferIsVisibleForFilename( filename ):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ycm-core/YouCompleteMe/commit/6f36c3ff829fcdc315e587a9859578d3124276e1", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " vimsupport.BufferExistsForFilename( self._server_stdout ) or\n vimsupport.BufferIsVisibleForFilename( self._server_stdout ) or\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ycm-core/YouCompleteMe/commit/6f36c3ff829fcdc315e587a9859578d3124276e1", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4 ] }, { "input": " vimsupport.BufferExistsForFilename( self._server_stderr ) ):\n vimsupport.BufferIsVisibleForFilename( self._server_stderr ) ):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ycm-core/YouCompleteMe/commit/6f36c3ff829fcdc315e587a9859578d3124276e1", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "def CallExtraConfYcmCorePreloadIfExists():\n _CallExtraConfMethod( 'YcmCorePreload' )\ndef CallGlobalExtraConfYcmCorePreloadIfExists():\n _CallGlobalExtraConfMethod( 'YcmCorePreload' )\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ycm-core/YouCompleteMe/commit/78e3607b00ccbfaa244bd3867f88f051802a13cd", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " extra_conf_store.CallExtraConfYcmCorePreloadIfExists()\n extra_conf_store.CallGlobalExtraConfYcmCorePreloadIfExists()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ycm-core/YouCompleteMe/commit/78e3607b00ccbfaa244bd3867f88f051802a13cd", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " if head_size not in _SUPPORTED_HEAD_SIZES:\n\n support_head_sizes = FlashAttentionBackend.get_supported_head_sizes()\n if head_size not in support_head_sizes:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vllm-project/vllm/commit/99eff67ba9155b5fec9a9abd939e3a29a1b42dce", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " f\"Supported head sizes are: {_SUPPORTED_HEAD_SIZES}.\")\n f\"Supported head sizes are: {support_head_sizes}.\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/vllm-project/vllm/commit/99eff67ba9155b5fec9a9abd939e3a29a1b42dce", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " json_LP = JSONLogitsProcessor(TEST_SCHEMA, tokenizer)\n json_LP = JSONLogitsProcessor(TEST_SCHEMA,\n tokenizer,\n whitespace_pattern=None)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/vllm-project/vllm/commit/c3845d82dc3d1831714898114f87d9c103e2dd41", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " return JSONLogitsProcessor(guide, tokenizer)\n return JSONLogitsProcessor(guide, tokenizer, whitespace_pattern)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/vllm-project/vllm/commit/c3845d82dc3d1831714898114f87d9c103e2dd41", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " offs_d = tl.arange(0, BLOCK_DMODEL)\n offs_d = tl.arange(0, BLOCK_DMODEL_PADDED)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/vllm-project/vllm/commit/e8cc7967ff8a6f8432747a9e87ab451d36e1ff57", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " acc = tl.zeros([BLOCK_M, BLOCK_DMODEL], dtype=tl.float32)\n acc = tl.zeros([BLOCK_M, BLOCK_DMODEL_PADDED], dtype=tl.float32)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/vllm-project/vllm/commit/e8cc7967ff8a6f8432747a9e87ab451d36e1ff57", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " mask=(start_n + offs_n[None, :]) < cur_batch_ctx_len,\n mask=dim_mask[:, None] &\n ((start_n + offs_n[None, :]) < cur_batch_ctx_len),\n mask=(start_n + offs_n[:, None]) < cur_batch_ctx_len,\n mask=dim_mask[None, :] &\n ((start_n + offs_n[:, None]) < cur_batch_ctx_len),\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/vllm-project/vllm/commit/e8cc7967ff8a6f8432747a9e87ab451d36e1ff57", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " mask=(start_n + offs_n[None, :]) <\n cur_batch_seq_len - cur_batch_ctx_len,\n mask=dim_mask[:, None] &\n ((start_n + offs_n[None, :]) < cur_batch_query_len),\n mask=(start_n + offs_n[:, None]) <\n cur_batch_seq_len - cur_batch_ctx_len,\n mask=dim_mask[None, :] &\n ((start_n + offs_n[:, None]) < cur_batch_query_len),\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/vllm-project/vllm/commit/e8cc7967ff8a6f8432747a9e87ab451d36e1ff57", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " seq = seq_group.get_seqs()[0]\n seq = seq_group.get_seqs(status=SequenceStatus.WAITING)[0]\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vllm-project/vllm/commit/a1b9cb2a3469e4e682e741af9a0f91e16923205d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 7 ] }, { "input": " for seq in seq_group.get_seqs():\n for seq in seq_group.get_seqs(status=SequenceStatus.WAITING):\n seq = seq_group.get_seqs()[0]\n seq = seq_group.get_seqs(status=SequenceStatus.WAITING)[0]\n seq = seq_group.get_seqs()[0]\n seq = seq_group.get_seqs(status=SequenceStatus.WAITING)[0]\n for seq in seq_group.get_seqs():\n for seq in seq_group.get_seqs(status=SequenceStatus.WAITING):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/vllm-project/vllm/commit/a1b9cb2a3469e4e682e741af9a0f91e16923205d", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 7 ] }, { "input": " for seq in seq_group.get_seqs():\n for seq in waiting_seqs:\n for seq in seq_group.get_seqs():\n for seq in waiting_seqs:\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/vllm-project/vllm/commit/a1b9cb2a3469e4e682e741af9a0f91e16923205d", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " assert pilot.app.query_one(CommandPalette)._sources == set()\n assert pilot.app.query_one(CommandPalette)._sources == App.COMMAND_SOURCES\n assert pilot.app.query_one(CommandPalette)._sources == set()\n assert pilot.app.query_one(CommandPalette)._sources == App.COMMAND_SOURCES\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/Textualize/textual/commit/f9d102894d171653731d524dfd78faf7003d3cc9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " If there is no animation running, this is a no-op.\n If there is no animation scheduled or running, this is a no-op.\n If there is no animation running, this is a no-op.\n If there is no animation scheduled or running, this is a no-op.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Textualize/textual/commit/3bede59493d872f83e4e223cbedcac5b7cfdae30", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "class Key(NamedTuple):\nclass StringKey(NamedTuple):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Textualize/textual/commit/b514507472546efff6ef7a8031c6d199742fc7d2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": " key: Key\n key: StringKey\nclass Key(NamedTuple):\nclass StringKey(NamedTuple):\n key: Key\n key: StringKey\n column_key = Key(key)\n column_key = StringKey(key)\n row_key = Key(key)\n row_key = StringKey(key)\nfrom textual.widgets._data_table import Key\nfrom textual.widgets._data_table import StringKey\n key = Key(text)\n key = StringKey(text)\n key = Key(\"123\")\n key = StringKey(\"123\")\n Key(\"hello\"): \"world\",\n StringKey(\"hello\"): \"world\",\n assert dictionary[Key(\"foo\")] == \"bar\"\n assert dictionary[StringKey(\"foo\")] == \"bar\"\n assert dictionary[Key(\"hello\")] == \"world\"\n assert dictionary[StringKey(\"hello\")] == \"world\"", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Textualize/textual/commit/b514507472546efff6ef7a8031c6d199742fc7d2", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": " column_key = Key(key)\n column_key = StringKey(key)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Textualize/textual/commit/b514507472546efff6ef7a8031c6d199742fc7d2", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": " row_key = Key(key)\n row_key = StringKey(key)\nclass Key(NamedTuple):\nclass StringKey(NamedTuple):\n key: Key\n key: StringKey\n key: Key\n key: StringKey\n column_key = Key(key)\n column_key = StringKey(key)\nfrom textual.widgets._data_table import Key\nfrom textual.widgets._data_table import StringKey\n key = Key(text)\n key = StringKey(text)\n key = Key(\"123\")\n key = StringKey(\"123\")\n Key(\"hello\"): \"world\",\n StringKey(\"hello\"): \"world\",\n assert dictionary[Key(\"foo\")] == \"bar\"\n assert dictionary[StringKey(\"foo\")] == \"bar\"\n assert dictionary[Key(\"hello\")] == \"world\"\n assert dictionary[StringKey(\"hello\")] == \"world\"", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Textualize/textual/commit/b514507472546efff6ef7a8031c6d199742fc7d2", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10 ] }, { "input": "from textual.widgets._data_table import Key\nfrom textual.widgets._data_table import StringKey\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Textualize/textual/commit/b514507472546efff6ef7a8031c6d199742fc7d2", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8, 9, 10 ] }, { "input": " key = Key(text)\n key = StringKey(text)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Textualize/textual/commit/b514507472546efff6ef7a8031c6d199742fc7d2", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10 ] }, { "input": " key = Key(\"123\")\n key = StringKey(\"123\")\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Textualize/textual/commit/b514507472546efff6ef7a8031c6d199742fc7d2", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10 ] }, { "input": " Key(\"hello\"): \"world\",\n StringKey(\"hello\"): \"world\",\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Textualize/textual/commit/b514507472546efff6ef7a8031c6d199742fc7d2", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10 ] }, { "input": " assert dictionary[Key(\"foo\")] == \"bar\"\n assert dictionary[StringKey(\"foo\")] == \"bar\"\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Textualize/textual/commit/b514507472546efff6ef7a8031c6d199742fc7d2", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 10 ] }, { "input": " assert dictionary[Key(\"hello\")] == \"world\"\n assert dictionary[StringKey(\"hello\")] == \"world\"", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Textualize/textual/commit/b514507472546efff6ef7a8031c6d199742fc7d2", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " obj.refresh(layout=self._layout)\n obj.refresh(layout=self._layout)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/Textualize/textual/commit/22eef4c31ebacd560d490dc49fca1554d3ee9aa5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " guidance_scale (`float`, *optional*, defaults to 5.0):\n guidance_scale (`float`, *optional*, defaults to 7.0):\n guidance_scale (`float`, *optional*, defaults to 5.0):\n guidance_scale (`float`, *optional*, defaults to 7.0):\n guidance_scale (`float`, *optional*, defaults to 5.0):\n guidance_scale (`float`, *optional*, defaults to 7.0):\n", "class": "clone", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/huggingface/diffusers/commit/9b8c8605d14b4543db8e0169d4aac97ad95a2a27", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " layers_per_block: int = 2,\n layers_per_block: Union[int, Tuple[int]] = 2,\n layers_per_block: int = 2,\n layers_per_block: Union[int, Tuple[int]] = 2,\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/huggingface/diffusers/commit/8db5e5b37d09ee3870b1568f496f317af3f7bc18", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": " num_layers=layers_per_block,\n num_layers=layers_per_block[i],\n num_layers=layers_per_block,\n num_layers=layers_per_block[i],\n num_layers=layers_per_block + 1,\n num_layers=reversed_layers_per_block[i] + 1,\n num_layers=layers_per_block + 1,\n num_layers=reversed_layers_per_block[i] + 1,\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/huggingface/diffusers/commit/8db5e5b37d09ee3870b1568f496f317af3f7bc18", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 11, 5 ] }, { "input": " loaded_sub_model = load_method(os.path.join(cached_folder, name))\n loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/huggingface/diffusers/commit/db5fa43079edb063ad2f271523e59ee482458e13", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " loaded_sub_model = load_method(cached_folder)\n loaded_sub_model = load_method(cached_folder, **loading_kwargs)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/huggingface/diffusers/commit/db5fa43079edb063ad2f271523e59ee482458e13", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " if self.fir:\n h = upsample_2d(h, self.fir_kernel, factor=2)\n x = upsample_2d(x, self.fir_kernel, factor=2)\n else:\n h = naive_upsample_2d(h, factor=2)\n x = naive_upsample_2d(x, factor=2)\n h = upsample_2d(h, self.fir_kernel, factor=2)\n x = upsample_2d(x, self.fir_kernel, factor=2)\n if self.fir:\n h = downsample_2d(h, self.fir_kernel, factor=2)\n x = downsample_2d(x, self.fir_kernel, factor=2)\n else:\n h = naive_downsample_2d(h, factor=2)\n x = naive_downsample_2d(x, factor=2)\n h = downsample_2d(h, self.fir_kernel, factor=2)\n x = downsample_2d(x, self.fir_kernel, factor=2)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/diffusers/commit/c9bd4d433845921ddf7c0b0a50be3c7bdf7a80fc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " if not fir:\n if with_conv:\n self.Conv_0 = conv3x3(in_ch, out_ch)\n else:\n if with_conv:\n self.Conv2d_0 = Conv2d(\n in_ch,\n out_ch,\n kernel=3,\n up=True,\n resample_kernel=fir_kernel,\n use_bias=True,\n kernel_init=default_init(),\n )\n if with_conv:\n self.Conv2d_0 = Conv2d(\n in_ch,\n out_ch,\n kernel=3,\n up=True,\n resample_kernel=fir_kernel,\n use_bias=True,\n kernel_init=default_init(),\n )\n if not fir:\n if with_conv:\n self.Conv_0 = conv3x3(in_ch, out_ch, stride=2, padding=0)\n else:\n if with_conv:\n self.Conv2d_0 = Conv2d(\n in_ch,\n out_ch,\n kernel=3,\n down=True,\n resample_kernel=fir_kernel,\n use_bias=True,\n kernel_init=default_init(),\n )\n if with_conv:\n self.Conv2d_0 = Conv2d(\n in_ch,\n out_ch,\n kernel=3,\n down=True,\n resample_kernel=fir_kernel,\n use_bias=True,\n kernel_init=default_init(),\n )\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/diffusers/commit/c9bd4d433845921ddf7c0b0a50be3c7bdf7a80fc", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " if not self.with_conv:\n h = upsample_2d(x, self.fir_kernel, factor=2)\n else:\n h = self.Conv2d_0(x)\n h = self.Conv2d_0(x)\n if not self.with_conv:\n x = downsample_2d(x, self.fir_kernel, factor=2)\n else:\n x = self.Conv2d_0(x)\n x = self.Conv2d_0(x)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/huggingface/diffusers/commit/c9bd4d433845921ddf7c0b0a50be3c7bdf7a80fc", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " request_meta[\"response_time\"] = (time.perf_counter() - start_timestamp) * 1000\n request_meta[\"response_time\"] = (time.perf_counter() - start_perf_counter) * 1000\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/locustio/locust/commit/747a55eb23364d2b89a867d2b5914026c4a2790f", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " request_meta[\"response_time\"] = int((time.perf_counter() - start_timestamp) * 1000)\n request_meta[\"response_time\"] = int((time.perf_counter() - start_perf_counter) * 1000)\n request_meta[\"response_time\"] = (time.perf_counter() - start_timestamp) * 1000\n request_meta[\"response_time\"] = (time.perf_counter() - start_perf_counter) * 1000\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/locustio/locust/commit/747a55eb23364d2b89a867d2b5914026c4a2790f", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " start_time = time.perf_counter()\n start_time = time.perf_counter()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/locustio/locust/commit/0a7dccc64bda1b2ec08ffa6f5968315588332b1c", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " request_meta[\"response_time\"] = (time.perf_counter() - start_time) * 1000\n request_meta[\"response_time\"] = (time.perf_counter() - start_perf_counter) * 1000\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/locustio/locust/commit/0a7dccc64bda1b2ec08ffa6f5968315588332b1c", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " exc can be either a python exception, or a string in which case it will\n if exc is anything other than a python exception (like a string) it will\n exc can be either a python exception, or a string in which case it will\n if exc is anything other than a python exception (like a string) it will\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/locustio/locust/commit/7953ad95f5b90d0dd425510a7ecedbfb9a3271c9", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " if isinstance(exc, str):\n if not isinstance(exc, Exception):\n if isinstance(exc, str):\n if not isinstance(exc, Exception):\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/locustio/locust/commit/7953ad95f5b90d0dd425510a7ecedbfb9a3271c9", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " events.parallel_quitting += self.teardown\n events.quitting += self.teardown\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/locustio/locust/commit/74af3d6a6077ad6f35762e9ad7264a0cb55067e8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " events.parallel_quitting += self.teardown\n events.quitting += self.teardown\n events.parallel_quitting += self.teardown\n events.quitting += self.teardown\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/locustio/locust/commit/74af3d6a6077ad6f35762e9ad7264a0cb55067e8", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "from .testcases import WebserverTestCase\nfrom testcases import WebserverTestCase\nfrom .testcases import WebserverTestCase\nfrom testcases import WebserverTestCase\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/locustio/locust/commit/0850a5cbf548b09a426ecc9a318995af95a87b31", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " def on_locust_error(locust_instance, exeption, traceback):\n formatted_tb = \"\".join(traceback.format_tb(traceback))\n def on_locust_error(locust_instance, exeption, tb):\n formatted_tb = \"\".join(traceback.format_tb(tb))\n events.locust_error.fire(locust_instance=self, exception=e, traceback=sys.exc_info()[2])\n events.locust_error.fire(locust_instance=self, exception=e, tb=sys.exc_info()[2])\n* *traceback*: Traceback object (from sys.exc_info()[2])\n* *tb*: Traceback object (from sys.exc_info()[2])\n def on_locust_error(locust_instance, exception, traceback):\n formatted_tb = \"\".join(traceback.format_tb(traceback))\n def on_locust_error(locust_instance, exception, tb):\n formatted_tb = \"\".join(traceback.format_tb(tb))\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/locustio/locust/commit/32f276655aeaa2c5d88c9c51e0ec1b16676a36d2", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " def on_locust_error(locust_instance, exception, traceback):\n formatted_tb = \"\".join(traceback.format_tb(traceback))\n def on_locust_error(locust_instance, exception, tb):\n formatted_tb = \"\".join(traceback.format_tb(tb))\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/locustio/locust/commit/32f276655aeaa2c5d88c9c51e0ec1b16676a36d2", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " exception=repr(exc_info.exception.exc),\n traceback=repr(exc_info.traceback))\n exception=safe_repr(exc_info.exception.exc),\n traceback=safe_repr(exc_info.traceback))\n exception=repr(exc_info.exception),\n traceback=exc_info.traceback)\n exception=safe_repr(exc_info.exception),\n traceback=safe_str(exc_info.traceback))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/celery/celery/commit/1ab37bbf44cdd550adbd8f826bdda24459cd3b22", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " boss.call_remote_control(active_window=w, args=tuple(launch_args + ([m] if isinstance(m, str) else m)))\n boss.call_remote_control(self_window=w, args=tuple(launch_args + ([m] if isinstance(m, str) else m)))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kovidgoyal/kitty/commit/da1276d84a80ca1b42aa64750a34668021d2e008", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " def call_remote_control(self, active_window: Optional[Window], args: Tuple[str, ...]) -> 'ResponseType':\n def call_remote_control(self, self_window: Optional[Window], args: Tuple[str, ...]) -> 'ResponseType':\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kovidgoyal/kitty/commit/da1276d84a80ca1b42aa64750a34668021d2e008", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " c.response_from_kitty(self, active_window, PayloadGetter(c, x if isinstance(x, dict) else {}))\n c.response_from_kitty(self, self_window, PayloadGetter(c, x if isinstance(x, dict) else {}))\n boss.call_remote_control(active_window=w, args=tuple(launch_args + ([m] if isinstance(m, str) else m)))\n boss.call_remote_control(self_window=w, args=tuple(launch_args + ([m] if isinstance(m, str) else m)))\n def call_remote_control(self, active_window: Optional[Window], args: Tuple[str, ...]) -> 'ResponseType':\n def call_remote_control(self, self_window: Optional[Window], args: Tuple[str, ...]) -> 'ResponseType':\n return c.response_from_kitty(self, active_window, PayloadGetter(c, payload if isinstance(payload, dict) else {}))\n return c.response_from_kitty(self, self_window, PayloadGetter(c, payload if isinstance(payload, dict) else {}))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kovidgoyal/kitty/commit/da1276d84a80ca1b42aa64750a34668021d2e008", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " def set_active_window(self, window: Window, switch_os_window_if_needed: bool = False) -> Optional[int]:\n def set_active_window(self, window: Window, switch_os_window_if_needed: bool = False, for_keep_focus: bool = False) -> Optional[int]:\n def set_active_window(self, x: Union[Window, int]) -> None:\n self.windows.set_active_window_group_for(x)\n def set_active_window(self, x: Union[Window, int], for_keep_focus: Optional[Window] = None) -> None:\n self.windows.set_active_window_group_for(x, for_keep_focus=for_keep_focus)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/kovidgoyal/kitty/commit/c4c62c1505c48f90d75554f02030b76414637f8a", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " def set_active_window(self, x: Union[Window, int]) -> None:\n self.windows.set_active_window_group_for(x)\n def set_active_window(self, x: Union[Window, int], for_keep_focus: Optional[Window] = None) -> None:\n self.windows.set_active_window_group_for(x, for_keep_focus=for_keep_focus)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/kovidgoyal/kitty/commit/c4c62c1505c48f90d75554f02030b76414637f8a", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " if data['response'] == 'y':\n if data.get('response') == 'y':\n if data['response'] == 'y':\n if data.get('response') == 'y':\n if data['response'] == 'y':\n if data.get('response') == 'y':\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kovidgoyal/kitty/commit/4af2526f5498c2845d22a5aa3ea8252215f2c080", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 7 ] }, { "input": "def do_io(to: Optional[str], send: Dict[str, Any], no_response: bool) -> Dict[str, Any]:\ndef do_io(to: Optional[str], send: Dict[str, Any], no_response: bool, response_timeout: float) -> Dict[str, Any]:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kovidgoyal/kitty/commit/c3daa969fa019dab8c84dd3b7a02d9d8804f864c", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " response = do_io(global_opts.to, send, no_response)\n response = do_io(global_opts.to, send, no_response, response_timeout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kovidgoyal/kitty/commit/c3daa969fa019dab8c84dd3b7a02d9d8804f864c", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 5 ] }, { "input": " response = do_io(global_opts.to, send, func.no_response)\n response_timeout = func.response_timeout\n if hasattr(opts, 'response_timeout'):\n response_timeout = opts.response_timeout\n response = do_io(global_opts.to, send, func.no_response, response_timeout)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/kovidgoyal/kitty/commit/c3daa969fa019dab8c84dd3b7a02d9d8804f864c", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " extra_blank_rects: Sequence[Tuple[int, int, int, int]],\n tab_bar_rects: Sequence[Tuple[int, int, int, int]],\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kovidgoyal/kitty/commit/f3b601aa0672350eb6aed357dad208711f8bca10", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " current_layout=ly, extra_blank_rects=tm.blank_rects,\n current_layout=ly, tab_bar_rects=tm.tab_bar_rects,\n extra_blank_rects: Sequence[Tuple[int, int, int, int]],\n tab_bar_rects: Sequence[Tuple[int, int, int, int]],\n def blank_rects(self) -> Tuple[Rect, ...]:\n def tab_bar_rects(self) -> Tuple[Rect, ...]:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kovidgoyal/kitty/commit/f3b601aa0672350eb6aed357dad208711f8bca10", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 5 ] }, { "input": " def blank_rects(self) -> Tuple[Rect, ...]:\n def tab_bar_rects(self) -> Tuple[Rect, ...]:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kovidgoyal/kitty/commit/f3b601aa0672350eb6aed357dad208711f8bca10", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " self.set_dimensions()\n self._set_dimensions()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kovidgoyal/kitty/commit/02fb020dfdb8c393ca63d09c4ba392920c4348df", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " def set_dimensions(self) -> None:\n def _set_dimensions(self) -> None:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kovidgoyal/kitty/commit/02fb020dfdb8c393ca63d09c4ba392920c4348df", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " self._set_dimensions()\n self.set_dimensions()\n def _set_dimensions(self) -> None:\n def set_dimensions(self) -> None:\n self._set_dimensions()\n self.set_dimensions()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kovidgoyal/kitty/commit/bac6ebdf95d05764d3ee341397ac8b38974b888f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "def setup_environment(opts):\ndef setup_environment(opts, args):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kovidgoyal/kitty/commit/634d262b645b09aea757dd75b1754b3243ce49d1", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " setup_environment(opts)\n setup_environment(opts, args)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kovidgoyal/kitty/commit/634d262b645b09aea757dd75b1754b3243ce49d1", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " return str(wid)\n return None if payload['no_response'] else str(wid)\n return str(wid)\n return None if payload['no_response'] else str(wid)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/kovidgoyal/kitty/commit/4189aa8f14a0b84fbb1d51f66831ce58d83c5c7a", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " session = create_session(opts, args)\n if not os.path.isabs(args.directory):\n args.directory = os.path.join(msg['cwd'], args.directory)\n session = create_session(opts, args, respect_cwd=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/kovidgoyal/kitty/commit/ce0db16479e22fcfc19cfb353379fc4f69fa25dd", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "def create_session(opts, args=None, special_window=None, cwd_from=None):\ndef create_session(opts, args=None, special_window=None, cwd_from=None, respect_cwd=False):\n session = create_session(opts, args)\n if not os.path.isabs(args.directory):\n args.directory = os.path.join(msg['cwd'], args.directory)\n session = create_session(opts, args, respect_cwd=True)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/kovidgoyal/kitty/commit/ce0db16479e22fcfc19cfb353379fc4f69fa25dd", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "def detect_support(wait_for=10):\ndef detect_support(wait_for=10, silent=False):\n if not detect_support():\n if not detect_support(wait_for=args.detection_timeout):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/kovidgoyal/kitty/commit/1f093b4ff2e5c9ea6a4b0fcda3ed4d2b3867aeab", "target_edit_idx": 5, "propagatable_edit_idx": [ 11 ] }, { "input": " func = get_shortcut(self.opts.keymap, mods, key, scancode)\n if func is not None:\n f = getattr(self, func, None)\n action = get_shortcut(self.opts.keymap, mods, key, scancode)\n if action is not None:\n f = getattr(self, action.func, None)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/kovidgoyal/kitty/commit/e8a1ada5bfa4db9b1d76c0178d356a32d905e1d4", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " passthrough = f()\n passthrough = f(*action.args)\n passthrough = f()\n passthrough = f(*action.args)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/kovidgoyal/kitty/commit/e8a1ada5bfa4db9b1d76c0178d356a32d905e1d4", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " if func is not None:\n f = getattr(tab, func, getattr(window, func, None))\n if action is not None:\n f = getattr(tab, action.func, getattr(window, action.func, None))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/kovidgoyal/kitty/commit/e8a1ada5bfa4db9b1d76c0178d356a32d905e1d4", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " passthrough = f()\n passthrough = f(*action.args)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/kovidgoyal/kitty/commit/e8a1ada5bfa4db9b1d76c0178d356a32d905e1d4", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " main()\n main(sys.argv[1:])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/kovidgoyal/kitty/commit/49aeae4aade8b7fa8ff1319c144cf64228e185e7", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "def main():\ndef main(args=sys.argv):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/kovidgoyal/kitty/commit/49aeae4aade8b7fa8ff1319c144cf64228e185e7", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "def load_config(*paths) -> Options:\ndef load_config(*paths, overrides=None) -> Options:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kovidgoyal/kitty/commit/cbe599735c59106cd66333bd5885bb0e3cc3073b", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " opts = load_config(*config)\n overrides = (a.replace('=', ' ', 1) for a in args.override)\n opts = load_config(*config, overrides=overrides)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/kovidgoyal/kitty/commit/cbe599735c59106cd66333bd5885bb0e3cc3073b", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " spy_ensure = mocker.spy(\n mock_ensure = mocker.patch(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cookiecutter/cookiecutter/commit/408106354574760087d3297809147d550b0c8385", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " spy_ensure.assert_called_once_with(replay_dir)\n assert spy_json_dump.called == 1\n assert mock_get_user_config.called == 1\n mock_ensure.assert_called_once_with(replay_dir)\n assert spy_json_dump.call_count == 1\n assert mock_get_user_config.call_count == 1\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cookiecutter/cookiecutter/commit/408106354574760087d3297809147d550b0c8385", "target_edit_idx": 6, "propagatable_edit_idx": [ 2 ] }, { "input": " cookiecutter(template, checkout, no_input)\n except OutputDirExistsException as e:\n cookiecutter(template, checkout, no_input, replay=replay)\n except (OutputDirExistsException, InvalidModeException) as e:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/cookiecutter/cookiecutter/commit/a64d973ffa1613b309d050874220c0d79a98bdf8", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "def cookiecutter(template, checkout=None, no_input=False, extra_context=None):\ndef cookiecutter(\n template,\n checkout=None, no_input=False, extra_context=None, replay=False):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/cookiecutter/cookiecutter/commit/a64d973ffa1613b309d050874220c0d79a98bdf8", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": "def delete_repo(repo_dir):\ndef prompt_and_delete_repo(repo_dir):\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cookiecutter/cookiecutter/commit/ad4d9d060b8bab5196012f3387b05169fade85e0", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " delete_repo(repo_dir)\n\n subprocess.check_call(['git', 'clone', repo], cwd=clone_to_dir)\n prompt_and_delete_repo(repo_dir)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/cookiecutter/cookiecutter/commit/ad4d9d060b8bab5196012f3387b05169fade85e0", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": " parser.add_argument('--batch_size', default=32, help='Input batch size on each device (default: 32)')\n parser.add_argument('--batch_size', default=32, type=int, help='Input batch size on each device (default: 32)')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.013761467889908258, "commit_url": "https://github.com/pytorch/examples/commit/244e4eefb199f5e74e11d15c1b1c3186ccd2d313", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " warnings.warn(\n \"IOLoop(make_current=True) is deprecated\",\n DeprecationWarning,\n stacklevel=2,\n )\n current = IOLoop.current(instance=False)\n # AsyncIO loops can already be current by this point.\n if current is not None and current is not self:\n raise RuntimeError(\"current IOLoop already exists\")\n self.make_current()\n self._make_current()\n def make_current(self) -> None:\n def _make_current(self) -> None:\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/tornadoweb/tornado/commit/85e395e659059b0194c575a85cb42065776d1a9b", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "from tornado.concurrent import Future, is_future, chain_future, future_set_exc_info\nfrom tornado.concurrent import Future, is_future, chain_future, future_set_exc_info, future_add_done_callback\nfrom tornado.concurrent import Future, is_future, chain_future, future_set_exc_info\nfrom tornado.concurrent import Future, is_future, chain_future, future_set_exc_info, future_add_done_callback\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tornadoweb/tornado/commit/89b46a51720776a57cbdf89e8615a09cc020404a", "target_edit_idx": 3, "propagatable_edit_idx": [ 11 ] }, { "input": "from tornado.concurrent import Future\nfrom tornado.concurrent import Future, future_add_done_callback\nfrom tornado.concurrent import Future\nfrom tornado.concurrent import Future, future_add_done_callback\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tornadoweb/tornado/commit/89b46a51720776a57cbdf89e8615a09cc020404a", "target_edit_idx": 9, "propagatable_edit_idx": [ 13 ] }, { "input": " self.assertTrue('must be empty' in str(context.exception))\n self.assertTrue('must be None' in str(context.exception))\n self.assertTrue('must not be empty' in str(context.exception))\n self.assertTrue('must not be None' in str(context.exception))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tornadoweb/tornado/commit/542c8a51b1cfa6150349a541bf4e09a2b00ea805", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " except httputil.HTTPInputException:\n except httputil.HTTPInputError:\n except httputil.HTTPInputException as e:\n except httputil.HTTPInputError as e:\n raise httputil.HTTPInputException(\"Malformed HTTP headers: %r\" %\n data[eol:100])\n raise httputil.HTTPInputError(\"Malformed HTTP headers: %r\" %\n data[eol:100])\n raise httputil.HTTPInputException(\"Content-Length too long\")\n raise httputil.HTTPInputError(\"Content-Length too long\")\n raise httputil.HTTPInputException(\"chunked body too large\")\n raise httputil.HTTPInputError(\"chunked body too large\")\nclass HTTPInputException(Exception):\nclass HTTPInputError(Exception):\n raise HTTPInputException(\"Malformed HTTP request line\")\n raise HTTPInputError(\"Malformed HTTP request line\")\n raise HTTPInputException(\n raise HTTPInputError(\n raise HTTPInputException(\"Error parsing response start line\")\n raise HTTPInputError(\"Error parsing response start line\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6153846153846154, "commit_url": "https://github.com/tornadoweb/tornado/commit/a0fe934435b589312ab7f385869e5020d4a6f18d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 5, 6, 7, 9, 10, 11 ] }, { "input": " except httputil.HTTPInputException as e:\n except httputil.HTTPInputError as e:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6153846153846154, "commit_url": "https://github.com/tornadoweb/tornado/commit/a0fe934435b589312ab7f385869e5020d4a6f18d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4, 5, 6, 7, 9, 10, 11 ] }, { "input": " raise httputil.HTTPOutputException(\n raise httputil.HTTPOutputError(\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tornadoweb/tornado/commit/a0fe934435b589312ab7f385869e5020d4a6f18d", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 3, 12, 13 ] }, { "input": " raise httputil.HTTPOutputException(\n raise httputil.HTTPOutputError(\nclass HTTPOutputException(Exception):\nclass HTTPOutputError(Exception):\n raise httputil.HTTPOutputException(\n raise httputil.HTTPOutputError(\n self._error = httputil.HTTPOutputException(\n self._error = httputil.HTTPOutputError(\n self._error = httputil.HTTPOutputException(\n self._error = httputil.HTTPOutputError(\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tornadoweb/tornado/commit/a0fe934435b589312ab7f385869e5020d4a6f18d", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 2, 12, 13 ] }, { "input": " raise httputil.HTTPInputException(\"Content-Length too long\")\n raise httputil.HTTPInputError(\"Content-Length too long\")\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6153846153846154, "commit_url": "https://github.com/tornadoweb/tornado/commit/a0fe934435b589312ab7f385869e5020d4a6f18d", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 4, 6, 7, 9, 10, 11 ] }, { "input": " raise httputil.HTTPInputException(\"chunked body too large\")\n raise httputil.HTTPInputError(\"chunked body too large\")\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6153846153846154, "commit_url": "https://github.com/tornadoweb/tornado/commit/a0fe934435b589312ab7f385869e5020d4a6f18d", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 4, 5, 7, 9, 10, 11 ] }, { "input": "class HTTPInputException(Exception):\nclass HTTPInputError(Exception):\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6153846153846154, "commit_url": "https://github.com/tornadoweb/tornado/commit/a0fe934435b589312ab7f385869e5020d4a6f18d", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 4, 5, 6, 9, 10, 11 ] }, { "input": "class HTTPOutputException(Exception):\nclass HTTPOutputError(Exception):\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tornadoweb/tornado/commit/a0fe934435b589312ab7f385869e5020d4a6f18d", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 3, 12, 13 ] }, { "input": " raise HTTPInputException(\n raise HTTPInputError(\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6153846153846154, "commit_url": "https://github.com/tornadoweb/tornado/commit/a0fe934435b589312ab7f385869e5020d4a6f18d", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 4, 5, 6, 7, 9, 11 ] }, { "input": " raise HTTPInputException(\"Error parsing response start line\")\n raise HTTPInputError(\"Error parsing response start line\")\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6153846153846154, "commit_url": "https://github.com/tornadoweb/tornado/commit/a0fe934435b589312ab7f385869e5020d4a6f18d", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 1, 4, 5, 6, 7, 9, 10 ] }, { "input": " self._error = httputil.HTTPOutputException(\n self._error = httputil.HTTPOutputError(\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tornadoweb/tornado/commit/a0fe934435b589312ab7f385869e5020d4a6f18d", "target_edit_idx": 12, "propagatable_edit_idx": [ 8, 2, 3, 13 ] }, { "input": " def write_headers(self, start_line, headers):\n def write_headers(self, start_line, headers, chunk=None, callback=None):\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/tornadoweb/tornado/commit/adc7e4f17fa413370aacaedfef3130f74affb35b", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": " def url_unescape(value, encoding='utf-8'):\n def url_unescape(value, encoding='utf-8', plus=True):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/tornadoweb/tornado/commit/7056d6fbd1c4778cf56177698d57152188203e0d", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " self.wait()\n server.write(b\"5678\")\n self.wait(condition=lambda: len(chunks) == 1)\n server.write(b\"5678\", self.stop)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/tornadoweb/tornado/commit/c633aa507218b1e2a5fce9b267785c8a38c4302c", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " self.wait()\n self.assertEqual(chunks, [b\"1234\", b\"5678\", b\"\"])\n self.wait(condition=lambda: closed[0])\n self.assertEqual(chunks, [b\"1234\", b\"5678\"])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/tornadoweb/tornado/commit/c633aa507218b1e2a5fce9b267785c8a38c4302c", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " self._curls = [_curl_create(max_simultaneous_connections)\n for i in xrange(max_clients)]\n self._curls = [_curl_create() for i in xrange(max_clients)]\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tornadoweb/tornado/commit/6385cfaa2b2c741082ea6ba82ebaf63db83bba78", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "def _curl_create(max_simultaneous_connections=None):\ndef _curl_create():\n self._curls = [_curl_create(max_simultaneous_connections)\n for i in xrange(max_clients)]\n self._curls = [_curl_create() for i in xrange(max_clients)]\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tornadoweb/tornado/commit/6385cfaa2b2c741082ea6ba82ebaf63db83bba78", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "class SSLTest(AsyncHTTPTestCase, LogTrapTestCase):\nclass BaseSSLTest(AsyncHTTPTestCase, LogTrapTestCase):\n def get_ssl_version(self):\n raise NotImplementedError()\n\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/tornadoweb/tornado/commit/17052f33c9e467dfc7d3b755146d09012c881046", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 4 ] }, { "input": " super(SSLTest, self).setUp()\n super(BaseSSLTest, self).setUp()\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tornadoweb/tornado/commit/17052f33c9e467dfc7d3b755146d09012c881046", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 3 ] }, { "input": " del SSLTest\n del BaseSSLTest\n del SSLv23Test\n del SSLv3Test\n del TLSv1Test\nelif getattr(ssl, 'OPENSSL_VERSION_INFO', (0,0)) < (1,0):\n # In pre-1.0 versions of openssl, SSLv23 clients always send SSLv2\n # ClientHello messages, which are rejected by SSLv3 and TLSv1\n # servers. Note that while the OPENSSL_VERSION_INFO was formally\n # introduced in python3.2, it was present but undocumented in\n # python 2.7\n del SSLv3Test\n del TLSv1Test\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/tornadoweb/tornado/commit/17052f33c9e467dfc7d3b755146d09012c881046", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " auth=self.custom_auth,\n auth=self.custom_auth,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/openai/openai-python/commit/6279b267be1f8d28c080d0282d029e7f0b50948a", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " def make_job_fn(self, fn, progress):\n def make_job_fn(self, fn, progress, key=None):\n def make_job_fn(self, fn, progress):\n return _make_job_fn(fn, self.handle, progress)\n def make_job_fn(self, fn, progress, key=None):\n return _make_job_fn(fn, self.handle, progress, key)\n def make_job_fn(self, fn, progress):\n def make_job_fn(self, fn, progress, key=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/plotly/dash/commit/b104117b72a445291530aff6cd0444f2f61c424c", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " dash_duo.wait_for_text_to_equal('#out', 'names: [{}, b]; hidden: [c1]'.format(NEW_NAME))\n dash_duo.wait_for_text_to_equal(\n '#out',\n 'names: [{}, b]; hidden: [c1]'.format(NEW_NAME)\n )\n dash_duo.wait_for_text_to_equal('#out', 'names: [{}, b]; hidden: [c1]'.format(NEW_NAME))\n dash_duo.wait_for_text_to_equal(\n '#out',\n 'names: [{}, b]; hidden: [c1]'.format(NEW_NAME)\n )\n dash_duo.wait_for_text_to_equal('#out', 'names: [{}, b]; hidden: [c1]'.format(NEW_NAME))\n dash_duo.wait_for_text_to_equal(\n '#out',\n 'names: [{}, b]; hidden: [c1]'.format(NEW_NAME)\n )\n dash_duo.wait_for_text_to_equal('#out', 'names: [{}, b]; hidden: [c1]'.format(NEW_NAME))\n dash_duo.wait_for_text_to_equal(\n '#out',\n 'names: [{}, b]; hidden: [c1]'.format(NEW_NAME)\n )\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/plotly/dash/commit/e896169f79248ae965c903f21ca164f71ae03150", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " input_ = lambda: dash_duo.find_element(\"#input\")\n output_ = lambda: dash_duo.find_element(\"#output\")\n def input_(): return dash_duo.find_element(\"#input\")\n def output_(): return dash_duo.find_element(\"#output\")\n btn = lambda: dash_duo.find_element(\"#button\")\n output = lambda: dash_duo.find_element(\"#output\")\n def btn(): return dash_duo.find_element(\"#button\")\n def output(): return dash_duo.find_element(\"#output\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/plotly/dash/commit/e896169f79248ae965c903f21ca164f71ae03150", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " external_script_urls=None,\n external_css_urls=None,\n external_scripts=None,\n external_stylesheets=None,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/plotly/dash/commit/86ea309c3afac7e111d1d6aa4b7285e94074d5e6", "target_edit_idx": 2, "propagatable_edit_idx": [ 11, 3 ] }, { "input": " self._external_scripts_urls = external_script_urls or []\n self._external_css_urls = external_css_urls or []\n self._external_scripts = external_scripts or []\n self._external_stylesheets = external_stylesheets or []\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/plotly/dash/commit/86ea309c3afac7e111d1d6aa4b7285e94074d5e6", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 11, 6 ] }, { "input": " srcs = srcs[:-1] + self._external_scripts_urls + [srcs[-1]]\n srcs = srcs[:-1] + self._external_scripts + [srcs[-1]]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/plotly/dash/commit/86ea309c3afac7e111d1d6aa4b7285e94074d5e6", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": " external_script_urls=js_files, external_css_urls=css_files)\n external_scripts=js_files, external_stylesheets=css_files)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/plotly/dash/commit/86ea309c3afac7e111d1d6aa4b7285e94074d5e6", "target_edit_idx": 11, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "from zerver.tornado.django_api import send_event\nfrom zerver.tornado.django_api import send_event_on_commit\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.016129032258064516, "commit_url": "https://github.com/zulip/zulip/commit/ba80266b7e8f40c099fd3a7a2003d80e985edcc2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " send_event(user_profile.realm, event, [user_profile.id])\n send_event_on_commit(user_profile.realm, event, [user_profile.id])\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.016129032258064516, "commit_url": "https://github.com/zulip/zulip/commit/ba80266b7e8f40c099fd3a7a2003d80e985edcc2", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " self.assert_database_query_count(43),\n self.assert_database_query_count(41),\n self.assert_database_query_count(54),\n self.assert_database_query_count(52),\n self.assert_database_query_count(54),\n self.assert_database_query_count(52),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/zulip/zulip/commit/f48e87cd3cb6846d99db5099cafe604390a9b667", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " \"Incompatible values for 'dense_mode' and 'web_font_size_px' settings.\",\n \"Incompatible values for 'dense_mode' and 'web_font_size_px'.\",\n \"Incompatible values for 'dense_mode' and 'web_font_size_px' settings.\",\n \"Incompatible values for 'dense_mode' and 'web_font_size_px'.\",\n \"Incompatible values for 'dense_mode' and 'web_font_size_px' settings.\",\n \"Incompatible values for 'dense_mode' and 'web_font_size_px'.\",\n \"Incompatible values for 'dense_mode' and 'web_font_size_px' settings.\",\n \"Incompatible values for 'dense_mode' and 'web_font_size_px'.\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/zulip/zulip/commit/c6e917329709dbd4400992c8e6960d69b8ccca3d", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 7 ] }, { "input": " \"Incompatible values for 'dense_mode' and 'web_line_height_percent' settings.\",\n \"Incompatible values for 'dense_mode' and 'web_line_height_percent'.\",\n \"Incompatible values for 'dense_mode' and 'web_line_height_percent' settings.\",\n \"Incompatible values for 'dense_mode' and 'web_line_height_percent'.\",\n \"Incompatible values for 'dense_mode' and 'web_line_height_percent' settings.\",\n \"Incompatible values for 'dense_mode' and 'web_line_height_percent'.\",\n \"Incompatible values for 'dense_mode' and 'web_line_height_percent' settings.\",\n \"Incompatible values for 'dense_mode' and 'web_line_height_percent'.\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/zulip/zulip/commit/c6e917329709dbd4400992c8e6960d69b8ccca3d", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 4, 6 ] }, { "input": " raise JsonableError(\n _(\"Incompatible values for 'dense_mode' and 'web_font_size_px' settings.\")\n )\n raise IncompatibleParameterValuesError(\"dense_mode\", \"web_font_size_px\")\n raise JsonableError(\n _(\"Incompatible values for 'dense_mode' and 'web_line_height_percent' settings.\")\n )\n raise IncompatibleParameterValuesError(\"dense_mode\", \"web_line_height_percent\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/zulip/zulip/commit/c6e917329709dbd4400992c8e6960d69b8ccca3d", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "def set_default_for_realm_permission_group_settings(realm: Realm) -> None:\ndef set_default_for_realm_permission_group_settings(\n realm: Realm, group_settings_defaults_for_org_types: Optional[Dict[str, Dict[int, str]]] = None\n) -> None:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/zulip/zulip/commit/7655c69d89b2bd6deb22efe870e53bed0e925408", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " set_default_for_realm_permission_group_settings(realm)\n\n group_settings_defaults_for_org_types = {\n \"can_create_public_channel_group\": {\n Realm.ORG_TYPES[\"education_nonprofit\"][\"id\"]: SystemGroups.ADMINISTRATORS,\n Realm.ORG_TYPES[\"education\"][\"id\"]: SystemGroups.ADMINISTRATORS,\n }\n }\n set_default_for_realm_permission_group_settings(\n realm, group_settings_defaults_for_org_types\n )\ndef set_default_for_realm_permission_group_settings(realm: Realm) -> None:\ndef set_default_for_realm_permission_group_settings(\n realm: Realm, group_settings_defaults_for_org_types: Optional[Dict[str, Dict[int, str]]] = None\n) -> None:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/zulip/zulip/commit/7655c69d89b2bd6deb22efe870e53bed0e925408", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "from zerver.lib.user_status import get_user_status_dict\nfrom zerver.lib.user_status import get_all_users_status_dict\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/d6672c57ffb58b960e1d52640c0fd83ccd94dfcd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " else get_user_status_dict(realm=realm, user_profile=user_profile)\n else get_all_users_status_dict(realm=realm, user_profile=user_profile)\nfrom zerver.lib.user_status import get_user_status_dict\nfrom zerver.lib.user_status import get_all_users_status_dict\ndef get_user_status_dict(realm: Realm, user_profile: UserProfile) -> Dict[str, UserInfoDict]:\ndef get_all_users_status_dict(realm: Realm, user_profile: UserProfile) -> Dict[str, UserInfoDict]:\nfrom zerver.lib.user_status import UserInfoDict, get_user_status_dict, update_user_status\nfrom zerver.lib.user_status import UserInfoDict, get_all_users_status_dict, update_user_status\n user_dict = get_user_status_dict(user.realm, acting_user)\n user_dict = get_all_users_status_dict(user.realm, acting_user)\n get_user_status_dict(realm=realm, user_profile=hamlet),\n get_all_users_status_dict(realm=realm, user_profile=hamlet),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/d6672c57ffb58b960e1d52640c0fd83ccd94dfcd", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5 ] }, { "input": "def get_user_status_dict(realm: Realm, user_profile: UserProfile) -> Dict[str, UserInfoDict]:\ndef get_all_users_status_dict(realm: Realm, user_profile: UserProfile) -> Dict[str, UserInfoDict]:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/d6672c57ffb58b960e1d52640c0fd83ccd94dfcd", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5 ] }, { "input": "from zerver.lib.user_status import UserInfoDict, get_user_status_dict, update_user_status\nfrom zerver.lib.user_status import UserInfoDict, get_all_users_status_dict, update_user_status\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/d6672c57ffb58b960e1d52640c0fd83ccd94dfcd", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5 ] }, { "input": " user_dict = get_user_status_dict(user.realm, acting_user)\n user_dict = get_all_users_status_dict(user.realm, acting_user)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/d6672c57ffb58b960e1d52640c0fd83ccd94dfcd", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5 ] }, { "input": " get_user_status_dict(realm=realm, user_profile=hamlet),\n get_all_users_status_dict(realm=realm, user_profile=hamlet),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/d6672c57ffb58b960e1d52640c0fd83ccd94dfcd", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4 ] }, { "input": " if (e.metaKey || e.ctrlKey) {\n if (e.metaKey || e.ctrlKey || e.shiftKey) {\n if (e.metaKey || e.ctrlKey) {\n if (e.metaKey || e.ctrlKey || e.shiftKey) {\n if (e.metaKey || e.ctrlKey) {\n if (e.metaKey || e.ctrlKey || e.shiftKey) {\n if (e.metaKey || e.ctrlKey) {\n if (e.metaKey || e.ctrlKey || e.shiftKey) {\n if (e.metaKey || e.ctrlKey) {\n if (e.metaKey || e.ctrlKey || e.shiftKey) {\n if (e.metaKey || e.ctrlKey) {\n if (e.metaKey || e.ctrlKey || e.shiftKey) {\n if (e.metaKey || e.ctrlKey) {\n if (e.metaKey || e.ctrlKey || e.shiftKey) {\n if (e.metaKey || e.ctrlKey) {\n if (e.metaKey || e.ctrlKey || e.shiftKey) {\n if (e.metaKey || e.ctrlKey) {\n if (e.metaKey || e.ctrlKey || e.shiftKey) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/29e32c39779fad2bffd9c699cebac024c4f16590", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " bold_current_selection: this.current_value === FILTERS.FOLLOWED_TOPICS,\n bold_current_selection: current_value === FILTERS.FOLLOWED_TOPICS,\n bold_current_selection: this.current_value === FILTERS.ALL_TOPICS,\n bold_current_selection: current_value === FILTERS.ALL_TOPICS,\n bold_current_selection: this.current_value === FILTERS.UNMUTED_TOPICS,\n bold_current_selection: current_value === FILTERS.UNMUTED_TOPICS,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/9366d42f14eb7775fc443b46489ee96c64fb90db", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "def validate_disposable(email: str) -> None:\ndef validate_is_not_disposable(email: str) -> None:\n return validate_disposable\n return validate_is_not_disposable\nfrom zerver.lib.email_validation import validate_disposable\nfrom zerver.lib.email_validation import validate_is_not_disposable\n validate_disposable(contact_email)\n validate_is_not_disposable(contact_email)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/4b512b3409dcf470cc7319c1a36d98292bef6c62", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " return validate_disposable\n return validate_is_not_disposable\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/4b512b3409dcf470cc7319c1a36d98292bef6c62", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": "from zerver.lib.email_validation import validate_disposable\nfrom zerver.lib.email_validation import validate_is_not_disposable\ndef validate_disposable(email: str) -> None:\ndef validate_is_not_disposable(email: str) -> None:\n return validate_disposable\n return validate_is_not_disposable\n validate_disposable(contact_email)\n validate_is_not_disposable(contact_email)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/4b512b3409dcf470cc7319c1a36d98292bef6c62", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " validate_disposable(contact_email)\n validate_is_not_disposable(contact_email)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/4b512b3409dcf470cc7319c1a36d98292bef6c62", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " await setup_event_queue(http_server, port)\n send_reloads = not options.get(\"no_immediate_reloads\", False)\n await setup_event_queue(http_server, port, send_reloads)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/b25d9663525705727ad683b3f5d4949d13eb6d7f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "async def setup_event_queue(server: tornado.httpserver.HTTPServer, port: int) -> None:\nasync def setup_event_queue(\n server: tornado.httpserver.HTTPServer, port: int, send_reloads: bool = True\n) -> None:\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zulip/zulip/commit/b25d9663525705727ad683b3f5d4949d13eb6d7f", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "def internal_notify_view(\ndef internal_api_view(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/ab683fac2914ac392423d642a2e218658e4f2cd9", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7 ] }, { "input": " return internal_notify_view(is_tornado)(boring_view)(req)\n return internal_api_view(is_tornado)(boring_view)(req)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/ab683fac2914ac392423d642a2e218658e4f2cd9", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4, 5, 6, 7 ] }, { "input": "from zerver.decorator import internal_notify_view, process_client\nfrom zerver.decorator import internal_api_view, process_client\ndef internal_notify_view(\ndef internal_api_view(\n return internal_notify_view(is_tornado)(boring_view)(req)\n return internal_api_view(is_tornado)(boring_view)(req)\n@internal_notify_view(True)\n@internal_api_view(True)\n@internal_notify_view(True)\n@internal_api_view(True)\nfrom zerver.decorator import internal_notify_view\nfrom zerver.decorator import internal_api_view\n@internal_notify_view(False)\n@internal_api_view(False)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/ab683fac2914ac392423d642a2e218658e4f2cd9", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 5, 6, 7 ] }, { "input": "@internal_notify_view(True)\n@internal_api_view(True)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/ab683fac2914ac392423d642a2e218658e4f2cd9", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3, 5, 6, 7 ] }, { "input": "from zerver.decorator import internal_notify_view\nfrom zerver.decorator import internal_api_view\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/ab683fac2914ac392423d642a2e218658e4f2cd9", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 7 ] }, { "input": "def authenticate_notify(request: HttpRequest, secret: str = REQ(\"secret\")) -> bool:\ndef authenticate_internal_api(request: HttpRequest, secret: str = REQ(\"secret\")) -> bool:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/be75736a95f9e96cbe50fcc3592d12d5cf77cc23", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 4, 5, 6, 7 ] }, { "input": " if not authenticate_notify(request):\n if not authenticate_internal_api(request):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/be75736a95f9e96cbe50fcc3592d12d5cf77cc23", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 4, 5, 6, 7 ] }, { "input": " self.assertTrue(authenticate_notify(request))\n self.assertTrue(authenticate_internal_api(request))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/be75736a95f9e96cbe50fcc3592d12d5cf77cc23", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 5, 6, 7 ] }, { "input": " self.assertFalse(authenticate_notify(request))\n self.assertFalse(authenticate_internal_api(request))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/be75736a95f9e96cbe50fcc3592d12d5cf77cc23", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 4, 5, 7 ] }, { "input": " def add_server_to_legacy_plan(\n def migrate_customer_to_legacy_plan(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/df23701475619883595dc3cc4036cac129a8780e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " self.add_server_to_legacy_plan(server, renewal_date, end_date)\n self.migrate_customer_to_legacy_plan(server, renewal_date, end_date)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/df23701475619883595dc3cc4036cac129a8780e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4 ] }, { "input": " billing_schedule.add_server_to_legacy_plan(renewal_date, end_date)\n billing_schedule.migrate_customer_to_legacy_plan(renewal_date, end_date)", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/df23701475619883595dc3cc4036cac129a8780e", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4 ] }, { "input": " billing_session.add_server_to_legacy_plan(renewal_date, end_date)\n billing_session.migrate_customer_to_legacy_plan(renewal_date, end_date)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/df23701475619883595dc3cc4036cac129a8780e", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " free_trial_days = get_free_trial_days()\n is_self_hosted_billing = not isinstance(self, RealmBillingSession)\n free_trial_days = get_free_trial_days(is_self_hosted_billing)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/zulip/zulip/commit/ce56e19d1c3fbe857e06260e60a4c34cd6956cd7", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4, 5, 6, 7 ] }, { "input": " days=assert_is_not_none(get_free_trial_days())\n days=assert_is_not_none(get_free_trial_days(is_self_hosted_billing))\n free_trial_days = get_free_trial_days()\n is_self_hosted_billing = not isinstance(self, RealmBillingSession)\n free_trial_days = get_free_trial_days(is_self_hosted_billing)\ndef get_free_trial_days() -> Optional[int]:\ndef get_free_trial_days(is_self_hosted_billing: bool = False) -> Optional[int]:\n if is_self_hosted_billing:\n return settings.SELF_HOSTING_FREE_TRIAL_DAYS\n\n free_trial_days=get_free_trial_days(),\n free_trial_days=get_free_trial_days(False),\n free_trial_days=get_free_trial_days(),\n free_trial_days=get_free_trial_days(True),\n free_trial_days=get_free_trial_days(),\n free_trial_days=get_free_trial_days(True),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/zulip/zulip/commit/ce56e19d1c3fbe857e06260e60a4c34cd6956cd7", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4, 5, 6, 7 ] }, { "input": " free_trial_days=get_free_trial_days(),\n free_trial_days=get_free_trial_days(False),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/zulip/zulip/commit/ce56e19d1c3fbe857e06260e60a4c34cd6956cd7", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 3, 4, 6, 7 ] }, { "input": " free_trial_days=get_free_trial_days(),\n free_trial_days=get_free_trial_days(True),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/zulip/zulip/commit/ce56e19d1c3fbe857e06260e60a4c34cd6956cd7", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 3, 4, 5, 7 ] }, { "input": " return \"TODO:not-implemented\"\n return build_support_url(\"remote_servers_support\", self.remote_realm.server.hostname)\n return \"TODO:not-implemented\"\n return build_support_url(\"remote_servers_support\", self.remote_server.hostname)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/906e667a70b38f8f02abc7138e28fae8395926e4", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "def get_support_url(realm: Realm) -> str:\ndef get_realm_support_url(realm: Realm) -> str:\nfrom corporate.lib.support import get_support_url\nfrom corporate.lib.support import get_realm_support_url\n \"support_url\": get_support_url(user.realm),\n \"support_url\": get_realm_support_url(user.realm),\n from corporate.lib.support import get_support_url\n from corporate.lib.support import get_realm_support_url\n support_url = get_support_url(realm)\n support_url = get_realm_support_url(realm)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/906e667a70b38f8f02abc7138e28fae8395926e4", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10, 11 ] }, { "input": " \"support_url\": get_support_url(user.realm),\n \"support_url\": get_realm_support_url(user.realm),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/906e667a70b38f8f02abc7138e28fae8395926e4", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 10, 11, 7 ] }, { "input": " from corporate.lib.support import get_support_url\n from corporate.lib.support import get_realm_support_url\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/906e667a70b38f8f02abc7138e28fae8395926e4", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9, 11, 7 ] }, { "input": " support_url = get_support_url(realm)\n support_url = get_realm_support_url(realm)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/906e667a70b38f8f02abc7138e28fae8395926e4", "target_edit_idx": 11, "propagatable_edit_idx": [ 8, 9, 10, 7 ] }, { "input": "def remote_server_billing_entry(\ndef remote_realm_billing_entry(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/c23339f2957da4404cfaeedf28ff89c9a2f14ae7", "target_edit_idx": 3, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " + reverse(remote_server_billing_finalize_login, args=[signed_identity_dict])\n + reverse(remote_realm_billing_finalize_login, args=[signed_identity_dict])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/c23339f2957da4404cfaeedf28ff89c9a2f14ae7", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "def remote_server_billing_finalize_login(\ndef remote_realm_billing_finalize_login(\n + reverse(remote_server_billing_finalize_login, args=[signed_identity_dict])\n + reverse(remote_realm_billing_finalize_login, args=[signed_identity_dict])\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/c23339f2957da4404cfaeedf28ff89c9a2f14ae7", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "from corporate.views.remote_billing_page import remote_server_billing_entry\nfrom corporate.views.remote_billing_page import remote_realm_billing_entry\ndef remote_server_billing_entry(\ndef remote_realm_billing_entry(\nbilling_patterns = [remote_server_path(\"remotes/server/billing\", POST=remote_server_billing_entry)]\nbilling_patterns = [remote_server_path(\"remotes/server/billing\", POST=remote_realm_billing_entry)]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/c23339f2957da4404cfaeedf28ff89c9a2f14ae7", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 7 ] }, { "input": "billing_patterns = [remote_server_path(\"remotes/server/billing\", POST=remote_server_billing_entry)]\nbilling_patterns = [remote_server_path(\"remotes/server/billing\", POST=remote_realm_billing_entry)]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/c23339f2957da4404cfaeedf28ff89c9a2f14ae7", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 6 ] }, { "input": "def remote_billing_plans_realm(request: HttpRequest, *, realm_uuid: PathOnly[str]) -> HttpResponse:\ndef remote_realm_plans_page(request: HttpRequest, *, realm_uuid: PathOnly[str]) -> HttpResponse:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/c822e953be0213ac9aebd237f1b61770ef2befc2", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "def remote_billing_page_realm(request: HttpRequest, *, realm_uuid: PathOnly[str]) -> HttpResponse:\ndef remote_realm_billing_page(request: HttpRequest, *, realm_uuid: PathOnly[str]) -> HttpResponse:\n Once implemented, this function, shared between remote_billing_page_realm\n and remote_billing_page_server, will return a Billing page, adjusted depending\n Once implemented, this function, shared between remote_realm_billing_page\n and remote_server_billing_page, will return a Billing page, adjusted depending\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/c822e953be0213ac9aebd237f1b61770ef2befc2", "target_edit_idx": 10, "propagatable_edit_idx": [ 8 ] }, { "input": " return HttpResponseRedirect(reverse(\"remote_billing_page_realm\"))\n return HttpResponseRedirect(reverse(\"remote_realm_billing_page\"))\n return HttpResponseRedirect(reverse(\"remote_billing_page_server\"))\n return HttpResponseRedirect(reverse(\"remote_server_billing_page\"))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/c822e953be0213ac9aebd237f1b61770ef2befc2", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": " def create_stripe_update_card_for_realm_upgrade_session(\n def get_card_update_session_data_for_upgrade(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/222077804b8c18da1589cfa3b1601d9744c1ad55", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 12 ] }, { "input": " metadata = {\n \"type\": \"card_update\",\n \"user_id\": user.id,\n }\n\n stripe_session = billing_session.create_stripe_update_card_for_realm_upgrade_session(\n metadata, Session.CARD_UPDATE_FROM_UPGRADE_PAGE, manual_license_management\n session_data = billing_session.get_card_update_session_data_for_upgrade(\n manual_license_management\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/zulip/zulip/commit/222077804b8c18da1589cfa3b1601d9744c1ad55", "target_edit_idx": 10, "propagatable_edit_idx": [ 1, 12 ] }, { "input": " data={\n \"stripe_session_url\": stripe_session.url,\n \"stripe_session_id\": stripe_session.id,\n },\n data=session_data,\n data={\n \"stripe_session_url\": stripe_session.url,\n \"stripe_session_id\": stripe_session.id,\n },\n data=session_data,\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/222077804b8c18da1589cfa3b1601d9744c1ad55", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": " metadata = {\n \"type\": \"card_update\",\n # TODO: Add user identity metadata from the remote realm identity\n # \"user_id\": user.id,\n }\n stripe_session = billing_session.create_stripe_update_card_for_realm_upgrade_session(\n metadata, Session.CARD_UPDATE_FROM_UPGRADE_PAGE, manual_license_management\n session_data = billing_session.get_card_update_session_data_for_upgrade(\n manual_license_management\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/zulip/zulip/commit/222077804b8c18da1589cfa3b1601d9744c1ad55", "target_edit_idx": 12, "propagatable_edit_idx": [ 1, 10 ] }, { "input": " message_lists.current.select_id(message_id);\n message_lists.current.select_id(message.id);\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/zulip/zulip/commit/72d46c71fb9cffa52ff921ff6b7494006bff3987", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " from corporate.views.upgrade import initial_upgrade\n from corporate.views.upgrade import upgrade_page\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/f006be0cdf5d68dc6f074d58dbe96d627386c240", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": " return HttpResponseRedirect(reverse(initial_upgrade))\n return HttpResponseRedirect(reverse(upgrade_page))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/f006be0cdf5d68dc6f074d58dbe96d627386c240", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5, 6, 7 ] }, { "input": "def initial_upgrade(\ndef upgrade_page(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/f006be0cdf5d68dc6f074d58dbe96d627386c240", "target_edit_idx": 7, "propagatable_edit_idx": [ 3, 4, 5, 6 ] }, { "input": " get_raw_user_data,\n get_users_for_api,\n get_raw_user_data,\n get_users_for_api,\n", "class": "clone", "binary_label": 1, "regression_label": 0.03529411764705882, "commit_url": "https://github.com/zulip/zulip/commit/deb8431a47c5e96f1fdc0fedc73b2fc467267d4b", "target_edit_idx": 0, "propagatable_edit_idx": [ 10 ] }, { "input": " state[\"raw_users\"] = get_raw_user_data(\n state[\"raw_users\"] = get_users_for_api(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/deb8431a47c5e96f1fdc0fedc73b2fc467267d4b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 7, 8, 9, 11, 12 ] }, { "input": "def get_raw_user_data(\ndef get_users_for_api(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/deb8431a47c5e96f1fdc0fedc73b2fc467267d4b", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 5, 7, 8, 9, 11, 12 ] }, { "input": "from zerver.lib.users import get_all_api_keys, get_api_key, get_raw_user_data\nfrom zerver.lib.users import get_all_api_keys, get_api_key, get_users_for_api\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/deb8431a47c5e96f1fdc0fedc73b2fc467267d4b", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 5, 7, 8, 9, 11, 12 ] }, { "input": " self.raw_user_data = get_raw_user_data(\n self.raw_user_data = get_users_for_api(\n state[\"raw_users\"] = get_raw_user_data(\n state[\"raw_users\"] = get_users_for_api(\ndef get_raw_user_data(\ndef get_users_for_api(\nfrom zerver.lib.users import get_all_api_keys, get_api_key, get_raw_user_data\nfrom zerver.lib.users import get_all_api_keys, get_api_key, get_users_for_api\nfrom zerver.lib.users import get_api_key, get_raw_user_data\nfrom zerver.lib.users import get_api_key, get_users_for_api\n result = get_raw_user_data(\n result = get_users_for_api(\nfrom zerver.lib.users import get_api_key, get_raw_user_data, is_2fa_verified\nfrom zerver.lib.users import get_api_key, get_users_for_api, is_2fa_verified\n members = get_raw_user_data(\n members = get_users_for_api(\n members = get_raw_user_data(\n members = get_users_for_api(\n raw_user_data = get_raw_user_data(\n raw_user_data = get_users_for_api(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/deb8431a47c5e96f1fdc0fedc73b2fc467267d4b", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5, 7, 8, 9, 11, 12 ] }, { "input": "from zerver.lib.users import get_api_key, get_raw_user_data\nfrom zerver.lib.users import get_api_key, get_users_for_api\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/deb8431a47c5e96f1fdc0fedc73b2fc467267d4b", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 4, 7, 8, 9, 11, 12 ] }, { "input": " result = get_raw_user_data(\n result = get_users_for_api(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/deb8431a47c5e96f1fdc0fedc73b2fc467267d4b", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 8, 9, 11, 12 ] }, { "input": "from zerver.lib.users import get_api_key, get_raw_user_data, is_2fa_verified\nfrom zerver.lib.users import get_api_key, get_users_for_api, is_2fa_verified\n state[\"raw_users\"] = get_raw_user_data(\n state[\"raw_users\"] = get_users_for_api(\ndef get_raw_user_data(\ndef get_users_for_api(\nfrom zerver.lib.users import get_all_api_keys, get_api_key, get_raw_user_data\nfrom zerver.lib.users import get_all_api_keys, get_api_key, get_users_for_api\n self.raw_user_data = get_raw_user_data(\n self.raw_user_data = get_users_for_api(\nfrom zerver.lib.users import get_api_key, get_raw_user_data\nfrom zerver.lib.users import get_api_key, get_users_for_api\n result = get_raw_user_data(\n result = get_users_for_api(\n members = get_raw_user_data(\n members = get_users_for_api(\n members = get_raw_user_data(\n members = get_users_for_api(\n raw_user_data = get_raw_user_data(\n raw_user_data = get_users_for_api(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/deb8431a47c5e96f1fdc0fedc73b2fc467267d4b", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 7, 9, 11, 12 ] }, { "input": " members = get_raw_user_data(\n members = get_users_for_api(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/deb8431a47c5e96f1fdc0fedc73b2fc467267d4b", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 7, 8, 11, 12 ] }, { "input": " raw_user_data = get_raw_user_data(\n raw_user_data = get_users_for_api(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/deb8431a47c5e96f1fdc0fedc73b2fc467267d4b", "target_edit_idx": 12, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 7, 8, 9, 11 ] }, { "input": " for setting_name, permissions_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.items():\n group_name = permissions_configuration.default_group_name\n for setting_name, permission_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.items():\n group_name = permission_configuration.default_group_name\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zulip/zulip/commit/08d41f9eb36ddca68badc662bff636e56457b073", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " for permissions_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():\n setattr(realm, permissions_configuration.id_field_name, -1)\n for permission_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():\n setattr(realm, permission_configuration.id_field_name, -1)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zulip/zulip/commit/08d41f9eb36ddca68badc662bff636e56457b073", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " permissions_configuration,\n permission_configuration,\n permissions_configuration,\n permission_configuration,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/08d41f9eb36ddca68badc662bff636e56457b073", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " state[\"realm_\" + setting_name] = getattr(realm, permissions_configuration.id_field_name)\n state[\"realm_\" + setting_name] = getattr(realm, permission_configuration.id_field_name)\n for setting_name, permissions_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.items():\n group_name = permissions_configuration.default_group_name\n for setting_name, permission_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.items():\n group_name = permission_configuration.default_group_name\n for permissions_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():\n setattr(realm, permissions_configuration.id_field_name, -1)\n for permission_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():\n setattr(realm, permission_configuration.id_field_name, -1)\n for permissions_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():\n setattr(realm, permissions_configuration.id_field_name, -1)\n for permission_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():\n setattr(realm, permission_configuration.id_field_name, -1)\n for permissions_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():\n setattr(realm, permissions_configuration.id_field_name, -1)\n for permission_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():\n setattr(realm, permission_configuration.id_field_name, -1)\n getattr(realm, setting_name).name, permissions_configuration.default_group_name\n getattr(realm, setting_name).name, permission_configuration.default_group_name\n for permissions_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():\n if k == permissions_configuration.id_field_name:\n for permission_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():\n if k == permission_configuration.id_field_name:\n for setting_name, permissions_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.items():\n setting_group_id_name = permissions_configuration.id_field_name\n for setting_name, permission_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.items():\n setting_group_id_name = permission_configuration.id_field_name\n require_system_group=permissions_configuration.require_system_group,\n allow_internet_group=permissions_configuration.allow_internet_group,\n allow_owners_group=permissions_configuration.allow_owners_group,\n allow_nobody_group=permissions_configuration.allow_nobody_group,\n allow_everyone_group=permissions_configuration.allow_everyone_group,\n require_system_group=permission_configuration.require_system_group,\n allow_internet_group=permission_configuration.allow_internet_group,\n allow_owners_group=permission_configuration.allow_owners_group,\n allow_nobody_group=permission_configuration.allow_nobody_group,\n allow_everyone_group=permission_configuration.allow_everyone_group,\n for setting_name, permissions_configuration in Stream.stream_permission_group_settings.items():\n for setting_name, permission_configuration in Stream.stream_permission_group_settings.items():\n setting_group_id_name = permissions_configuration.id_field_name\n setting_group_id_name = permission_configuration.id_field_name\n require_system_group=permissions_configuration.require_system_group,\n allow_internet_group=permissions_configuration.allow_internet_group,\n allow_owners_group=permissions_configuration.allow_owners_group,\n allow_nobody_group=permissions_configuration.allow_nobody_group,\n allow_everyone_group=permissions_configuration.allow_everyone_group,\n require_system_group=permission_configuration.require_system_group,\n allow_internet_group=permission_configuration.allow_internet_group,\n allow_owners_group=permission_configuration.allow_owners_group,\n allow_nobody_group=permission_configuration.allow_nobody_group,\n allow_everyone_group=permission_configuration.allow_everyone_group,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/08d41f9eb36ddca68badc662bff636e56457b073", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 4, 5, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " for permissions_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():\n if k == permissions_configuration.id_field_name:\n for permission_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():\n if k == permission_configuration.id_field_name:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/zulip/zulip/commit/08d41f9eb36ddca68badc662bff636e56457b073", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 7, 9, 10, 11, 12, 13 ] }, { "input": " require_system_group=permissions_configuration.require_system_group,\n allow_internet_group=permissions_configuration.allow_internet_group,\n allow_owners_group=permissions_configuration.allow_owners_group,\n allow_nobody_group=permissions_configuration.allow_nobody_group,\n allow_everyone_group=permissions_configuration.allow_everyone_group,\n require_system_group=permission_configuration.require_system_group,\n allow_internet_group=permission_configuration.allow_internet_group,\n allow_owners_group=permission_configuration.allow_owners_group,\n allow_nobody_group=permission_configuration.allow_nobody_group,\n allow_everyone_group=permission_configuration.allow_everyone_group,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/08d41f9eb36ddca68badc662bff636e56457b073", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 7, 8, 9, 11, 12, 13 ] }, { "input": " setting_group_id_name = permissions_configuration.id_field_name\n setting_group_id_name = permission_configuration.id_field_name\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/08d41f9eb36ddca68badc662bff636e56457b073", "target_edit_idx": 12, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 7, 8, 9, 10, 11, 13 ] }, { "input": " with self.assert_database_query_count(8):\n with self.assert_database_query_count(7):\n with self.assert_database_query_count(6):\n with self.assert_database_query_count(5):\n with self.assert_database_query_count(7):\n with self.assert_database_query_count(6):\n with self.assert_database_query_count(6):\n with self.assert_database_query_count(5):\n with self.assert_database_query_count(6):\n with self.assert_database_query_count(5):\n with self.assert_database_query_count(4):\n with self.assert_database_query_count(3):\n with self.assert_database_query_count(6):\n with self.assert_database_query_count(5):\n with self.assert_database_query_count(10):\n with self.assert_database_query_count(9):\n", "class": "clone", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/zulip/zulip/commit/325ff11ecfc888a5faddccbafdde4b5ef16dd0dd", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7, 8, 9, 10, 11, 12 ] }, { "input": "from zerver.lib.user_topics import build_topic_mute_checker, topic_has_visibility_policy\nfrom zerver.lib.user_topics import build_get_topic_visibility_policy, topic_has_visibility_policy\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/faa98317bc2ad025f2df2dd9c73c456b1a460fbe", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " topic_mute_checker = build_topic_mute_checker(user_profile)\n get_topic_visibility_policy = build_get_topic_visibility_policy(user_profile)\nfrom zerver.lib.user_topics import build_topic_mute_checker, topic_has_visibility_policy\nfrom zerver.lib.user_topics import build_get_topic_visibility_policy, topic_has_visibility_policy\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/faa98317bc2ad025f2df2dd9c73c456b1a460fbe", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " def is_muted(recipient_id: int, topic: str) -> bool:\n return (recipient_id, topic.lower()) in tups\n def get_topic_visibility_policy(recipient_id: int, topic: str) -> int:\n return topic_to_visiblity_policy[(recipient_id, topic.lower())]\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/faa98317bc2ad025f2df2dd9c73c456b1a460fbe", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " return is_muted\n return get_topic_visibility_policy\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/faa98317bc2ad025f2df2dd9c73c456b1a460fbe", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": " def teaser_data(self, user: UserProfile, stream_map: Dict[int, Stream]) -> Dict[str, Any]:\n def teaser_data(self, user: UserProfile, stream_id_map: Dict[int, Stream]) -> Dict[str, Any]:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/f8a9779b5475a8cc06dbd372197b8790ec14447a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5, 6 ] }, { "input": " stream_map=stream_map,\n stream_id_map=stream_id_map,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/f8a9779b5475a8cc06dbd372197b8790ec14447a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 3, 4, 5, 6 ] }, { "input": "def get_slim_stream_map(stream_ids: Set[int]) -> Dict[int, Stream]:\n # This can be passed to build_message_list.\ndef get_slim_stream_id_map(stream_ids: Set[int]) -> Dict[int, Stream]:\n # \"slim\" because it only fetches the names of the stream objects,\n # suitable for passing into build_message_list.\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/f8a9779b5475a8cc06dbd372197b8790ec14447a", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " stream_map = get_slim_stream_map(all_stream_ids)\n stream_id_map = get_slim_stream_id_map(all_stream_ids)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/f8a9779b5475a8cc06dbd372197b8790ec14447a", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6 ] }, { "input": " hot_topic.teaser_data(user, stream_map) for hot_topic in hot_topics\n hot_topic.teaser_data(user, stream_id_map) for hot_topic in hot_topics\n def teaser_data(self, user: UserProfile, stream_map: Dict[int, Stream]) -> Dict[str, Any]:\n def teaser_data(self, user: UserProfile, stream_id_map: Dict[int, Stream]) -> Dict[str, Any]:\n stream_map=stream_map,\n stream_id_map=stream_id_map,\n stream_map = get_slim_stream_map(all_stream_ids)\n stream_id_map = get_slim_stream_id_map(all_stream_ids)\n stream_map: Dict[int, Stream], # only needs id, name\n stream_id_map: Dict[int, Stream], # only needs id, name\n stream = stream_map.get(stream_id, None)\n stream = stream_id_map.get(stream_id, None)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/f8a9779b5475a8cc06dbd372197b8790ec14447a", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3, 5, 6 ] }, { "input": " stream_map: Dict[int, Stream], # only needs id, name\n stream_id_map: Dict[int, Stream], # only needs id, name\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/f8a9779b5475a8cc06dbd372197b8790ec14447a", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 3, 4, 6 ] }, { "input": " stream = stream_map.get(stream_id, None)\n stream = stream_id_map.get(stream_id, None)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/f8a9779b5475a8cc06dbd372197b8790ec14447a", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 3, 4, 5 ] }, { "input": "def check_delete_user_group(\n user_group_id: int, user_profile: UserProfile, *, acting_user: Optional[UserProfile]\n) -> None:\n user_group = access_user_group_by_id(user_group_id, user_profile, for_read=False)\ndef check_delete_user_group(user_group_id: int, *, acting_user: UserProfile) -> None:\n user_group = access_user_group_by_id(user_group_id, acting_user, for_read=False)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/006b2acd5dc94cec65efd84e125bcb6e4970436f", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " lambda: check_delete_user_group(backend.id, othello, acting_user=None)\n lambda: check_delete_user_group(backend.id, acting_user=othello)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/006b2acd5dc94cec65efd84e125bcb6e4970436f", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " check_delete_user_group(user_group_id, user_profile, acting_user=user_profile)\n check_delete_user_group(user_group_id, acting_user=user_profile)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/006b2acd5dc94cec65efd84e125bcb6e4970436f", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " check_supported_events_narrow_filter(modern_narrow)\n check_narrow_for_events(modern_narrow)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/7cb4c0bdfef66f9413a1b19c02e115fa2388acc8", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "def check_supported_events_narrow_filter(narrow: Collection[NarrowTerm]) -> None:\ndef check_narrow_for_events(narrow: Collection[NarrowTerm]) -> None:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/7cb4c0bdfef66f9413a1b19c02e115fa2388acc8", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " check_supported_events_narrow_filter(narrow)\n check_narrow_for_events(narrow)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/7cb4c0bdfef66f9413a1b19c02e115fa2388acc8", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "class RawUnreadPrivateMessageDict(TypedDict):\nclass RawUnreadDirectMessageDict(TypedDict):\n pm_dict: Dict[int, RawUnreadPrivateMessageDict]\n pm_dict: Dict[int, RawUnreadDirectMessageDict]\n pm_dict: Dict[int, RawUnreadPrivateMessageDict] = {}\n pm_dict: Dict[int, RawUnreadDirectMessageDict] = {}\n *, input_dict: Dict[int, RawUnreadPrivateMessageDict]\n) -> List[UnreadPrivateMessageInfo]:\n lookup_dict: Dict[int, UnreadPrivateMessageInfo] = {}\n *, input_dict: Dict[int, RawUnreadDirectMessageDict]\n) -> List[UnreadDirectMessageInfo]:\n lookup_dict: Dict[int, UnreadDirectMessageInfo] = {}\n state[\"pm_dict\"][message_id] = RawUnreadPrivateMessageDict(\n state[\"pm_dict\"][message_id] = RawUnreadDirectMessageDict(\n state[\"pm_dict\"][message_id] = RawUnreadPrivateMessageDict(\n state[\"pm_dict\"][message_id] = RawUnreadDirectMessageDict(\n state[\"pm_dict\"][message_id] = RawUnreadPrivateMessageDict(\n state[\"pm_dict\"][message_id] = RawUnreadDirectMessageDict(\n message_id: RawUnreadPrivateMessageDict(other_user_id=user.id),\n message_id: RawUnreadDirectMessageDict(other_user_id=user.id),\n {message_id: RawUnreadPrivateMessageDict(other_user_id=user.id)},\n {message_id: RawUnreadDirectMessageDict(other_user_id=user.id)},\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/73fd729c4b8d54be55f8811375b78a6c1d529412", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4, 5, 7, 8, 9, 12, 13 ] }, { "input": " pm_dict: Dict[int, RawUnreadPrivateMessageDict]\n pm_dict: Dict[int, RawUnreadDirectMessageDict]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/73fd729c4b8d54be55f8811375b78a6c1d529412", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4, 5, 7, 8, 9, 12, 13 ] }, { "input": "class UnreadPrivateMessageInfo(TypedDict):\nclass UnreadDirectMessageInfo(TypedDict):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/73fd729c4b8d54be55f8811375b78a6c1d529412", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 6 ] }, { "input": " pms: List[UnreadPrivateMessageInfo]\n pms: List[UnreadDirectMessageInfo]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/73fd729c4b8d54be55f8811375b78a6c1d529412", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 6 ] }, { "input": " *, input_dict: Dict[int, RawUnreadPrivateMessageDict]\n) -> List[UnreadPrivateMessageInfo]:\n lookup_dict: Dict[int, UnreadPrivateMessageInfo] = {}\n *, input_dict: Dict[int, RawUnreadDirectMessageDict]\n) -> List[UnreadDirectMessageInfo]:\n lookup_dict: Dict[int, UnreadDirectMessageInfo] = {}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/73fd729c4b8d54be55f8811375b78a6c1d529412", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 4, 7, 8, 9, 12, 13 ] }, { "input": " obj = UnreadPrivateMessageInfo(\n obj = UnreadDirectMessageInfo(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/73fd729c4b8d54be55f8811375b78a6c1d529412", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " state[\"pm_dict\"][message_id] = RawUnreadPrivateMessageDict(\n state[\"pm_dict\"][message_id] = RawUnreadDirectMessageDict(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/73fd729c4b8d54be55f8811375b78a6c1d529412", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 4, 5, 7, 9, 12, 13 ] }, { "input": ") -> List[Union[DirectScheduledMessageAPI, StreamScheduledMessageAPI]]:\n) -> List[Union[APIScheduledDirectMessageDict, APIScheduledStreamMessageDict]]:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/02fafb03766a7f903dd2fa2baa9cd64b3204817d", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5, 6, 7, 8 ] }, { "input": "class StreamScheduledMessageAPI(TypedDict):\nclass APIScheduledStreamMessageDict(TypedDict):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/02fafb03766a7f903dd2fa2baa9cd64b3204817d", "target_edit_idx": 4, "propagatable_edit_idx": [ 8, 2, 6 ] }, { "input": "class DirectScheduledMessageAPI(TypedDict):\nclass APIScheduledDirectMessageDict(TypedDict):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/02fafb03766a7f903dd2fa2baa9cd64b3204817d", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 6, 7 ] }, { "input": " def to_dict(self) -> Union[StreamScheduledMessageAPI, DirectScheduledMessageAPI]:\n def to_dict(self) -> Union[APIScheduledStreamMessageDict, APIScheduledDirectMessageDict]:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/02fafb03766a7f903dd2fa2baa9cd64b3204817d", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 4, 5, 7, 8 ] }, { "input": " return DirectScheduledMessageAPI(\n return APIScheduledDirectMessageDict(\n) -> List[Union[DirectScheduledMessageAPI, StreamScheduledMessageAPI]]:\n) -> List[Union[APIScheduledDirectMessageDict, APIScheduledStreamMessageDict]]:\nclass DirectScheduledMessageAPI(TypedDict):\nclass APIScheduledDirectMessageDict(TypedDict):\n def to_dict(self) -> Union[StreamScheduledMessageAPI, DirectScheduledMessageAPI]:\n def to_dict(self) -> Union[APIScheduledStreamMessageDict, APIScheduledDirectMessageDict]:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/02fafb03766a7f903dd2fa2baa9cd64b3204817d", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 5, 6 ] }, { "input": " return StreamScheduledMessageAPI(\n return APIScheduledStreamMessageDict(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/02fafb03766a7f903dd2fa2baa9cd64b3204817d", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 4, 6 ] }, { "input": " base_url = f\"{realm.uri}/#narrow/pm-with/\"\n base_url = f\"{realm.uri}/#narrow/dm/\"\n base_url = f\"{realm.uri}/#narrow/pm-with/\"\n base_url = f\"{realm.uri}/#narrow/dm/\"\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/243216cb60326980a0e36a8a5b2a6ac92582bfc4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "from zerver.lib.upload import upload_message_image_from_request\nfrom zerver.lib.upload import upload_message_attachment_from_request\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/04e76216684663dbad6b4f023ae0624be715e824", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " upload_message_image_from_request(UploadedFile(fp), shylock, file_size)\n upload_message_attachment_from_request(UploadedFile(fp), shylock, file_size)\nfrom zerver.lib.upload import upload_message_image_from_request\nfrom zerver.lib.upload import upload_message_attachment_from_request\ndef upload_message_image_from_request(\ndef upload_message_attachment_from_request(\n uri = upload_message_image_from_request(user_file, user_profile, file_size)\n uri = upload_message_attachment_from_request(user_file, user_profile, file_size)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/04e76216684663dbad6b4f023ae0624be715e824", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": "def upload_message_image_from_request(\ndef upload_message_attachment_from_request(\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/04e76216684663dbad6b4f023ae0624be715e824", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": " uri = upload_message_image_from_request(user_file, user_profile, file_size)\n uri = upload_message_attachment_from_request(user_file, user_profile, file_size)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/04e76216684663dbad6b4f023ae0624be715e824", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " await common.check_form_contents(page, \"#send_message_form\", {\n stream_message_recipient_stream: \"\",\n stream_message_recipient_topic: \"\",\n await common.check_compose_state(page, {\n stream: \"\",\n topic: \"\",\n await common.check_form_contents(page, \"#send_message_form\", {\n stream_message_recipient_stream: \"Verona\",\n stream_message_recipient_topic: \"Reply test\",\n await common.check_compose_state(page, {\n stream: \"Verona\",\n topic: \"Reply test\",\n await common.check_form_contents(page, \"#send_message_form\", {\n stream_message_recipient_stream: \"Verona\",\n stream_message_recipient_topic: \"Reply test\",\n await common.check_compose_state(page, {\n stream: \"Verona\",\n topic: \"Reply test\",\n await common.check_form_contents(page, \"form#send_message_form\", {\n stream_message_recipient_stream: \"Denmark\",\n stream_message_recipient_topic: \"tests\",\n await common.check_compose_state(page, {\n stream: \"Denmark\",\n topic: \"tests\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/zulip/zulip/commit/56c9b4f8c1c8ef028e65be6d9ea98ad19e2690f9", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " \"translated HTML: You have no private messages with Example Bot yet.\",\n \"translated: You have no private messages with Example Bot yet.\",\n \"translated HTML: You have no private messages with Alice Smith yet.\",\n \"translated: You have no private messages with Alice Smith yet.\",\n \"translated HTML: You have no group private messages with Alice Smith yet.\",\n \"translated: You have no group private messages with Alice Smith yet.\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/024932a489b30fa83d7fbcf28b3e1645a3dd061f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " realm=realm, name=\"@role:fullmembers\", is_system_group=True\n realm=realm, name=UserGroup.FULL_MEMBERS_GROUP_NAME, is_system_group=True\n realm=realm, name=\"@role:fullmembers\", is_system_group=True\n realm=realm, name=UserGroup.FULL_MEMBERS_GROUP_NAME, is_system_group=True\n realm=iago.realm, name=\"@role:fullmembers\", is_system_group=True\n realm=iago.realm, name=UserGroup.FULL_MEMBERS_GROUP_NAME, is_system_group=True\n realm=realm, name=\"@role:fullmembers\", is_system_group=True\n realm=realm, name=UserGroup.FULL_MEMBERS_GROUP_NAME, is_system_group=True\n realm=realm, name=\"@role:fullmembers\", is_system_group=True\n realm=realm, name=UserGroup.FULL_MEMBERS_GROUP_NAME, is_system_group=True\n", "class": "clone", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/zulip/zulip/commit/31d639160ff66482a50ecbbe199cfaf0aa2e0457", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 10, 11, 7 ] }, { "input": " name=\"@role:fullmembers\",\n name=UserGroup.FULL_MEMBERS_GROUP_NAME,\n name=\"@role:fullmembers\",\n name=UserGroup.FULL_MEMBERS_GROUP_NAME,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/zulip/zulip/commit/31d639160ff66482a50ecbbe199cfaf0aa2e0457", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "def do_delete_user(user_profile: UserProfile) -> None:\ndef do_delete_user(user_profile: UserProfile, *, acting_user: Optional[UserProfile]) -> None:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/f446560607d5bcdbc9ca12114b8cc00c06f906ee", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " do_delete_user(user_profile)\n do_delete_user(user_profile, acting_user=None)\ndef do_delete_user(user_profile: UserProfile) -> None:\ndef do_delete_user(user_profile: UserProfile, *, acting_user: Optional[UserProfile]) -> None:\n do_delete_user(hamlet)\n do_delete_user(hamlet, acting_user=None)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/f446560607d5bcdbc9ca12114b8cc00c06f906ee", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4 ] }, { "input": "from zerver.lib.onboarding import send_initial_realm_messages\nfrom zerver.lib.onboarding import send_initial_realm_messages\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/6b00c748fd0e2e3da3c75b192f4c2d8c59c4a1af", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "def remove_members_from_user_group(user_group: UserGroup, user_profiles: List[UserProfile]) -> None:\ndef remove_members_from_user_group(user_group: UserGroup, user_profile_ids: List[int]) -> None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0009004952723998199, "commit_url": "https://github.com/zulip/zulip/commit/f31bb6754b240baa5348cc56ece53555c2483bdb", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " user_group_id=user_group.id, user_profile__in=user_profiles\n user_group_id=user_group.id, user_profile_id__in=user_profile_ids\ndef remove_members_from_user_group(user_group: UserGroup, user_profiles: List[UserProfile]) -> None:\ndef remove_members_from_user_group(user_group: UserGroup, user_profile_ids: List[int]) -> None:\n remove_members_from_user_group(user_group, user_profiles)\n user_profile_ids = [user.id for user in user_profiles]\n remove_members_from_user_group(user_group, user_profile_ids)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/f31bb6754b240baa5348cc56ece53555c2483bdb", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4 ] }, { "input": " remove_members_from_user_group(user_group, user_profiles)\n user_profile_ids = [user.id for user in user_profiles]\n remove_members_from_user_group(user_group, user_profile_ids)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zulip/zulip/commit/f31bb6754b240baa5348cc56ece53555c2483bdb", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "def bulk_add_members_to_user_group(user_group: UserGroup, user_profiles: List[UserProfile]) -> None:\ndef bulk_add_members_to_user_group(user_group: UserGroup, user_profile_ids: List[int]) -> None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0009000900090009, "commit_url": "https://github.com/zulip/zulip/commit/303fca2ce7694aa8c196349df3ac21066f41f99e", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " bulk_add_members_to_user_group(user_group, user_profiles)\n user_profile_ids = [user.id for user in user_profiles]\n bulk_add_members_to_user_group(user_group, user_profile_ids)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zulip/zulip/commit/303fca2ce7694aa8c196349df3ac21066f41f99e", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": "from zerver.lib.mention import MentionData, get_stream_name_info\nfrom zerver.lib.mention import MentionData, get_stream_name_map\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/4e551f8279901da39f668476123aeaf59f8b7520", "target_edit_idx": 0, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " def find_stream_by_name(self, name: str) -> Optional[Dict[str, Any]]:\n def find_stream_id(self, name: str) -> Optional[int]:\n def find_stream_by_name(self, name: str) -> Optional[Dict[str, Any]]:\n def find_stream_id(self, name: str) -> Optional[int]:\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/4e551f8279901da39f668476123aeaf59f8b7520", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " stream = db_data[\"stream_names\"].get(name)\n return stream\n stream_id = db_data[\"stream_names\"].get(name)\n return stream_id\n stream = self.find_stream_by_name(stream_name)\n if stream is None or topic_name is None:\n stream_id = self.find_stream_id(stream_name)\n if stream_id is None or topic_name is None:\n stream = self.find_stream_by_name(name)\n if stream is None:\n stream_id = self.find_stream_id(name)\n if stream_id is None:\n stream = db_data[\"stream_names\"].get(name)\n return stream\n stream_id = db_data[\"stream_names\"].get(name)\n return stream_id\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zulip/zulip/commit/4e551f8279901da39f668476123aeaf59f8b7520", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 3, 7 ] }, { "input": " stream = self.find_stream_by_name(name)\n if stream is None:\n stream_id = self.find_stream_id(name)\n if stream_id is None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/zulip/zulip/commit/4e551f8279901da39f668476123aeaf59f8b7520", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 2, 7 ] }, { "input": " stream = db_data[\"stream_names\"].get(name)\n return stream\n stream_id = db_data[\"stream_names\"].get(name)\n return stream_id\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zulip/zulip/commit/4e551f8279901da39f668476123aeaf59f8b7520", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 2, 3 ] }, { "input": " stream = self.find_stream_by_name(stream_name)\n if stream is None or topic_name is None:\n stream_id = self.find_stream_id(stream_name)\n if stream_id is None or topic_name is None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/zulip/zulip/commit/4e551f8279901da39f668476123aeaf59f8b7520", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 3, 7 ] }, { "input": " stream_name_info = get_stream_name_info(message_realm, stream_names)\n stream_name_info = get_stream_name_map(message_realm, stream_names)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/4e551f8279901da39f668476123aeaf59f8b7520", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 11 ] }, { "input": "def get_stream_name_info(realm: Realm, stream_names: Set[str]) -> Dict[str, FullNameInfo]:\ndef get_stream_name_map(realm: Realm, stream_names: Set[str]) -> Dict[str, int]:\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/zulip/zulip/commit/4e551f8279901da39f668476123aeaf59f8b7520", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 10 ] }, { "input": " [invoice] = stripe.Invoice.list(customer=customer.stripe_customer_id)\n stripe_customer_id = customer.stripe_customer_id\n assert stripe_customer_id is not None\n [invoice] = stripe.Invoice.list(customer=stripe_customer_id)\n [invoice, _] = stripe.Invoice.list(customer=customer.stripe_customer_id)\n stripe_customer_id = customer.stripe_customer_id\n assert stripe_customer_id is not None\n [invoice, _] = stripe.Invoice.list(customer=stripe_customer_id)\n [invoice, _, _] = stripe.Invoice.list(customer=customer.stripe_customer_id)\n stripe_customer_id = customer.stripe_customer_id\n assert stripe_customer_id is not None\n [invoice, _, _] = stripe.Invoice.list(customer=stripe_customer_id)\n\n [invoice0, invoice1] = stripe.Invoice.list(customer=plan.customer.stripe_customer_id)\n stripe_cutomer_id = plan.customer.stripe_customer_id\n assert stripe_cutomer_id is not None\n [invoice0, invoice1] = stripe.Invoice.list(customer=stripe_cutomer_id)\n", "class": "clone", "binary_label": 1, "regression_label": 0.1, "commit_url": "https://github.com/zulip/zulip/commit/de2678a3197921b0cd64c8d5c70de41aea82f18e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": " export_path = orjson.loads(audit_log_entry.extra_data)[\"export_path\"]\n extra_data = audit_log_entry.extra_data\n assert extra_data is not None\n export_path = orjson.loads(extra_data)[\"export_path\"]\n export_path = orjson.loads(audit_log_entry.extra_data).get(\"export_path\")\n extra_data = audit_log_entry.extra_data\n assert extra_data is not None\n export_path = orjson.loads(extra_data).get(\"export_path\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/de2678a3197921b0cd64c8d5c70de41aea82f18e", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": " export_data = orjson.loads(audit_log_entry.extra_data)\n extra_data = audit_log_entry.extra_data\n assert extra_data is not None\n export_data = orjson.loads(extra_data)\n export_data = orjson.loads(audit_log_entry.extra_data)\n extra_data = audit_log_entry.extra_data\n assert extra_data is not None\n export_data = orjson.loads(extra_data)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/de2678a3197921b0cd64c8d5c70de41aea82f18e", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": " request.realm = get_realm(subdomain)\n request_notes.realm = get_realm(subdomain)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/zulip/zulip/commit/8eb2c3ffdb993c5f6fc8e37d8b65b2b7ddd89ec3", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " request.realm = None\n return request.realm\n request_notes.realm = None\n request_notes.has_fetched_realm = True\n return request_notes.realm\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/zulip/zulip/commit/8eb2c3ffdb993c5f6fc8e37d8b65b2b7ddd89ec3", "target_edit_idx": 5, "propagatable_edit_idx": [ 4, 7 ] }, { "input": " request.realm = get_realm(subdomain)\n request_notes.realm = get_realm(subdomain)\n request.realm = get_realm(subdomain)\n request_notes.realm = get_realm(subdomain)\n request.realm = None\n return request.realm\n request_notes.realm = None\n request_notes.has_fetched_realm = True\n return request_notes.realm\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zulip/zulip/commit/8eb2c3ffdb993c5f6fc8e37d8b65b2b7ddd89ec3", "target_edit_idx": 7, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " stream = access_web_public_stream(stream_id, request.realm)\n realm = get_request_notes(request).realm\n assert realm is not None\n stream = access_web_public_stream(stream_id, realm)\n stream = access_web_public_stream(stream_id, request.realm)\n realm = get_request_notes(request).realm\n assert realm is not None\n stream = access_web_public_stream(stream_id, realm)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/8eb2c3ffdb993c5f6fc8e37d8b65b2b7ddd89ec3", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " def test_add_muted_user_valid_data(self) -> None:\n def _test_add_muted_user_valid_data(self, deactivate_user: bool = False) -> None:\n def test_remove_muted_user_valid_data(self) -> None:\n def _test_remove_muted_user_valid_data(self, deactivate_user: bool = False) -> None:\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/zulip/zulip/commit/d6711e3cd2767b197395640c97e0de3ff2e5db88", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " muted_user = access_user_by_id(user_profile, muted_user_id, allow_bots=False, for_admin=False)\n muted_user = access_user_by_id(\n user_profile, muted_user_id, allow_bots=False, allow_deactivated=True, for_admin=False\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.05263157894736842, "commit_url": "https://github.com/zulip/zulip/commit/d6711e3cd2767b197395640c97e0de3ff2e5db88", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "def get_muting_users(muted_user: UserProfile) -> Set[int]:\ndef get_muting_users(muted_user_id: int) -> Set[int]:\n cache_delete(get_muting_users_cache_key(mute_object.muted_user))\n cache_delete(get_muting_users_cache_key(mute_object.muted_user_id))\n muted_user=muted_user,\n muted_user_id=muted_user_id,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0009629272989889263, "commit_url": "https://github.com/zulip/zulip/commit/b7fcb0275c1c883888424c13afc4ef69fb463962", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " self.assertEqual(None, cache_get(get_muting_users_cache_key(cordelia)))\n self.assertEqual(set(), get_muting_users(cordelia))\n self.assertEqual(set(), cache_get(get_muting_users_cache_key(cordelia))[0])\n self.assertEqual(None, cache_get(get_muting_users_cache_key(cordelia.id)))\n self.assertEqual(set(), get_muting_users(cordelia.id))\n self.assertEqual(set(), cache_get(get_muting_users_cache_key(cordelia.id))[0])\n self.assertEqual(None, cache_get(get_muting_users_cache_key(cordelia)))\n self.assertEqual({hamlet.id}, get_muting_users(cordelia))\n self.assertEqual({hamlet.id}, cache_get(get_muting_users_cache_key(cordelia))[0])\n self.assertEqual(None, cache_get(get_muting_users_cache_key(cordelia.id)))\n self.assertEqual({hamlet.id}, get_muting_users(cordelia.id))\n self.assertEqual({hamlet.id}, cache_get(get_muting_users_cache_key(cordelia.id))[0])\n self.assertEqual(None, cache_get(get_muting_users_cache_key(cordelia)))\n self.assertEqual(set(), get_muting_users(cordelia))\n self.assertEqual(set(), cache_get(get_muting_users_cache_key(cordelia))[0])\n self.assertEqual(None, cache_get(get_muting_users_cache_key(cordelia.id)))\n self.assertEqual(set(), get_muting_users(cordelia.id))\n self.assertEqual(set(), cache_get(get_muting_users_cache_key(cordelia.id))[0])\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/b7fcb0275c1c883888424c13afc4ef69fb463962", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " has_mobile_devices=has_mobile_devices,\n has_mobile_devices=has_mobile_devices,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/e1c885aeb91ce4e76a815e443e1d7418f809dbc8", "target_edit_idx": 1, "propagatable_edit_idx": [ 8 ] }, { "input": " self.assert_length(queries, 41)\n self.assert_length(queries, 40)\n self.assert_length(queries, 38)\n self.assert_length(queries, 37)\n self.assert_length(queries2, 36)\n self.assert_length(queries2, 35)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/e1c885aeb91ce4e76a815e443e1d7418f809dbc8", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "def bulk_access_messages(user_profile: UserProfile, messages: Sequence[Message]) -> List[Message]:\ndef bulk_access_messages(\n user_profile: UserProfile, messages: Sequence[Message], *, stream: Optional[Stream] = None\n) -> List[Message]:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/zulip/zulip/commit/c6e170233554f154660d568ea61cade058e4c45c", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 7, 9 ] }, { "input": " filtered_messages = bulk_access_messages(later_subscribed_user, messages)\n self.assert_length(queries, 3)\n filtered_messages = bulk_access_messages(later_subscribed_user, messages, stream=stream)\n self.assert_length(queries, 1)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/zulip/zulip/commit/c6e170233554f154660d568ea61cade058e4c45c", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 4, 7, 9 ] }, { "input": " filtered_messages = bulk_access_messages(later_subscribed_user, messages)\n self.assert_length(queries, 4)\n filtered_messages = bulk_access_messages(later_subscribed_user, messages, stream=stream)\n self.assert_length(queries, 2)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/zulip/zulip/commit/c6e170233554f154660d568ea61cade058e4c45c", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4, 7, 9 ] }, { "input": " filtered_messages = bulk_access_messages(unsubscribed_user, messages)\n self.assert_length(queries, 7)\n filtered_messages = bulk_access_messages(unsubscribed_user, messages, stream=stream)\n self.assert_length(queries, 3)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/zulip/zulip/commit/c6e170233554f154660d568ea61cade058e4c45c", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3, 7, 9 ] }, { "input": " filtered_messages = bulk_access_messages(later_subscribed_user, messages)\n with queries_captured() as queries:\n filtered_messages = bulk_access_messages(later_subscribed_user, messages, stream=stream)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/zulip/zulip/commit/c6e170233554f154660d568ea61cade058e4c45c", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 2, 3, 4, 9 ] }, { "input": " filtered_messages = bulk_access_messages(unsubscribed_user, messages)\n with queries_captured() as queries:\n filtered_messages = bulk_access_messages(unsubscribed_user, messages, stream=stream)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/zulip/zulip/commit/c6e170233554f154660d568ea61cade058e4c45c", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 2, 3, 4, 7 ] }, { "input": " fraction_present: undefined,\n fraction_present: undefined,\n fraction_present: undefined,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/88856f58c5fa6be5c84afdc56461569875e108a3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "def do_unmute_user(user_profile: UserProfile, muted_user: UserProfile) -> None:\n remove_user_mute(user_profile, muted_user)\ndef do_unmute_user(mute_object: MutedUser) -> None:\n user_profile = mute_object.user_profile\n mute_object.delete()\n events = self.verify_action(lambda: do_unmute_user(self.user_profile, muted_user))\n mute_object = get_mute_object(self.user_profile, muted_user)\n assert mute_object is not None\n # This is a hack to silence mypy errors which result from it not taking\n # into account type restrictions for nested functions (here, `lambda`).\n # https://github.com/python/mypy/commit/8780d45507ab1efba33568744967674cce7184d1\n mute_object2 = mute_object\n\n events = self.verify_action(lambda: do_unmute_user(mute_object2))\n do_unmute_user(user_profile, muted_user)\n do_unmute_user(mute_object)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/152508e346cdf66fb707d9a62a846aa3034b15b4", "target_edit_idx": 2, "propagatable_edit_idx": [ 6, 14 ] }, { "input": " self.assertTrue(user_is_muted(hamlet, cordelia))\n self.assertIsNotNone(get_mute_object(hamlet, cordelia))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/152508e346cdf66fb707d9a62a846aa3034b15b4", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10 ] }, { "input": " self.assertFalse(user_is_muted(hamlet, cordelia))\n self.assertIsNone(get_mute_object(hamlet, cordelia))", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/152508e346cdf66fb707d9a62a846aa3034b15b4", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 10 ] }, { "input": "from zerver.lib.user_mutes import user_is_muted\nfrom zerver.lib.user_mutes import get_mute_object\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/152508e346cdf66fb707d9a62a846aa3034b15b4", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " if user_is_muted(user_profile, muted_user):\n if get_mute_object(user_profile, muted_user) is not None:\n if not user_is_muted(user_profile, muted_user):\n if mute_object is None:\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/152508e346cdf66fb707d9a62a846aa3034b15b4", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": " do_unmute_user(user_profile, muted_user)\n do_unmute_user(mute_object)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/zulip/zulip/commit/152508e346cdf66fb707d9a62a846aa3034b15b4", "target_edit_idx": 14, "propagatable_edit_idx": [ 2, 6 ] }, { "input": " if (!sub.should_display_subscription_button) {\n if (!stream_data.can_toggle_subscription(sub)) {\n if (sub.should_display_subscription_button) {\n if (stream_data.can_toggle_subscription(sub)) {\n if (!sub.should_display_subscription_button) {\n if (!stream_data.can_toggle_subscription(sub)) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/93471ed3e45ee8942b5e9f2f1604294fd1214b24", "target_edit_idx": 8, "propagatable_edit_idx": [ 10, 11 ] }, { "input": " notification_to: List[int] = REQ(\"to\", validator=check_list(check_int)),\n user_ids: List[int] = REQ(\"to\", validator=check_list(check_int)),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/08116a17b0dfec59b5eba7e97facb13fcad56309", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " check_send_typing_notification(user_profile, notification_to, operator)\n if len(user_ids) == 0:\n return json_error(_(\"Missing parameter: 'to' (recipient)\"))\n\n check_send_typing_notification(user_profile, user_ids, operator)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/08116a17b0dfec59b5eba7e97facb13fcad56309", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "def validate_choice_field_data(field_data: ProfileFieldData) -> Dict[str, Dict[str, str]]:\ndef validate_select_field_data(field_data: ProfileFieldData) -> Dict[str, Dict[str, str]]:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/98a6bdbd4ccdc2189af84cda0d4bc119666a28b5", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "def validate_choice_field(var_name: str, field_data: str, value: object) -> str:\ndef validate_select_field(var_name: str, field_data: str, value: object) -> str:\n (SELECT, ugettext_lazy(\"List of options\"), validate_choice_field, str, \"SELECT\"),\n (SELECT, ugettext_lazy(\"List of options\"), validate_select_field, str, \"SELECT\"),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/98a6bdbd4ccdc2189af84cda0d4bc119666a28b5", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " validate_choice_field,\n validate_select_field,\n validate_choice_field_data,\n validate_select_field_data,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/zulip/zulip/commit/98a6bdbd4ccdc2189af84cda0d4bc119666a28b5", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " (SELECT, ugettext_lazy(\"List of options\"), validate_choice_field, str, \"SELECT\"),\n (SELECT, ugettext_lazy(\"List of options\"), validate_select_field, str, \"SELECT\"),\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/98a6bdbd4ccdc2189af84cda0d4bc119666a28b5", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " validate_choice_field_data(field_data)\n validate_select_field_data(field_data)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/98a6bdbd4ccdc2189af84cda0d4bc119666a28b5", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " \"\"\"[A message](http://zulip.testserver/#narrow/stream/999-Verona/topic/Foo/near/) triggered an outgoing webhook.\n \"\"\"[A message](http://zulip.testserver/#narrow/stream/999-Verona/topic/Foo/near/) to your bot @_**Outgoing Webhook** triggered an outgoing webhook.\n \"\"\"[A message](http://zulip.testserver/#narrow/stream/999-Verona/topic/Foo/near/) triggered an outgoing webhook.\n \"\"\"[A message](http://zulip.testserver/#narrow/stream/999-Verona/topic/Foo/near/) to your bot @_**Outgoing Webhook** triggered an outgoing webhook.\n \"\"\"[A message](http://zulip.testserver/#narrow/stream/999-Verona/topic/Foo/near/) triggered an outgoing webhook.\n \"\"\"[A message](http://zulip.testserver/#narrow/stream/999-Verona/topic/Foo/near/) to your bot @_**Outgoing Webhook** triggered an outgoing webhook.\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/zulip/zulip/commit/5ec0860a2f64e4834dee040e4ae28861be335991", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": "from zerver.lib.hotspots import copy_hotpots\nfrom zerver.lib.hotspots import copy_hotspots\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/540cca595c5bbde4981d6dee4f5ce2c1b4c78ffc", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " copy_hotpots(source_profile, target_profile)\n copy_hotspots(source_profile, target_profile)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/540cca595c5bbde4981d6dee4f5ce2c1b4c78ffc", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "def copy_hotpots(source_profile: UserProfile, target_profile: UserProfile) -> None:\ndef copy_hotspots(source_profile: UserProfile, target_profile: UserProfile) -> None:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/540cca595c5bbde4981d6dee4f5ce2c1b4c78ffc", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "def get_hot_topics(topics: List[DigestTopic]) -> List[DigestTopic]:\ndef get_hot_topics(\n all_topics: List[DigestTopic],\n stream_ids: Set[int],\n) -> List[DigestTopic]:\n topics = [\n topic for topic in all_topics\n if topic.stream_id() in stream_ids\n ]\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/e2e0f06b2a5712ddfca5c20e9999d85dbfccd5fd", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " recent_topics = get_recent_topics(sorted(list(stream_ids)), cutoff_date)\n hot_topics = get_hot_topics(recent_topics)\n all_stream_ids |= stream_ids\n\n # Get all the recent topics for all the users. This does the heavy\n # lifting of making an expensive query to the Message table. Then\n # for each user, we filter to just the streams they care about.\n recent_topics = get_recent_topics(sorted(list(all_stream_ids)), cutoff_date)\n\n for user in users:\n stream_ids = stream_map[user.id]\n\n hot_topics = get_hot_topics(recent_topics, stream_ids)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/e2e0f06b2a5712ddfca5c20e9999d85dbfccd5fd", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": "def get_user_ids_for_streams(streams: Iterable[Stream]) -> Dict[int, List[int]]:\n stream_ids = [stream.id for stream in streams]\n\ndef get_user_ids_for_streams(stream_ids: Set[int]) -> Dict[int, Set[int]]:\n subscriber_dict: Dict[int, List[int]],\n subscriber_dict: Dict[int, Set[int]],\n all_subscribers_by_stream: Dict[int, List[int]] = defaultdict(list)\n result: Dict[int, Set[int]] = defaultdict(set)\n all_subscribers_by_stream: Dict[int, List[int]],\n all_subscribers_by_stream: Dict[int, Set[int]],\n all_subscribers_by_stream: Dict[int, List[int]],\n all_subscribers_by_stream: Dict[int, Set[int]],\n all_subscribers_by_stream = get_user_ids_for_streams(streams=streams)\n stream_ids = {stream.id for stream in streams}\n all_subscribers_by_stream = get_user_ids_for_streams(stream_ids=stream_ids)\ndef get_active_subscriptions_for_stream_ids(stream_ids: List[int]) -> QuerySet:\ndef get_active_subscriptions_for_stream_ids(stream_ids: Set[int]) -> QuerySet:\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zulip/zulip/commit/b894597fa351bd32fa7337c4c6796a6feef36d8c", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3, 8, 9, 10, 12 ] }, { "input": " all_subscribers_by_stream: Dict[int, List[int]] = defaultdict(list)\n result: Dict[int, Set[int]] = defaultdict(set)\n subscriber_dict: Dict[int, List[int]],\n subscriber_dict: Dict[int, Set[int]],\ndef get_user_ids_for_streams(streams: Iterable[Stream]) -> Dict[int, List[int]]:\n stream_ids = [stream.id for stream in streams]\n\ndef get_user_ids_for_streams(stream_ids: Set[int]) -> Dict[int, Set[int]]:\n return all_subscribers_by_stream\n return result\n all_subscribers_by_stream: Dict[int, List[int]],\n all_subscribers_by_stream: Dict[int, Set[int]],\n all_subscribers_by_stream: Dict[int, List[int]],\n all_subscribers_by_stream: Dict[int, Set[int]],\ndef get_active_subscriptions_for_stream_ids(stream_ids: List[int]) -> QuerySet:\ndef get_active_subscriptions_for_stream_ids(stream_ids: Set[int]) -> QuerySet:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b894597fa351bd32fa7337c4c6796a6feef36d8c", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 5, 8, 9, 12 ] }, { "input": " return all_subscribers_by_stream\n return result\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b894597fa351bd32fa7337c4c6796a6feef36d8c", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " all_subscribers_by_stream = get_user_ids_for_streams(streams=streams)\n stream_ids = {stream.id for stream in streams}\n all_subscribers_by_stream = get_user_ids_for_streams(stream_ids=stream_ids)\ndef get_user_ids_for_streams(streams: Iterable[Stream]) -> Dict[int, List[int]]:\n stream_ids = [stream.id for stream in streams]\n\ndef get_user_ids_for_streams(stream_ids: Set[int]) -> Dict[int, Set[int]]:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b894597fa351bd32fa7337c4c6796a6feef36d8c", "target_edit_idx": 10, "propagatable_edit_idx": [ 2 ] }, { "input": " application = create_tornado_application(port)\n application = create_tornado_application()\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/4354386e69e03d132bda0f50ff9d2a800c98fa2d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " return create_tornado_application(9993)\n return create_tornado_application()\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/4354386e69e03d132bda0f50ff9d2a800c98fa2d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "def create_tornado_application(port: int) -> tornado.web.Application:\ndef create_tornado_application() -> tornado.web.Application:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/4354386e69e03d132bda0f50ff9d2a800c98fa2d", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " do_convert_data(\n mattermost_data_dir=mattermost_data_dir,\n output_dir=output_dir,\n masking_content=False,\n )\n with patch('builtins.print') as mock_print:\n do_convert_data(\n mattermost_data_dir=mattermost_data_dir,\n output_dir=output_dir,\n masking_content=False,\n )\n self.assertEqual(mock_print.mock_calls, [\n call('Generating data for', 'gryffindor'),\n call('Generating data for', 'slytherin')\n ])\n do_convert_data(\n mattermost_data_dir=mattermost_data_dir,\n output_dir=output_dir,\n masking_content=False,\n )\n with patch('builtins.print') as mock_print:\n do_convert_data(\n mattermost_data_dir=mattermost_data_dir,\n output_dir=output_dir,\n masking_content=False,\n )\n self.assertEqual(mock_print.mock_calls, [\n call('Generating data for', 'gryffindor'),\n ])\n do_convert_data(\n mattermost_data_dir=mattermost_data_dir,\n output_dir=output_dir,\n masking_content=True,\n )\n with patch('builtins.print') as mock_print:\n do_convert_data(\n mattermost_data_dir=mattermost_data_dir,\n output_dir=output_dir,\n masking_content=True,\n )\n self.assertEqual(mock_print.mock_calls, [\n call('Generating data for', 'gryffindor'),\n call('Generating data for', 'slytherin')\n ])\n do_convert_data(\n mattermost_data_dir=mattermost_data_dir,\n output_dir=output_dir,\n masking_content=True,\n )\n with patch('builtins.print') as mock_print:\n do_convert_data(\n mattermost_data_dir=mattermost_data_dir,\n output_dir=output_dir,\n masking_content=True,\n )\n self.assertEqual(mock_print.mock_calls, [\n call('Generating data for', 'gryffindor'),\n call('Generating data for', 'slytherin')\n ])\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/c65729511ada269359e6363383a305d5d7bafca3", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10, 11 ] }, { "input": " result = bulk_remove_subscriptions(user_profiles, [stream], self.get_client())\n result = bulk_remove_subscriptions(user_profiles, [stream], self.get_client(), acting_user=None)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0625, "commit_url": "https://github.com/zulip/zulip/commit/8807cddc905d10bed06b86c5bb128e1be9838c03", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " event_time__gte=now)\n event_time__gte=now, acting_user=acting_user, modified_user=user[0],\n modified_stream=stream[0])\n event_time__gte=now)\n event_time__gte=now, acting_user=acting_user, modified_user=user[0],\n modified_stream=stream[0])\n", "class": "clone", "binary_label": 1, "regression_label": 0.05263157894736842, "commit_url": "https://github.com/zulip/zulip/commit/8807cddc905d10bed06b86c5bb128e1be9838c03", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " bulk_remove_subscriptions(user, stream, get_client(\"website\"))\n bulk_remove_subscriptions(user, stream, get_client(\"website\"), acting_user=acting_user)\n result = bulk_remove_subscriptions(user_profiles, [stream], self.get_client())\n result = bulk_remove_subscriptions(user_profiles, [stream], self.get_client(), acting_user=None)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.0625, "commit_url": "https://github.com/zulip/zulip/commit/8807cddc905d10bed06b86c5bb128e1be9838c03", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": " $('#recent_topics_filter_buttons').removeClass('btn-recent-selected');\n $('#recent_topics_filter_buttons').removeClass('btn-recent-selected');\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/0aeadd2c863ff79531bee8a24a4849660c1245e5", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " if (unread.suppress_unread_counts) {\n return 0;\n }\n if (unread.suppress_unread_counts) {\n return;\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/0f238f29fb03fd4660ec378e5c48bc7654c36274", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " exports.enable();\n exports.enable();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/0f238f29fb03fd4660ec378e5c48bc7654c36274", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " def set_http_host(self, kwargs: Dict[str, Any]) -> None:\n def set_http_headers(self, kwargs: Dict[str, Any]) -> None:\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/27b267026e98b5c6ddf71ba12181fe26c0fc7f62", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " self.set_http_host(kwargs)\n self.set_http_headers(kwargs)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/27b267026e98b5c6ddf71ba12181fe26c0fc7f62", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " self.set_http_host(kwargs)\n self.set_http_headers(kwargs)\n def set_http_host(self, kwargs: Dict[str, Any]) -> None:\n def set_http_headers(self, kwargs: Dict[str, Any]) -> None:\n self.set_http_host(kwargs)\n self.set_http_headers(kwargs)\n self.set_http_host(kwargs)\n self.set_http_headers(kwargs)\n self.set_http_host(kwargs)\n self.set_http_headers(kwargs)\n self.set_http_host(kwargs)\n self.set_http_headers(kwargs)\n self.set_http_host(kwargs)\n self.set_http_headers(kwargs)\n self.set_http_host(kwargs)\n self.set_http_headers(kwargs)\n self.set_http_host(kwargs)\n self.set_http_headers(kwargs)\n self.set_http_host(kwargs)\n self.set_http_headers(kwargs)\n self.set_http_host(kwargs)\n self.set_http_headers(kwargs)\n self.set_http_host(kwargs)\n self.set_http_headers(kwargs)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/27b267026e98b5c6ddf71ba12181fe26c0fc7f62", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " m.assert_called_with(\"/login/saml/ : Bad idp param.\")\n m.assert_called_with(\"/login/saml/ : Bad idp param: KeyError: 'idp'.\")\n m.assert_called_with(\"/login/saml/ : Bad idp param.\")\n m.assert_called_with(\"/login/saml/ : Bad idp param: KeyError: 'bad_idp'.\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/bf0f1274fa2786d5a58c033142d1802d3819400b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "def get_raw_user_data(realm: Realm, user_profile: UserProfile, client_gravatar: bool,\ndef get_raw_user_data(realm: Realm, acting_user: UserProfile, client_gravatar: bool,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/79e5dd13742fa9bae25e177928ed1597b706c2c2", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " acting_user = user_profile,\n acting_user = acting_user,\ndef get_raw_user_data(realm: Realm, user_profile: UserProfile, client_gravatar: bool,\ndef get_raw_user_data(realm: Realm, acting_user: UserProfile, client_gravatar: bool,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/79e5dd13742fa9bae25e177928ed1597b706c2c2", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "from zerver.decorator import require_member_or_admin, require_user_group_edit_policy\nfrom zerver.decorator import require_member_or_admin, require_user_group_edit_permission\n@require_member_or_admin\n@require_user_group_edit_policy\n@require_user_group_edit_permission\n@require_member_or_admin\n@require_user_group_edit_policy\n@require_user_group_edit_permission\n@require_member_or_admin\n@require_user_group_edit_policy\n@require_user_group_edit_permission\n@require_member_or_admin\n@require_user_group_edit_policy\n@require_user_group_edit_permission\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/31558cb8b9770ab030ca04d99c170aaf39321e93", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": "@require_member_or_admin\n@require_user_group_edit_policy\n@require_user_group_edit_permission\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/31558cb8b9770ab030ca04d99c170aaf39321e93", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 5 ] }, { "input": " user_profile_email = self.user_profile.email,\n 'user_profile_email': user_profile.email,\n 'user_profile_email': user_profile.email,\n self.user_profile_email = user_profile_email\n user_profile_email=self.user_profile_email,\n user_profile_email = user_profile.email,\n user_profile_email = user_profile.email,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/993ed9c2b185f4462a1b1cad338d9b7439b8ffbc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4, 5, 12, 13 ] }, { "input": " (self.event_queue.id, self.user_profile_email,\n (self.event_queue.id, self.user_profile_id,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/993ed9c2b185f4462a1b1cad338d9b7439b8ffbc", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " logging.info(\"Disconnected handler for queue %s (%s/%s)\" % (queue_id, user_profile_email,\n logging.info(\"Disconnected handler for queue %s (%s/%s)\" % (queue_id, user_profile_id,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/993ed9c2b185f4462a1b1cad338d9b7439b8ffbc", "target_edit_idx": 10, "propagatable_edit_idx": [ 8 ] }, { "input": "def do_update_user_activity(user_profile: UserProfile,\n client: Client,\ndef do_update_user_activity(user_profile_id: int,\n client_id: int,\n user_profile = user_profile,\n client = client,\n user_profile_id = user_profile_id,\n client_id = client_id,\n do_update_user_activity(user_profile, client, query, log_time)\n do_update_user_activity(user_profile_id, client_id, query, log_time)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.0006480881399870382, "commit_url": "https://github.com/zulip/zulip/commit/5c960b3e0fcf41df1798eca82bd754ca2b5787be", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 4 ] }, { "input": " do_update_user_activity(user_profile, client, query, log_time)\n do_update_user_activity(user_profile_id, client_id, query, log_time)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/5c960b3e0fcf41df1798eca82bd754ca2b5787be", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " kwargs['HTTP_AUTHORIZATION'] = self.encode_credentials(identifier, kwargs.get('realm', 'zulip'))\n kwargs['HTTP_AUTHORIZATION'] = self.encode_credentials(identifier, kwargs.get('subdomain', 'zulip'))\n kwargs['HTTP_AUTHORIZATION'] = self.encode_credentials(identifier, kwargs.get('realm', 'zulip'))\n kwargs['HTTP_AUTHORIZATION'] = self.encode_credentials(identifier, kwargs.get('subdomain', 'zulip'))\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/11862e5ce005b10e31e1cb5a0e7d6a2727982ac6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " kwargs['HTTP_AUTHORIZATION'] = self.encode_credentials(identifier)\n kwargs['HTTP_AUTHORIZATION'] = self.encode_credentials(identifier, kwargs.get('subdomain', 'zulip'))\n kwargs['HTTP_AUTHORIZATION'] = self.encode_credentials(identifier)\n kwargs['HTTP_AUTHORIZATION'] = self.encode_credentials(identifier, kwargs.get('subdomain', 'zulip'))\n kwargs['HTTP_AUTHORIZATION'] = self.encode_credentials(identifier)\n kwargs['HTTP_AUTHORIZATION'] = self.encode_credentials(identifier, kwargs.get('subdomain', 'zulip'))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/11862e5ce005b10e31e1cb5a0e7d6a2727982ac6", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " kwargs['HTTP_AUTHORIZATION'] = self.encode_credentials(identifier)\n kwargs['HTTP_AUTHORIZATION'] = self.encode_credentials(identifier, kwargs.get('subdomain', 'zulip'))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/11862e5ce005b10e31e1cb5a0e7d6a2727982ac6", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " users = realm.get_admin_users()\n users = realm.get_admin_users_and_bots()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/1817f657ee97e452c79479cedd9a04256c691998", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4, 6, 8, 9, 10 ] }, { "input": " def get_admin_users(self) -> Sequence['UserProfile']:\n def get_admin_users_and_bots(self) -> Sequence['UserProfile']:\n \"\"\"Use this in contexts where we want administrative users as well as\n bots with administrator privileges, like send_event calls for\n notifications to all administrator users.\n \"\"\"\n realm_admin_ids = [user.id for user in stream.realm.get_admin_users()]\n realm_admin_ids = [user.id for user in stream.realm.get_admin_users_and_bots()]\n realm_admin_ids = [user.id for user in realm.get_admin_users()]\n realm_admin_ids = [user.id for user in realm.get_admin_users_and_bots()]\n users = realm.get_admin_users()\n users = realm.get_admin_users_and_bots()\n lambda r: {user.email for user in r.get_admin_users()}\n lambda r: {user.email for user in r.get_admin_users_and_bots()}\n admin_users = user_profile.realm.get_admin_users()\n admin_users = user_profile.realm.get_admin_users_and_bots()\n admin_users = user_profile.realm.get_admin_users()\n admin_users = user_profile.realm.get_admin_users_and_bots()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/1817f657ee97e452c79479cedd9a04256c691998", "target_edit_idx": 6, "propagatable_edit_idx": [ 3, 4, 5, 8, 9, 10 ] }, { "input": " lambda r: {user.email for user in r.get_admin_users()}\n lambda r: {user.email for user in r.get_admin_users_and_bots()}\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/1817f657ee97e452c79479cedd9a04256c691998", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 4, 5, 6, 9, 10 ] }, { "input": " change_bot_owner_checker = self.check_events_dict([\n change_bot_owner_checker_user = self.check_events_dict([\n ('type', equals('realm_user')),\n ('op', equals('update')),\n ('person', check_dict_only([\n ('user_id', check_int),\n ('bot_owner_id', check_int),\n ])),\n ])\n\n change_bot_owner_checker_bot = self.check_events_dict([\n change_bot_owner_checker = self.check_events_dict([\n change_bot_owner_checker_bot = self.check_events_dict([\n change_bot_owner_checker = self.check_events_dict([\n change_bot_owner_checker_bot = self.check_events_dict([\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/zulip/zulip/commit/61371cbe9a841d9ba493b4e6b1bd9f3214d2afd8", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " events = self.do_test(action)\n error = change_bot_owner_checker('events[0]', events[0])\n events = self.do_test(action, num_events=2)\n error = change_bot_owner_checker_bot('events[0]', events[0])\n self.assert_on_error(error)\n error = change_bot_owner_checker_user('events[1]', events[1])\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.01680672268907563, "commit_url": "https://github.com/zulip/zulip/commit/61371cbe9a841d9ba493b4e6b1bd9f3214d2afd8", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 10 ] }, { "input": " change_bot_owner_checker = self.check_events_dict([\n change_bot_owner_checker_bot = self.check_events_dict([\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/61371cbe9a841d9ba493b4e6b1bd9f3214d2afd8", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 5 ] }, { "input": " return \"[Inbound message]({link}) from **{outbox}** to **{inbox}**.\\n\" \\\n return \"[Inbound message]({link}) from **{outbox}** to **{inbox}**:\\n\" \\\n return \"[Outbound message]({link}) from **{inbox}** to **{outbox}**.\\n\" \\\n return \"[Outbound message]({link}) from **{inbox}** to **{outbox}**:\\n\" \\\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/9516699c73b20f12b7ef5723795617877f23d4ad", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " var active_data = get_active_data();\n var active_data = exports.get_active_data();\n var active_data = get_active_data();\n var active_data = exports.get_active_data();\n var active_data = get_active_data();\n var active_data = exports.get_active_data();\n var active_data = get_active_data();\n var active_data = exports.get_active_data();\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/9dd9ea5721bfa6a7eb20ef661fc36ccc6f82e81a", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10 ] }, { "input": " sort_order = 50\n sort_order = 100\n sort_order = 100\n sort_order = 50\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zulip/zulip/commit/262eb42b77495afbddbba0502c121bad1c56cf96", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " stream_list.clear_search();\n clear_search_input();\n stream_list.clear_search();\n clear_search_input();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/93f9082071270b6492c5aca4690d5177a33bfcea", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "def next_renewal_date(plan: CustomerPlan) -> datetime:\ndef next_renewal_date(plan: CustomerPlan, event_time: datetime) -> datetime:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/83a7595feb483b273d8c4162e2b15a58774cc520", "target_edit_idx": 0, "propagatable_edit_idx": [ 9 ] }, { "input": " response = self.client_get(\"/billing/\")\n with patch('corporate.views.timezone_now', return_value=self.now):\n response = self.client_get(\"/billing/\")\n response = self.client_get(\"/billing/\")\n with patch('corporate.views.timezone_now', return_value=self.now):\n response = self.client_get(\"/billing/\")\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zulip/zulip/commit/83a7595feb483b273d8c4162e2b15a58774cc520", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " renewal_date = '{dt:%B} {dt.day}, {dt.year}'.format(dt=next_renewal_date(plan))\n renewal_date = '{dt:%B} {dt.day}, {dt.year}'.format(dt=next_renewal_date(plan, now))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/83a7595feb483b273d8c4162e2b15a58774cc520", "target_edit_idx": 9, "propagatable_edit_idx": [ 0 ] }, { "input": "def do_import_realm(import_dir: Path, subdomain: str) -> Realm:\ndef do_import_realm(import_dir: Path, subdomain: str, processes: int=1) -> Realm:\n realm = do_import_realm(path, subdomain)\n realm = do_import_realm(path, subdomain, num_processes)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/bec875a9af756d946ffd9215b9f20dd9f66a4047", "target_edit_idx": 4, "propagatable_edit_idx": [ 10 ] }, { "input": " import_uploads(os.path.join(import_dir, \"avatars\"), processing_avatars=True)\n import_uploads(os.path.join(import_dir, \"uploads\"))\n import_uploads(os.path.join(import_dir, \"avatars\"), processes, processing_avatars=True)\n import_uploads(os.path.join(import_dir, \"uploads\"), processes)\n import_uploads(os.path.join(import_dir, \"emoji\"), processing_emojis=True)\n import_uploads(os.path.join(import_dir, \"emoji\"), processes, processing_emojis=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/bec875a9af756d946ffd9215b9f20dd9f66a4047", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " realm = do_import_realm(path, subdomain)\n realm = do_import_realm(path, subdomain, num_processes)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/bec875a9af756d946ffd9215b9f20dd9f66a4047", "target_edit_idx": 10, "propagatable_edit_idx": [ 4 ] }, { "input": "def do_change_plan_type(user: UserProfile, plan_type: int) -> None:\n realm = user.realm\ndef do_change_plan_type(realm: Realm, plan_type: int) -> None:\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zulip/zulip/commit/b245c661dac3d271ccc0dba4ad87ccfddc0ee95a", "target_edit_idx": 6, "propagatable_edit_idx": [ 9, 10, 11 ] }, { "input": " do_change_plan_type(user, Realm.LIMITED)\n do_change_plan_type(realm, Realm.LIMITED)\n do_change_plan_type(user, Realm.STANDARD)\n do_change_plan_type(realm, Realm.STANDARD)\n do_change_plan_type(user, Realm.STANDARD_FREE)\n do_change_plan_type(realm, Realm.STANDARD_FREE)\ndef do_change_plan_type(user: UserProfile, plan_type: int) -> None:\n realm = user.realm\ndef do_change_plan_type(realm: Realm, plan_type: int) -> None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b245c661dac3d271ccc0dba4ad87ccfddc0ee95a", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 11, 6 ] }, { "input": " do_change_plan_type(user, Realm.STANDARD_FREE)\n do_change_plan_type(realm, Realm.STANDARD_FREE)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b245c661dac3d271ccc0dba4ad87ccfddc0ee95a", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 10, 6 ] }, { "input": " application = create_tornado_application()\n application = create_tornado_application(int(port))\n return create_tornado_application()\n return create_tornado_application(9993)\n return create_tornado_application()\n return create_tornado_application(9993)\ndef create_tornado_application() -> tornado.web.Application:\ndef create_tornado_application(port: int) -> tornado.web.Application:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/zulip/zulip/commit/ec065e92eef038f95996833ea6eb7a746e9912bd", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " return create_tornado_application()\n return create_tornado_application(9993)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/zulip/zulip/commit/ec065e92eef038f95996833ea6eb7a746e9912bd", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " get_sockjs_router().urls),\n get_sockjs_router(port).urls),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/ec065e92eef038f95996833ea6eb7a746e9912bd", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "def get_sockjs_router() -> sockjs.tornado.SockJSRouter:\ndef get_sockjs_router(port: int) -> sockjs.tornado.SockJSRouter:\n sockjs_router._connection.port = port\n get_sockjs_router().urls),\n get_sockjs_router(port).urls),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/ec065e92eef038f95996833ea6eb7a746e9912bd", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " self.assertEqual(realm.max_invites, Realm.MAX_INVITES_PREMIUM)\n self.assertEqual(realm.max_invites, Realm.INVITES_PREMIUM_REALM_DAILY_MAX)\n realm.max_invites = Realm.MAX_INVITES_PREMIUM\n realm.max_invites = Realm.INVITES_PREMIUM_REALM_DAILY_MAX\n realm.max_invites = Realm.MAX_INVITES_PREMIUM\n realm.max_invites = Realm.INVITES_PREMIUM_REALM_DAILY_MAX\n MAX_INVITES_PREMIUM = 3000\n INVITES_PREMIUM_REALM_DAILY_MAX = 3000\n self.assertEqual(get_realm('zulip').max_invites, Realm.MAX_INVITES_PREMIUM)\n self.assertEqual(get_realm('zulip').max_invites, Realm.INVITES_PREMIUM_REALM_DAILY_MAX)\n self.assertEqual(get_realm('zulip').max_invites, Realm.MAX_INVITES_PREMIUM)\n self.assertEqual(get_realm('zulip').max_invites, Realm.INVITES_PREMIUM_REALM_DAILY_MAX)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/fbd884f934ca44e594728d21dea4728b9ba2351b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " realm.max_invites = Realm.MAX_INVITES_PREMIUM\n realm.max_invites = Realm.INVITES_PREMIUM_REALM_DAILY_MAX\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/fbd884f934ca44e594728d21dea4728b9ba2351b", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5 ] }, { "input": " MAX_INVITES_PREMIUM = 3000\n INVITES_PREMIUM_REALM_DAILY_MAX = 3000\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/fbd884f934ca44e594728d21dea4728b9ba2351b", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5 ] }, { "input": " self.assertEqual(get_realm('zulip').max_invites, Realm.MAX_INVITES_PREMIUM)\n self.assertEqual(get_realm('zulip').max_invites, Realm.INVITES_PREMIUM_REALM_DAILY_MAX)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/fbd884f934ca44e594728d21dea4728b9ba2351b", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5 ] }, { "input": " self.assert_json_error_contains(result, \"Account not active\", status_code=400)\n self.assert_json_error_contains(result, \"Account is deactivated\", status_code=400)\n self.assert_json_error_contains(result, \"Account not active\", status_code=401)\n self.assert_json_error_contains(result, \"Account is deactivated\", status_code=401)\n self.assert_json_error_contains(result, \"Account not active\", status_code=400)\n self.assert_json_error_contains(result, \"Account is deactivated\", status_code=400)\n self.assert_json_error_contains(result, \"Account not active\", status_code=400)\n self.assert_json_error_contains(result, \"Account is deactivated\", status_code=400)\n", "class": "clone", "binary_label": 1, "regression_label": 0.42857142857142855, "commit_url": "https://github.com/zulip/zulip/commit/25b646feaf33d60912c10e24fa8d27ef0d5714fe", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " count = do_mark_stream_messages_as_read(user_profile, stream)\n count = do_mark_stream_messages_as_read(user_profile, request.client, stream)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/zulip/zulip/commit/c775be8ea46ee68ad3dd5cc3993d0367c72f9663", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 7 ] }, { "input": " count = do_mark_stream_messages_as_read(user_profile, stream, topic_name)\n count = do_mark_stream_messages_as_read(user_profile, request.client, stream, topic_name)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/zulip/zulip/commit/c775be8ea46ee68ad3dd5cc3993d0367c72f9663", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " do_mark_stream_messages_as_read(user_profile, stream)\n do_mark_stream_messages_as_read(user_profile, client, stream)", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/zulip/zulip/commit/c775be8ea46ee68ad3dd5cc3993d0367c72f9663", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " event_type='subscription_created',\n event_type=RealmAuditLog.SUBSCRIPTION_CREATED,\n event_type='subscription_created',\n event_type=RealmAuditLog.SUBSCRIPTION_CREATED,\n event_type='subscription_created',\n event_type=RealmAuditLog.SUBSCRIPTION_CREATED,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/ff4c1ca2c14e1b2650d54e3d1802f09032e4adc8", "target_edit_idx": 0, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " self.add_event('user_deactivated', 0)\n self.add_event(RealmAuditLog.USER_DEACTIVATED, 0)\n self.add_event('user_deactivated', 1)\n self.add_event(RealmAuditLog.USER_DEACTIVATED, 1)\n self.add_event('user_deactivated', .5)\n self.add_event(RealmAuditLog.USER_DEACTIVATED, .5)\n self.add_event('user_deactivated', 1)\n self.add_event(RealmAuditLog.USER_DEACTIVATED, 1)\n self.add_event('user_deactivated', 1)\n self.add_event(RealmAuditLog.USER_DEACTIVATED, 1)\n self.add_event('user_deactivated', 2)\n self.add_event(RealmAuditLog.USER_DEACTIVATED, 2)\n self.add_event('user_deactivated', 3)\n self.add_event(RealmAuditLog.USER_DEACTIVATED, 3)\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/zulip/zulip/commit/d0b89cbb44442adf1278b0b20e2b384a5b5ba27b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6 ] }, { "input": " self.add_event('user_created', 1)\n self.add_event(RealmAuditLog.USER_CREATED, 1)\n self.add_event('user_created', 1)\n self.add_event(RealmAuditLog.USER_CREATED, 1)\n self.add_event('user_created', 2)\n self.add_event(RealmAuditLog.USER_CREATED, 2)\n self.add_event('user_created', 4)\n self.add_event(RealmAuditLog.USER_CREATED, 4)\n self.add_event('user_created', 2)\n self.add_event(RealmAuditLog.USER_CREATED, 2)\n self.add_event('user_created', 1)\n self.add_event(RealmAuditLog.USER_CREATED, 1)\n self.add_event('user_created', 1)\n self.add_event(RealmAuditLog.USER_CREATED, 1)\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/zulip/zulip/commit/2c8effe9fefbf6082f842428978698e3ea01b976", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 6, 7, 8 ] }, { "input": " reactions = channel_message_to_zerver_message(realm_id, users, added_users,\n added_recipient, all_messages,\n zerver_realmemoji,\n realm['zerver_subscription'],\n added_channels,\n domain_name)\n reactions, id_list = channel_message_to_zerver_message(\n realm_id, users, added_users, added_recipient, all_messages,\n zerver_realmemoji, realm['zerver_subscription'], added_channels,\n id_list, domain_name)\n reaction = channel_message_to_zerver_message(1, user_data, added_users, added_recipient,\n all_messages, zerver_subscription, [],\n added_channels, 'domain')\n reaction, id_list = channel_message_to_zerver_message(\n 1, user_data, added_users, added_recipient,\n all_messages, zerver_subscription, [],\n added_channels, (0, 0, 0, 0), 'domain')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/7f6c1740994e24db80d382e5cb5b298c3a431c47", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": " reaction = channel_message_to_zerver_message(1, user_data, added_users, added_recipient,\n all_messages, zerver_subscription, [],\n added_channels, 'domain')\n reaction, id_list = channel_message_to_zerver_message(\n 1, user_data, added_users, added_recipient,\n all_messages, zerver_subscription, [],\n added_channels, (0, 0, 0, 0), 'domain')\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/7f6c1740994e24db80d382e5cb5b298c3a431c47", "target_edit_idx": 7, "propagatable_edit_idx": [ 1 ] }, { "input": " get_dev_uuid_var_path, FAIL, parse_lsb_release, file_hash_updated\n get_dev_uuid_var_path, FAIL, parse_lsb_release, file_or_package_hash_updated\n if file_hash_updated(webfont_paths, \"webfont_files_hash\", options.is_force):\n if file_or_package_hash_updated(webfont_paths, \"webfont_files_hash\", options.is_force):\n if file_hash_updated(email_source_paths, \"last_email_source_files_hash\", options.is_force):\n if file_or_package_hash_updated(email_source_paths, \"last_email_source_files_hash\", options.is_force):\n if file_hash_updated(paths, \"last_compilemessages_hash\", options.is_force):\n if file_or_package_hash_updated(paths, \"last_compilemessages_hash\", options.is_force):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/109fa85614a2a66343bdb68253edadf8a879e0d7", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " if file_hash_updated(paths, \"last_compilemessages_hash\", options.is_force):\n if file_or_package_hash_updated(paths, \"last_compilemessages_hash\", options.is_force):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/109fa85614a2a66343bdb68253edadf8a879e0d7", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": "def do_convert_data(slack_zip_file: str, output_dir: str, token: str) -> None:\ndef do_convert_data(slack_zip_file: str, output_dir: str, token: str, threads: int=6) -> None:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/zulip/zulip/commit/f6b6aa1e755d79458ba2dcebe962b5669ecf2208", "target_edit_idx": 0, "propagatable_edit_idx": [ 13 ] }, { "input": " uploads_records = process_uploads(uploads_list, uploads_folder)\n uploads_records = process_uploads(uploads_list, uploads_folder, threads)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/f6b6aa1e755d79458ba2dcebe962b5669ecf2208", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " for (status, job) in run_parallel(get_emojis, upload_emoji_list):\n for (status, job) in run_parallel(get_emojis, upload_emoji_list, threads=threads):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/zulip/zulip/commit/f6b6aa1e755d79458ba2dcebe962b5669ecf2208", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " for (status, job) in run_parallel(get_avatar, avatar_upload_list):\n for (status, job) in run_parallel(get_avatar, avatar_upload_list, threads=threads):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/zulip/zulip/commit/f6b6aa1e755d79458ba2dcebe962b5669ecf2208", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 5 ] }, { "input": "def process_uploads(upload_list: List[ZerverFieldsT], upload_dir: str) -> List[ZerverFieldsT]:\ndef process_uploads(upload_list: List[ZerverFieldsT], upload_dir: str,\n threads: int) -> List[ZerverFieldsT]:\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/f6b6aa1e755d79458ba2dcebe962b5669ecf2208", "target_edit_idx": 8, "propagatable_edit_idx": [ 3 ] }, { "input": " for (status, job) in run_parallel(get_uploads, upload_url_list):\n for (status, job) in run_parallel(get_uploads, upload_url_list, threads=threads):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/zulip/zulip/commit/f6b6aa1e755d79458ba2dcebe962b5669ecf2208", "target_edit_idx": 9, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " do_convert_data(path, output_dir, token)\n do_convert_data(path, output_dir, token, threads=num_threads)", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/zulip/zulip/commit/f6b6aa1e755d79458ba2dcebe962b5669ecf2208", "target_edit_idx": 13, "propagatable_edit_idx": [ 0 ] }, { "input": " page_params.realm_notifications_stream_id);\n page_params.realm_notifications_stream_id,\n $('#realm_notifications_stream_name'));\n page_params.realm_notifications_stream_id);\n page_params.realm_notifications_stream_id,\n $('#realm_notifications_stream_name'));\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/zulip/zulip/commit/21fe9fe20a30a7f145f01eb05d5cfe44a7ea3986", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " self.assert_length(queries, 44)\n self.assert_length(queries, 43)\n self.assert_length(queries, 60)\n self.assert_length(queries, 59)\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/656f882a44b2a29414aafe22d724a09c493f1468", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " self.assert_json_error_contains(result, \"Your realm has been deactivated\", 403)\n self.assert_json_error_contains(result, \"This organization has been deactivated\", 403)\n self.assert_json_error_contains(result, \"Your realm has been deactivated\", 403)\n self.assert_json_error_contains(result, \"This organization has been deactivated\", 403)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/342d8cd4e0a241c4b521ce78d28bfd96cd973671", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " return json_error(_(\"Your realm has been deactivated.\"),\n return json_error(_(\"This organization has been deactivated.\"),\n return json_error(_(\"Your realm has been deactivated.\"),\n return json_error(_(\"This organization has been deactivated.\"),\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/342d8cd4e0a241c4b521ce78d28bfd96cd973671", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " expected_subject = u'Task: Sails unspread it stopped at kearney'\n expected_message = u'**student-yqqtag** abandoned the task [Sails unspread it stopped at kearney](https://0.0.0.0:8000/dashboard/tasks/6694926301528064/).'\n expected_subject = u'student-yqqtag'\n expected_message = u'**student-yqqtag** abandoned the task [Sails unspread it stopped at kearney](https://codein.withgoogle.com/dashboard/task-instances/6296903092273152/).'\n expected_subject = u'Task: Sails unspread it stopped at kearney'\n expected_message = u'**student-yqqtag** commented on the task [Sails unspread it stopped at kearney](https://0.0.0.0:8000/dashboard/tasks/6694926301528064/).'\n expected_subject = u'student-yqqtag'\n expected_message = u'**student-yqqtag** commented on the task [Sails unspread it stopped at kearney](https://codein.withgoogle.com/dashboard/task-instances/6296903092273152/).'\n expected_subject = u'Task: Sails unspread it stopped at kearney'\n expected_message = u'**student-yqqtag** submitted the task [Sails unspread it stopped at kearney](https://0.0.0.0:8000/dashboard/tasks/6694926301528064/).'\n expected_subject = u'student-yqqtag'\n expected_message = u'**student-yqqtag** submitted the task [Sails unspread it stopped at kearney](https://codein.withgoogle.com/dashboard/task-instances/6296903092273152/).'\n expected_subject = u'Task: Sails unspread it stopped at kearney'\n expected_message = u'**student-yqqtag** claimed the task [Sails unspread it stopped at kearney](https://0.0.0.0:8000/dashboard/tasks/6694926301528064/).'\n expected_subject = u'student-yqqtag'\n expected_message = u'**student-yqqtag** claimed the task [Sails unspread it stopped at kearney](https://codein.withgoogle.com/dashboard/task-instances/6296903092273152/).'\n expected_subject = u'Task: Sails unspread it stopped at kearney'\n expected_message = u'**eeshangarg** approved the task [Sails unspread it stopped at kearney](https://0.0.0.0:8000/dashboard/tasks/6694926301528064/).'\n expected_subject = u'student-yqqtag'\n expected_message = u'**eeshangarg** approved the task [Sails unspread it stopped at kearney](https://codein.withgoogle.com/dashboard/task-instances/6296903092273152/).'\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/bea653fabcfad4e6d5999e86b113ce165407b50f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " task_url=payload['task_definition_url'],\n task_url=build_instance_url(payload['task_instance']),\n task_url=payload['task_definition_url'],\n task_url=build_instance_url(payload['task_instance']),\n task_url=payload['task_definition_url'],\n task_url=build_instance_url(payload['task_instance']),\n task_url=payload['task_definition_url'],\n task_url=build_instance_url(payload['task_instance']),\n task_url=payload['task_definition_url'],\n task_url=build_instance_url(payload['task_instance']),\n task_url=payload['task_definition_url'],\n task_url=build_instance_url(payload['task_instance']),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/bea653fabcfad4e6d5999e86b113ce165407b50f", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10, 11, 12, 13 ] }, { "input": " user_profile = common_get_active_user_by_email(username, return_data=return_data)\n assert dev_auth_username is not None\n user_profile = common_get_active_user_by_email(dev_auth_username, return_data=return_data)\n good_kwargs=dict(username=self.get_username()))\n good_kwargs=dict(dev_auth_username=self.get_username()))\n logged_in = client.login(username=registered_email)\n logged_in = client.login(dev_auth_username=registered_email)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/4968631d1b0e9803d0f7638d2b04766a2bdc550f", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 4 ] }, { "input": " default_stream_group_names=[]):\n # type: (UserProfile, Optional[PreregistrationUser], Optional[Dict[str, str]], List[str]) -> None\n default_stream_groups=[]):\n # type: (UserProfile, Optional[PreregistrationUser], Optional[Dict[str, str]], List[DefaultStreamGroup]) -> None\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b8658c6901f7b00eb0e07631771c0094e145b252", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " newsletter_data=None, default_stream_group_names=[]):\n # type: (Text, Optional[Text], Realm, Text, Text, bool, bool, Optional[int], Optional[UserProfile], Optional[Text], Text, Text, Optional[Stream], Optional[Stream], bool, Optional[PreregistrationUser], Optional[Dict[str, str]], List[str]) -> UserProfile\n newsletter_data=None, default_stream_groups=[]):\n # type: (Text, Optional[Text], Realm, Text, Text, bool, bool, Optional[int], Optional[UserProfile], Optional[Text], Text, Text, Optional[Stream], Optional[Stream], bool, Optional[PreregistrationUser], Optional[Dict[str, str]], List[DefaultStreamGroup]) -> UserProfile\n\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b8658c6901f7b00eb0e07631771c0094e145b252", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 4 ] }, { "input": " default_stream_group_names=default_stream_group_names)\n default_stream_groups=default_stream_groups)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b8658c6901f7b00eb0e07631771c0094e145b252", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "from zerver.lib.subdomains import get_subdomain, check_subdomain\nfrom zerver.lib.subdomains import get_subdomain, user_matches_subdomain\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9230769230769231, "commit_url": "https://github.com/zulip/zulip/commit/c9457d4af0b808c818b928c84e4e518b25123c0b", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 9, 3 ] }, { "input": " if (not check_subdomain(get_subdomain(request), user_profile.realm.subdomain) and\n if (not user_matches_subdomain(get_subdomain(request), user_profile) and\n if not check_subdomain(get_subdomain(self.request), user_profile.realm.subdomain):\n if not user_matches_subdomain(get_subdomain(self.request), user_profile):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/c9457d4af0b808c818b928c84e4e518b25123c0b", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": "from zerver.lib.subdomains import get_subdomain, check_subdomain, is_root_domain_available\nfrom zerver.lib.subdomains import get_subdomain, user_matches_subdomain, is_root_domain_available\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9230769230769231, "commit_url": "https://github.com/zulip/zulip/commit/c9457d4af0b808c818b928c84e4e518b25123c0b", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 8, 9 ] }, { "input": "from zerver.lib.subdomains import check_subdomain, get_subdomain\nfrom zerver.lib.subdomains import user_matches_subdomain, get_subdomain\nfrom zerver.lib.subdomains import get_subdomain, check_subdomain\nfrom zerver.lib.subdomains import get_subdomain, user_matches_subdomain\n if not check_subdomain(kwargs.get(\"realm_subdomain\"),\n user_profile.realm.subdomain):\n if not user_matches_subdomain(kwargs.get(\"realm_subdomain\"),\n user_profile):\nfrom zerver.lib.subdomains import get_subdomain, check_subdomain, is_root_domain_available\nfrom zerver.lib.subdomains import get_subdomain, user_matches_subdomain, is_root_domain_available\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9230769230769231, "commit_url": "https://github.com/zulip/zulip/commit/c9457d4af0b808c818b928c84e4e518b25123c0b", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 9, 3 ] }, { "input": " if not check_subdomain(kwargs.get(\"realm_subdomain\"),\n user_profile.realm.subdomain):\n if not user_matches_subdomain(kwargs.get(\"realm_subdomain\"),\n user_profile):\nfrom zerver.lib.subdomains import get_subdomain, check_subdomain\nfrom zerver.lib.subdomains import get_subdomain, user_matches_subdomain\nfrom zerver.lib.subdomains import check_subdomain, get_subdomain\nfrom zerver.lib.subdomains import user_matches_subdomain, get_subdomain\nfrom zerver.lib.subdomains import get_subdomain, check_subdomain, is_root_domain_available\nfrom zerver.lib.subdomains import get_subdomain, user_matches_subdomain, is_root_domain_available\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.9230769230769231, "commit_url": "https://github.com/zulip/zulip/commit/c9457d4af0b808c818b928c84e4e518b25123c0b", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 8, 3 ] }, { "input": " if not check_subdomain(realm_subdomain, user_profile.realm.subdomain):\n if not user_matches_subdomain(realm_subdomain, user_profile):\n if not check_subdomain(realm_subdomain, user_profile.realm.subdomain):\n if not user_matches_subdomain(realm_subdomain, user_profile):\n if not check_subdomain(realm_subdomain, user_profile.realm.subdomain):\n if not user_matches_subdomain(realm_subdomain, user_profile):\n if not check_subdomain(realm_subdomain, user_profile.realm.subdomain):\n if not user_matches_subdomain(realm_subdomain, user_profile):\n if not check_subdomain(realm_subdomain, user_profile.realm.subdomain):\n if not user_matches_subdomain(realm_subdomain, user_profile):\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/c9457d4af0b808c818b928c84e4e518b25123c0b", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 12, 13, 14 ] }, { "input": " state_handler = StateHandler(self.bot_profile)\n state_handler['some key'] = 'some value'\n state_handler['some other key'] = 'some other value'\n self.assertEqual(state_handler['some key'], 'some value')\n self.assertEqual(state_handler['some other key'], 'some other value')\n self.assertFalse('nonexistent key' in state_handler)\n self.assertRaises(BotUserStateData.DoesNotExist, lambda: state_handler['nonexistent key'])\n\n second_state_handler = StateHandler(self.second_bot_profile)\n self.assertRaises(BotUserStateData.DoesNotExist, lambda: second_state_handler['some key'])\n second_state_handler['some key'] = 'yet another value'\n self.assertEqual(state_handler['some key'], 'some value')\n self.assertEqual(second_state_handler['some key'], 'yet another value')\n storage = StateHandler(self.bot_profile)\n storage['some key'] = 'some value'\n storage['some other key'] = 'some other value'\n self.assertEqual(storage['some key'], 'some value')\n self.assertEqual(storage['some other key'], 'some other value')\n self.assertFalse('nonexistent key' in storage)\n self.assertRaises(BotUserStateData.DoesNotExist, lambda: storage['nonexistent key'])\n\n second_storage = StateHandler(self.second_bot_profile)\n self.assertRaises(BotUserStateData.DoesNotExist, lambda: second_storage['some key'])\n second_storage['some key'] = 'yet another value'\n self.assertEqual(storage['some key'], 'some value')\n self.assertEqual(second_storage['some key'], 'yet another value')\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zulip/zulip/commit/34e3eb8c675ee9614d53f874946caece8319ddf5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " state_handler = StateHandler(self.bot_profile)\n storage = StateHandler(self.bot_profile)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/34e3eb8c675ee9614d53f874946caece8319ddf5", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " state_handler['some key'] = serializable_obj # type: ignore # Ignore for testing.\n self.assertEqual(state_handler['some key'], serializable_obj)\n storage['some key'] = serializable_obj # type: ignore # Ignore for testing.\n self.assertEqual(storage['some key'], serializable_obj)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/34e3eb8c675ee9614d53f874946caece8319ddf5", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 4, 5, 6, 7, 8, 9 ] }, { "input": " state_handler = StateHandler(self.bot_profile)\n state_handler.marshal = lambda obj: obj\n state_handler.demarshal = lambda obj: obj\n storage = StateHandler(self.bot_profile)\n storage.marshal = lambda obj: obj\n storage.demarshal = lambda obj: obj\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/34e3eb8c675ee9614d53f874946caece8319ddf5", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2, 3, 5, 6, 7, 8, 9 ] }, { "input": " state_handler['some key'] = serializable_obj # type: ignore # We intend to test an invalid type.\n storage['some key'] = serializable_obj # type: ignore # We intend to test an invalid type.\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/34e3eb8c675ee9614d53f874946caece8319ddf5", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 4, 6, 7, 8, 9 ] }, { "input": " state_handler[serializable_obj] = 'some value' # type: ignore # We intend to test an invalid type.\n storage[serializable_obj] = 'some value' # type: ignore # We intend to test an invalid type.\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/34e3eb8c675ee9614d53f874946caece8319ddf5", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 7, 8, 9 ] }, { "input": " state_handler = StateHandler(self.bot_profile)\n storage = StateHandler(self.bot_profile)\n state_handler = StateHandler(self.bot_profile)\n state_handler['some key'] = 'some value'\n state_handler['some other key'] = 'some other value'\n self.assertEqual(state_handler['some key'], 'some value')\n self.assertEqual(state_handler['some other key'], 'some other value')\n self.assertFalse('nonexistent key' in state_handler)\n self.assertRaises(BotUserStateData.DoesNotExist, lambda: state_handler['nonexistent key'])\n\n second_state_handler = StateHandler(self.second_bot_profile)\n self.assertRaises(BotUserStateData.DoesNotExist, lambda: second_state_handler['some key'])\n second_state_handler['some key'] = 'yet another value'\n self.assertEqual(state_handler['some key'], 'some value')\n self.assertEqual(second_state_handler['some key'], 'yet another value')\n storage = StateHandler(self.bot_profile)\n storage['some key'] = 'some value'\n storage['some other key'] = 'some other value'\n self.assertEqual(storage['some key'], 'some value')\n self.assertEqual(storage['some other key'], 'some other value')\n self.assertFalse('nonexistent key' in storage)\n self.assertRaises(BotUserStateData.DoesNotExist, lambda: storage['nonexistent key'])\n\n second_storage = StateHandler(self.second_bot_profile)\n self.assertRaises(BotUserStateData.DoesNotExist, lambda: second_storage['some key'])\n second_storage['some key'] = 'yet another value'\n self.assertEqual(storage['some key'], 'some value')\n self.assertEqual(second_storage['some key'], 'yet another value')\n state_handler = StateHandler(self.bot_profile)\n storage = StateHandler(self.bot_profile)\n state_handler['some key'] = serializable_obj # type: ignore # Ignore for testing.\n self.assertEqual(state_handler['some key'], serializable_obj)\n storage['some key'] = serializable_obj # type: ignore # Ignore for testing.\n self.assertEqual(storage['some key'], serializable_obj)\n state_handler = StateHandler(self.bot_profile)\n state_handler.marshal = lambda obj: obj\n state_handler.demarshal = lambda obj: obj\n storage = StateHandler(self.bot_profile)\n storage.marshal = lambda obj: obj\n storage.demarshal = lambda obj: obj\n state_handler['some key'] = serializable_obj # type: ignore # We intend to test an invalid type.\n storage['some key'] = serializable_obj # type: ignore # We intend to test an invalid type.\n state_handler[serializable_obj] = 'some value' # type: ignore # We intend to test an invalid type.\n storage[serializable_obj] = 'some value' # type: ignore # We intend to test an invalid type.\n state_handler[key] = 'x' * (state_handler.state_size_limit - len(key))\n storage[key] = 'x' * (storage.state_size_limit - len(key))\n state_handler['too much data'] = 'a few bits too long'\n storage['too much data'] = 'a few bits too long'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/34e3eb8c675ee9614d53f874946caece8319ddf5", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 8, 9 ] }, { "input": " state_handler[key] = 'x' * (state_handler.state_size_limit - len(key))\n storage[key] = 'x' * (storage.state_size_limit - len(key))\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/zulip/zulip/commit/34e3eb8c675ee9614d53f874946caece8319ddf5", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 9 ] }, { "input": " state_handler['too much data'] = 'a few bits too long'\n storage['too much data'] = 'a few bits too long'\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/34e3eb8c675ee9614d53f874946caece8319ddf5", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": "def _sanitize_for_log(content):\ndef privacy_clean_markdown(content):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b3b5d5b7cd53aadc501884b7773eb725f2ff900a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " cleaned = _sanitize_for_log(content)\n cleaned = privacy_clean_markdown(content)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b3b5d5b7cd53aadc501884b7773eb725f2ff900a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "def request_retry(event, request_data, failure_message):\n # type: (Dict[str, Any], Dict[str, Any], Text) -> None\ndef request_retry(event, request_data, failure_message, exception=None):\n # type: (Dict[str, Any], Dict[str, Any], Text, Optional[Exception]) -> None\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/9d4bffb59d3bf37760454880e2cc3e7a037b1ebe", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " request_retry(event, request_data, 'Unable to connect with the third party.')\n request_retry(event, request_data, 'Unable to connect with the third party.', exception=e)\n\n except requests.exceptions.ConnectionError as e:\n response_message = \"The message `%s` resulted in a connection error when sending a request to an outgoing \" \\\n \"webhook! See the Zulip server logs for more information.\" % (event[\"command\"],)\n logging.info(\"Trigger event %s on %s resulted in a connection error. Retrying\"\n % (event[\"command\"], event['service_name']))\n request_retry(event, request_data, response_message, exception=e)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/9d4bffb59d3bf37760454880e2cc3e7a037b1ebe", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " \"[A message](http://testserver/#narrow/stream/Verona/subject/Foo/near/) triggered an outgoing webhook.\")\n '''[A message](http://testserver/#narrow/stream/Verona/subject/Foo/near/) triggered an outgoing webhook.\nThe webhook got a response with status code *500*.''')\n '''[A message](http://testserver/#narrow/stream/Verona/subject/Foo/near/) triggered an outgoing webhook.''')\n '''[A message](http://testserver/#narrow/stream/Verona/subject/Foo/near/) triggered an outgoing webhook.\nWhen trying to send a request to the webhook service, an exception of type Timeout occured:\n```\nTime is up!\n```''')\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/9d4bffb59d3bf37760454880e2cc3e7a037b1ebe", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": "def bulk_create_users(realm, users_raw, bot_type=None, tos_version=None, timezone=u\"\"):\n # type: (Realm, Set[Tuple[Text, Text, Text, bool]], Optional[int], Optional[Text], Text) -> None\ndef bulk_create_users(realm, users_raw, bot_type=None, bot_owner=None, tos_version=None, timezone=u\"\"):\n # type: (Realm, Set[Tuple[Text, Text, Text, bool]], Optional[int], Optional[UserProfile], Optional[Text], Text) -> None\n bulk_create_users(realm, user_set, bot_type=bot_type, tos_version=tos_version)\n bulk_create_users(realm, user_set, bot_type=bot_type, bot_owner=bot_owner, tos_version=tos_version)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/zulip/zulip/commit/c77b245944218eece6c3f780cd00a4d32f3ba7bf", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " bulk_create_users(realm, user_set, bot_type=bot_type, tos_version=tos_version)\n bulk_create_users(realm, user_set, bot_type=bot_type, bot_owner=bot_owner, tos_version=tos_version)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/zulip/zulip/commit/c77b245944218eece6c3f780cd00a4d32f3ba7bf", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " def fix_emoji_sizes(html):\n def fix_emojis(html):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/122167148a430d489422f1ec990c8cf4e453917d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " html = fix_emoji_sizes(html)\n html = fix_emojis(html)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/122167148a430d489422f1ec990c8cf4e453917d", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " send_email('zerver/emails/password_reset', to_email, context=context)\n send_email('zerver/emails/password_reset', to_email,\n from_name=\"Zulip Account Security\",\n from_address=FromAddress.NOREPLY, context=context)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/zulip/zulip/commit/69f3ca7870237071983477e8b8a7e90d2617ec29", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " send_email('zerver/emails/password_reset', user_profile.email, context=context)\n send_email('zerver/emails/password_reset', user_profile.email, from_name=\"Zulip Account Security\",\n from_address=FromAddress.NOREPLY, context=context)", "class": "def&ref", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/zulip/zulip/commit/69f3ca7870237071983477e8b8a7e90d2617ec29", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": "def one_click_unsubscribe_link(user_profile, endpoint):\ndef one_click_unsubscribe_link(user_profile, email_type):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/0f46fd86dd84c9ce1e61a052ae6cc214e90ea5e4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " resource_path = \"accounts/unsubscribe/%s/%s\" % (endpoint, token)\n resource_path = \"accounts/unsubscribe/%s/%s\" % (email_type, token)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/0f46fd86dd84c9ce1e61a052ae6cc214e90ea5e4", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": "def email_unsubscribe(request, type, token):\ndef email_unsubscribe(request, email_type, confirmation_key):\n if type in email_unsubscribers:\n display_name, unsubscribe_function = email_unsubscribers[type]\n return process_unsubscribe(request, token, display_name, unsubscribe_function)\n if email_type in email_unsubscribers:\n display_name, unsubscribe_function = email_unsubscribers[email_type]\n return process_unsubscribe(request, confirmation_key, display_name, unsubscribe_function)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/0f46fd86dd84c9ce1e61a052ae6cc214e90ea5e4", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " if type in email_unsubscribers:\n display_name, unsubscribe_function = email_unsubscribers[type]\n return process_unsubscribe(request, token, display_name, unsubscribe_function)\n if email_type in email_unsubscribers:\n display_name, unsubscribe_function = email_unsubscribers[email_type]\n return process_unsubscribe(request, confirmation_key, display_name, unsubscribe_function)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/0f46fd86dd84c9ce1e61a052ae6cc214e90ea5e4", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " self.assert_json_error(result, u'argument \"field_type\" is not valid json.')\n self.assert_json_error(result, u'Argument \"field_type\" is not valid JSON.')\n self.assert_json_error(result, 'argument \"type\" is not valid json.')\n self.assert_json_error(result, 'Argument \"type\" is not valid JSON.')\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/2f4091b38d9a0c2b39e804436b44c7076d350c60", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "from zerver.lib.avatar import avatar_url\nfrom zerver.lib.avatar import absolute_avatar_url\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/d8310724b6686fb7c23b90a633cb4a23f0e88c7e", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " 'sender_avatar_url': avatar_url(message.sender),\n 'sender_avatar_url': absolute_avatar_url(message.sender),\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/d8310724b6686fb7c23b90a633cb4a23f0e88c7e", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5 ] }, { "input": " \"sender_avatar_url\": apn.avatar_url(message.sender),\n \"sender_avatar_url\": apn.absolute_avatar_url(message.sender),\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/d8310724b6686fb7c23b90a633cb4a23f0e88c7e", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": " \"sender_avatar_url\": apn.avatar_url(message.sender),\n \"sender_avatar_url\": apn.absolute_avatar_url(message.sender),\nfrom zerver.lib.avatar import avatar_url\nfrom zerver.lib.avatar import absolute_avatar_url\n 'sender_avatar_url': avatar_url(message.sender),\n 'sender_avatar_url': absolute_avatar_url(message.sender),\n \"sender_avatar_url\": apn.avatar_url(message.sender),\n \"sender_avatar_url\": apn.absolute_avatar_url(message.sender),\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.08333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/d8310724b6686fb7c23b90a633cb4a23f0e88c7e", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " function=None, url=None, display_name=None, doc=None):\n # type: (str, Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str]) -> None\n function=None, url=None, display_name=None, doc=None, stream_name=None):\n # type: (str, Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str]) -> None\n function=None, url=None, display_name=None, doc=None):\n # type: (str, Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str]) -> None\n function=None, url=None, display_name=None, doc=None, stream_name=None):\n # type: (str, Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str]) -> None\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/db09913f38fa6b6739db043f4a97934b60660f1a", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " endpoints = [\n post_endpoints = [\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/0c8575e2dc2d2b294e118c1f0d04180071ec9459", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " for endpoint in endpoints:\n for endpoint in post_endpoints:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/0c8575e2dc2d2b294e118c1f0d04180071ec9459", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " 'Public Streams': [0], 'Private Streams': [0], 'Private Messages': [0], 'Huddle Messages': [0]})\n 'Public streams': [0], 'Private streams': [0], 'Private messages': [0], 'Group private messages': [0]})\n 'Public Streams': [0], 'Private Streams': [0], 'Private Messages': [0], 'Huddle Messages': [0]})\n 'Public streams': [0], 'Private streams': [0], 'Private messages': [0], 'Group private messages': [0]})\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/20a76090184ff36542b4ee51ecd761ee0a27a0d9", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "@statsd_increment(\"android_push_notification\")\ndef send_android_push_notification(user, data):\ndef send_android_push_notification_to_user(user_profile, data):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/0ddaf5c6109f0eba6c886625db7c821080a956f3", "target_edit_idx": 0, "propagatable_edit_idx": [ 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " if apple or android:\n if apple or android_devices:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/0ddaf5c6109f0eba6c886625db7c821080a956f3", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " if android:\n if android_devices:\n if apple or android:\n if apple or android_devices:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/0ddaf5c6109f0eba6c886625db7c821080a956f3", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " apn.send_android_push_notification(self.user_profile, {})\n apn.send_android_push_notification_to_user(self.user_profile, {})\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/0ddaf5c6109f0eba6c886625db7c821080a956f3", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 8, 9, 10, 11, 12, 13 ] }, { "input": " apn.send_android_push_notification(self.user_profile, data)\n apn.send_android_push_notification_to_user(self.user_profile, data)\n@statsd_increment(\"android_push_notification\")\ndef send_android_push_notification(user, data):\ndef send_android_push_notification_to_user(user_profile, data):\n apn.send_android_push_notification(self.user_profile, {})\n apn.send_android_push_notification_to_user(self.user_profile, {})\n apn.send_android_push_notification(self.user_profile, data)\n apn.send_android_push_notification_to_user(self.user_profile, data)\n apn.send_android_push_notification(self.user_profile, data)\n apn.send_android_push_notification_to_user(self.user_profile, data)\n apn.send_android_push_notification(self.user_profile, data)\n apn.send_android_push_notification_to_user(self.user_profile, data)\n apn.send_android_push_notification(self.user_profile, data)\n apn.send_android_push_notification_to_user(self.user_profile, data)\n apn.send_android_push_notification(self.user_profile, data)\n apn.send_android_push_notification_to_user(self.user_profile, data)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/0ddaf5c6109f0eba6c886625db7c821080a956f3", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 7, 9, 10, 11, 12, 13 ] }, { "input": " apn.send_android_push_notification(self.user_profile, data)\n apn.send_android_push_notification_to_user(self.user_profile, data)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/0ddaf5c6109f0eba6c886625db7c821080a956f3", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 7, 8, 10, 11, 12, 13 ] }, { "input": " subs.sub_or_unsub(denmark.name);\n subs.sub_or_unsub(denmark);\n subs.sub_or_unsub(denmark.name);\n subs.sub_or_unsub(denmark);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/67e558f905a43ff4d13fd7a7a26531ec0475fb34", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " ajaxUnsubscribe(stream_name);\n ajaxUnsubscribe(sub.name);\n ajaxSubscribe(stream_name);\n ajaxSubscribe(sub.name);\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/67e558f905a43ff4d13fd7a7a26531ec0475fb34", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": "def add_bot_backend(request, user_profile, full_name=REQ(), short_name=REQ(),\ndef add_bot_backend(request, user_profile, full_name_raw=REQ(\"full_name\"), short_name=REQ(),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.005277044854881266, "commit_url": "https://github.com/zulip/zulip/commit/56cecc48911445f91b6a5ec95f9d7d67220ee228", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " full_name=REQ(), short_name=REQ()):\n full_name_raw=REQ(\"full_name\"), short_name=REQ()):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.005277044854881266, "commit_url": "https://github.com/zulip/zulip/commit/56cecc48911445f91b6a5ec95f9d7d67220ee228", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": "from zerver.lib.timestamp import ceiling_to_hour, ceiling_to_day, timestamp_to_datetime\nfrom zerver.lib.timestamp import floor_to_hour, floor_to_day, timestamp_to_datetime\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/5eb5fa3f3175da7b9857dc56ee158cde581bb7de", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " end = ceiling_to_hour(end)\n end = floor_to_hour(end)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/5eb5fa3f3175da7b9857dc56ee158cde581bb7de", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " end = ceiling_to_day(end)\n end = floor_to_day(end)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zulip/zulip/commit/5eb5fa3f3175da7b9857dc56ee158cde581bb7de", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " self.assertEqual(time_range(ceiling_hour, ceiling_hour, CountStat.HOUR, 0), [ceiling_hour])\n self.assertEqual(time_range(ceiling_day, ceiling_day, CountStat.DAY, 0), [ceiling_day])\n self.assertEqual(time_range(floor_hour, floor_hour, CountStat.HOUR, 0), [floor_hour])\n self.assertEqual(time_range(floor_day, floor_day, CountStat.DAY, 0), [floor_day])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.9230769230769231, "commit_url": "https://github.com/zulip/zulip/commit/5eb5fa3f3175da7b9857dc56ee158cde581bb7de", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " self.assertEqual(time_range(ceiling_hour, ceiling_hour+HOUR, CountStat.HOUR, None),\n [ceiling_hour, ceiling_hour+HOUR])\n self.assertEqual(time_range(ceiling_day, ceiling_day+DAY, CountStat.DAY, None),\n [ceiling_day, ceiling_day+DAY])\n self.assertEqual(time_range(floor_hour, floor_hour+HOUR, CountStat.HOUR, None),\n [floor_hour, floor_hour+HOUR])\n self.assertEqual(time_range(floor_day, floor_day+DAY, CountStat.DAY, None),\n [floor_day, floor_day+DAY])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7857142857142857, "commit_url": "https://github.com/zulip/zulip/commit/5eb5fa3f3175da7b9857dc56ee158cde581bb7de", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 7 ] }, { "input": " self.assertEqual(time_range(ceiling_hour, ceiling_hour+HOUR, CountStat.HOUR, 4),\n [ceiling_hour-2*HOUR, ceiling_hour-HOUR, ceiling_hour, ceiling_hour+HOUR])\n self.assertEqual(time_range(ceiling_day, ceiling_day+DAY, CountStat.DAY, 4),\n [ceiling_day-2*DAY, ceiling_day-DAY, ceiling_day, ceiling_day+DAY])\n self.assertEqual(time_range(floor_hour, floor_hour+HOUR, CountStat.HOUR, 4),\n [floor_hour-2*HOUR, floor_hour-HOUR, floor_hour, floor_hour+HOUR])\n self.assertEqual(time_range(floor_day, floor_day+DAY, CountStat.DAY, 4),\n [floor_day-2*DAY, floor_day-DAY, floor_day, floor_day+DAY]) self.assertEqual(time_range(ceiling_hour, ceiling_hour+HOUR, CountStat.HOUR, None),\n [ceiling_hour, ceiling_hour+HOUR])\n self.assertEqual(time_range(ceiling_day, ceiling_day+DAY, CountStat.DAY, None),\n [ceiling_day, ceiling_day+DAY])\n self.assertEqual(time_range(floor_hour, floor_hour+HOUR, CountStat.HOUR, None),\n [floor_hour, floor_hour+HOUR])\n self.assertEqual(time_range(floor_day, floor_day+DAY, CountStat.DAY, None),\n [floor_day, floor_day+DAY])\n self.assertEqual(time_range(ceiling_hour, ceiling_hour, CountStat.HOUR, 0), [ceiling_hour])\n self.assertEqual(time_range(ceiling_day, ceiling_day, CountStat.DAY, 0), [ceiling_day])\n self.assertEqual(time_range(floor_hour, floor_hour, CountStat.HOUR, 0), [floor_hour])\n self.assertEqual(time_range(floor_day, floor_day, CountStat.DAY, 0), [floor_day])\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6428571428571429, "commit_url": "https://github.com/zulip/zulip/commit/5eb5fa3f3175da7b9857dc56ee158cde581bb7de", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " notifications.append(internal_prep_message(settings.NOTIFICATION_BOT,\n \"private\", email, \"\", msg))\n notifications.append(internal_prep_message(\n user_profile.realm, settings.NOTIFICATION_BOT,\n \"private\", email, \"\", msg))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/zulip/zulip/commit/8ba7d2080c49e3540c627231e34bb5dc3969c343", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " notifications.append(internal_prep_message(settings.NOTIFICATION_BOT,\n \"private\",\n realm_user_dict['email'], \"\", msg))\n notifications.append(internal_prep_message(\n user_profile.realm, settings.NOTIFICATION_BOT,\n \"private\",\n realm_user_dict['email'], \"\", msg))\n notifications.append(internal_prep_message(settings.NOTIFICATION_BOT,\n \"private\", email, \"\", msg))\n notifications.append(internal_prep_message(\n user_profile.realm, settings.NOTIFICATION_BOT,\n \"private\", email, \"\", msg))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/zulip/zulip/commit/8ba7d2080c49e3540c627231e34bb5dc3969c343", "target_edit_idx": 9, "propagatable_edit_idx": [ 6 ] }, { "input": "def time_range(start, end, interval, min_length):\ndef time_range(start, end, frequency, min_length):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/f8962d521d0ff2eb0110f1b418dabd0ad7e32f12", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " if interval == CountStat.HOUR:\n if frequency == CountStat.HOUR:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/f8962d521d0ff2eb0110f1b418dabd0ad7e32f12", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": " elif interval == CountStat.DAY:\n elif frequency == CountStat.DAY:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/f8962d521d0ff2eb0110f1b418dabd0ad7e32f12", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": " interval = CountStat.DAY\n end_times = time_range(start, end, interval, min_length)\n frequency = CountStat.DAY\n end_times = time_range(start, end, frequency, min_length)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/f8962d521d0ff2eb0110f1b418dabd0ad7e32f12", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "def bulk_create_users(realms, users_raw, bot_type=None, tos_version=None):\n # type: (Mapping[text_type, Realm], Set[Tuple[text_type, text_type, text_type, bool]], Optional[int], Optional[text_type]) -> None\ndef bulk_create_users(realm, users_raw, bot_type=None, tos_version=None):\n # type: (Realm, Set[Tuple[text_type, text_type, text_type, bool]], Optional[int], Optional[text_type]) -> None\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/fc188de8e018fdefab8f379c71c1812cc1189f5c", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 3, 7 ] }, { "input": "def create_users(name_list, bot_type=None):\n # type: (Iterable[Tuple[Text, Text]], int) -> None\n realms = {}\n for realm in Realm.objects.all():\n realms[realm.domain] = realm\n\ndef create_users(realm, name_list, bot_type=None):\n # type: (Realm, Iterable[Tuple[Text, Text]], int) -> None\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/fc188de8e018fdefab8f379c71c1812cc1189f5c", "target_edit_idx": 2, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " bulk_create_users(realms, user_set, bot_type)\n bulk_create_users(realm, user_set, bot_type)\ndef bulk_create_users(realms, users_raw, bot_type=None, tos_version=None):\n # type: (Mapping[text_type, Realm], Set[Tuple[text_type, text_type, text_type, bool]], Optional[int], Optional[text_type]) -> None\ndef bulk_create_users(realm, users_raw, bot_type=None, tos_version=None):\n # type: (Realm, Set[Tuple[text_type, text_type, text_type, bool]], Optional[int], Optional[text_type]) -> None\n bulk_create_users(realms, user_set, bot_type=bot_type, tos_version=tos_version)\n bulk_create_users(realm, user_set, bot_type=bot_type, tos_version=tos_version)\ndef create_users(realms, name_list, bot_type=None):\n # type: (Mapping[Text, Realm], Iterable[Tuple[Text, Text]], int) -> None\ndef create_users(realm, name_list, bot_type=None):\n # type: (Realm, Iterable[Tuple[Text, Text]], int) -> None\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/fc188de8e018fdefab8f379c71c1812cc1189f5c", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 8, 7 ] }, { "input": " create_users(names, bot_type=UserProfile.DEFAULT_BOT)\n create_users(realm, names, bot_type=UserProfile.DEFAULT_BOT)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/fc188de8e018fdefab8f379c71c1812cc1189f5c", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 6 ] }, { "input": " create_users(internal_bots, bot_type=UserProfile.DEFAULT_BOT)\n create_users(realm, internal_bots, bot_type=UserProfile.DEFAULT_BOT)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/fc188de8e018fdefab8f379c71c1812cc1189f5c", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "def create_users(realms, name_list, bot_type=None):\n # type: (Mapping[Text, Realm], Iterable[Tuple[Text, Text]], int) -> None\ndef create_users(realm, name_list, bot_type=None):\n # type: (Realm, Iterable[Tuple[Text, Text]], int) -> None\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/fc188de8e018fdefab8f379c71c1812cc1189f5c", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 8, 3 ] }, { "input": " bulk_create_users(realms, user_set, bot_type=bot_type, tos_version=tos_version)\n bulk_create_users(realm, user_set, bot_type=bot_type, tos_version=tos_version)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/fc188de8e018fdefab8f379c71c1812cc1189f5c", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 3, 7 ] }, { "input": " create_users(realms, names)\n create_users(zulip_realm, names)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/zulip/zulip/commit/fc188de8e018fdefab8f379c71c1812cc1189f5c", "target_edit_idx": 9, "propagatable_edit_idx": [ 11, 12, 13, 14 ] }, { "input": " create_users(realms, zulip_realm_bots, bot_type=UserProfile.DEFAULT_BOT)\n create_users(zulip_realm, zulip_realm_bots, bot_type=UserProfile.DEFAULT_BOT)\n create_users(realms, names)\n create_users(zulip_realm, names)\n create_users(realms, zulip_webhook_bots, bot_type=UserProfile.INCOMING_WEBHOOK_BOT)\n create_users(zulip_realm, zulip_webhook_bots, bot_type=UserProfile.INCOMING_WEBHOOK_BOT)\n create_users(realms, internal_zulip_users_nosubs, bot_type=UserProfile.DEFAULT_BOT)\n create_users(zulip_realm, internal_zulip_users_nosubs, bot_type=UserProfile.DEFAULT_BOT)\n create_users(realms, zulip_cross_realm_bots, bot_type=UserProfile.DEFAULT_BOT)\n create_users(zulip_realm, zulip_cross_realm_bots, bot_type=UserProfile.DEFAULT_BOT)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/zulip/zulip/commit/fc188de8e018fdefab8f379c71c1812cc1189f5c", "target_edit_idx": 11, "propagatable_edit_idx": [ 9, 12, 13, 14 ] }, { "input": " create_users(realms, zulip_webhook_bots, bot_type=UserProfile.INCOMING_WEBHOOK_BOT)\n create_users(zulip_realm, zulip_webhook_bots, bot_type=UserProfile.INCOMING_WEBHOOK_BOT)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/zulip/zulip/commit/fc188de8e018fdefab8f379c71c1812cc1189f5c", "target_edit_idx": 12, "propagatable_edit_idx": [ 9, 11, 13, 14 ] }, { "input": " result = self.client.post(\"/json/users\", dict(\n result = self.client_put(\"/json/users\", dict(\n result = self.client.post(\"/json/users\", dict(\n result = self.client_put(\"/json/users\", dict(\n result = self.client.post(\"/json/users\", dict(\n result = self.client_put(\"/json/users\", dict(\n result = self.client.post(\"/json/users\", dict(\n result = self.client_put(\"/json/users\", dict(\n result = self.client.post(\"/json/users\", dict(\n result = self.client_put(\"/json/users\", dict(\n result = self.client.post(\"/json/users\", dict(\n result = self.client_put(\"/json/users\", dict(\n", "class": "clone", "binary_label": 1, "regression_label": 0.3, "commit_url": "https://github.com/zulip/zulip/commit/0dfb76fc5e7b1d44502d7fddd7502fcd43f4e758", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " result = self.client.post(\"/json/users\", valid_params)\n result = self.client_put(\"/json/users\", valid_params)\n result = self.client.post(\"/json/users\", valid_params)\n result = self.client_put(\"/json/users\", valid_params)\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/0dfb76fc5e7b1d44502d7fddd7502fcd43f4e758", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " event_types, client_type, apply_markdown=True,\n event_types, client_type_name, apply_markdown=True,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/eecd1513b37659471605549f3f3a0817cabf5b2e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 6, 7 ] }, { "input": " self.client_type = client_type\n self.client_type_name = client_type_name\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/eecd1513b37659471605549f3f3a0817cabf5b2e", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 6, 7 ] }, { "input": " event_types, client_type, apply_markdown,\n event_types, client_type_name, apply_markdown,\n event_types, client_type, apply_markdown=True,\n event_types, client_type_name, apply_markdown=True,\n self.client_type = client_type\n self.client_type_name = client_type_name\n EventQueue(id), event_types, client_type,\n EventQueue(id), event_types, client_type_name,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/eecd1513b37659471605549f3f3a0817cabf5b2e", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 7 ] }, { "input": " queue_id, last_event_id, event_types, user_client, apply_markdown,\n queue_id, last_event_id, event_types, client_type_name, apply_markdown,\n event_types, user_client, apply_markdown,\n event_types, client_type_name, apply_markdown,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/eecd1513b37659471605549f3f3a0817cabf5b2e", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": " event_types, user_client, apply_markdown,\n event_types, client_type_name, apply_markdown,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/eecd1513b37659471605549f3f3a0817cabf5b2e", "target_edit_idx": 9, "propagatable_edit_idx": [ 8 ] }, { "input": "from zerver.models import flush_per_process_display_recipient_cache\nfrom zerver.models import flush_per_request_caches\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/c91415f318ad62a3687622fd3e6e729bab2ea4b7", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": "per_process_display_recipient_cache = {}\nper_request_display_recipient_cache = {}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/c91415f318ad62a3687622fd3e6e729bab2ea4b7", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " if recipient_id not in per_process_display_recipient_cache:\n if recipient_id not in per_request_display_recipient_cache:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/c91415f318ad62a3687622fd3e6e729bab2ea4b7", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " per_process_display_recipient_cache[recipient_id] = result\n return per_process_display_recipient_cache[recipient_id]\n per_request_display_recipient_cache[recipient_id] = result\n return per_request_display_recipient_cache[recipient_id]\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/zulip/zulip/commit/c91415f318ad62a3687622fd3e6e729bab2ea4b7", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "def flush_per_process_display_recipient_cache():\n global per_process_display_recipient_cache\n per_process_display_recipient_cache = {}\ndef flush_per_request_caches():\n global per_request_display_recipient_cache\n per_request_display_recipient_cache = {}\nfrom zerver.models import flush_per_process_display_recipient_cache\nfrom zerver.models import flush_per_request_caches\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/c91415f318ad62a3687622fd3e6e729bab2ea4b7", "target_edit_idx": 5, "propagatable_edit_idx": [ 0 ] }, { "input": " if (page_params.domain !== \"zulip.com\") {\n if (!feature_flags.notify_on_send_not_in_view) {\n if (page_params.domain !== \"zulip.com\") {\n if (!feature_flags.notify_on_send_not_in_view) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/8853d86b1746db382fe693b51f60e6e5130dc13a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "def get_subscribers_query(stream, realm, requesting_user):\ndef get_subscribers_query(stream, requesting_user):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/4de0ad29b352bc09ca2880925490679adb3b5647", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": "def get_subscriber_emails(stream, realm=None, requesting_user=None):\n subscriptions = get_subscribers_query(stream, realm, requesting_user)\ndef get_subscriber_emails(stream, requesting_user=None):\n subscriptions = get_subscribers_query(stream, requesting_user)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/zulip/zulip/commit/4de0ad29b352bc09ca2880925490679adb3b5647", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " subscriptions = get_subscribers_query(stream, None, None)\n subscriptions = get_subscribers_query(stream, None)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/4de0ad29b352bc09ca2880925490679adb3b5647", "target_edit_idx": 7, "propagatable_edit_idx": [ 0 ] }, { "input": " subscribers = get_subscriber_emails(stream_name, user_profile.realm, user_profile)\n stream = get_stream(stream_name, user_profile.realm)\n if stream is None:\n raise JsonableError(\"Stream does not exist: %s\" % (stream_name,))\n\n subscribers = get_subscriber_emails(stream, user_profile)\ndef get_subscriber_emails(stream, realm=None, requesting_user=None):\n subscriptions = get_subscribers_query(stream, realm, requesting_user)\ndef get_subscriber_emails(stream, requesting_user=None):\n subscriptions = get_subscribers_query(stream, requesting_user)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/zulip/zulip/commit/4de0ad29b352bc09ca2880925490679adb3b5647", "target_edit_idx": 8, "propagatable_edit_idx": [ 6 ] }, { "input": " global.recent_subjects = new global.Dict({\n global.recent_subjects = new global.Dict.from({\n global.recent_subjects = new global.Dict({\n global.recent_subjects = new global.Dict.from({\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/3a70c4e9281685276c95c636083ef1e98a54c07e", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": "var steps = [\"sent_stream_message\", \"sent_private_message\", \"made_app_sticky\"];\nvar steps = [\"sent_stream_message\", \"sent_private_message\", \"made_app_sticky\", \"set_up_integration\"];\nonboarding_steps = [\"sent_stream_message\", \"sent_private_message\", \"made_app_sticky\"]\nonboarding_steps = [\"sent_stream_message\", \"sent_private_message\", \"made_app_sticky\", \"set_up_integration\"]\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/49849a214f381a010bba1133ea1e8e22bf6cc7b2", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " hardcoded_humbug_users_nosubs = [\n hardcoded_zulip_users_nosubs = [\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/2db6dc6c88310d0a8f05de6cd9ea932d7260514e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " create_users(realms, hardcoded_humbug_users_nosubs)\n create_users(realms, hardcoded_zulip_users_nosubs)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/2db6dc6c88310d0a8f05de6cd9ea932d7260514e", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " internal_humbug_users_nosubs = [\n internal_zulip_users_nosubs = [\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/2db6dc6c88310d0a8f05de6cd9ea932d7260514e", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " create_users(realms, internal_humbug_users_nosubs)\n create_users(realms, internal_zulip_users_nosubs)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/2db6dc6c88310d0a8f05de6cd9ea932d7260514e", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": "def do_events_register(user_profile, apply_markdown=True, event_types=None):\n queue_id = request_event_queue(user_profile, apply_markdown, event_types)\ndef do_events_register(user_profile, user_client, apply_markdown=True,\n event_types=None):\n queue_id = request_event_queue(user_profile, user_client, apply_markdown,\n event_types)\n ret = do_events_register(user_profile, apply_markdown, event_types)\n ret = do_events_register(user_profile, request.client, apply_markdown,\n event_types)\n register_ret = do_events_register(user_profile, apply_markdown=True)\n register_ret = do_events_register(user_profile, get_client(\"website\"),\n apply_markdown=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/74148518b482d746f08c3b12cc27ca8690853305", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " register_ret = do_events_register(user_profile, apply_markdown=True)\n register_ret = do_events_register(user_profile, get_client(\"website\"),\n apply_markdown=True)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/74148518b482d746f08c3b12cc27ca8690853305", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 8 ] }, { "input": " ret = do_events_register(user_profile, apply_markdown, event_types)\n ret = do_events_register(user_profile, request.client, apply_markdown,\n event_types)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/zulip/zulip/commit/74148518b482d746f08c3b12cc27ca8690853305", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 7 ] }, { "input": "def process_patch_as_post(view_func):\ndef process_as_post(view_func):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/50809ca219ccb7c68e11a458ee552da33cfb6e3a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " authenticated_rest_api_view, process_patch_as_post, REQ\n authenticated_rest_api_view, process_as_post, REQ\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/50809ca219ccb7c68e11a458ee552da33cfb6e3a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": "@process_patch_as_post\n@process_as_post\ndef process_patch_as_post(view_func):\ndef process_as_post(view_func):\n authenticated_rest_api_view, process_patch_as_post, REQ\n authenticated_rest_api_view, process_as_post, REQ\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/50809ca219ccb7c68e11a458ee552da33cfb6e3a", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2 ] }, { "input": "@cache_with_key(user_by_id_cache_key)\n@cache_with_key(user_by_id_cache_key, timeout=3600*24*7)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/e8aa77c9b47b62f1d641859fdb109ebde7948349", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": "@cache_with_key(user_profile_by_user_cache_key)\n@cache_with_key(user_profile_by_user_cache_key, timeout=3600*24*7)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/e8aa77c9b47b62f1d641859fdb109ebde7948349", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": "@cache_with_key(user_profile_by_email_cache_key)\n@cache_with_key(user_profile_by_email_cache_key, timeout=3600*24*7)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/e8aa77c9b47b62f1d641859fdb109ebde7948349", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": "@cache_with_key(lambda realm, email: user_profile_by_email_cache_key(email))\n@cache_with_key(lambda realm, email: user_profile_by_email_cache_key(email),\n timeout=3600*24*7)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/e8aa77c9b47b62f1d641859fdb109ebde7948349", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": "@cache_with_key(message_cache_key)\n@cache_with_key(message_cache_key, timeout=3600*24)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/e8aa77c9b47b62f1d641859fdb109ebde7948349", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": "@cache_with_key(lambda self: 'display_recipient_dict:%d' % (self.id,))\n@cache_with_key(lambda self: 'display_recipient_dict:%d' % (self.id,),\n timeout=3600*24*7)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/e8aa77c9b47b62f1d641859fdb109ebde7948349", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11 ] }, { "input": "@cache_with_key(get_client_cache_key)\n@cache_with_key(get_client_cache_key, timeout=3600*24*7)\n@cache_with_key(user_by_id_cache_key)\n@cache_with_key(user_by_id_cache_key, timeout=3600*24*7)\n@cache_with_key(user_profile_by_user_cache_key)\n@cache_with_key(user_profile_by_user_cache_key, timeout=3600*24*7)\n@cache_with_key(user_profile_by_email_cache_key)\n@cache_with_key(user_profile_by_email_cache_key, timeout=3600*24*7)\n@cache_with_key(lambda realm, email: user_profile_by_email_cache_key(email))\n@cache_with_key(lambda realm, email: user_profile_by_email_cache_key(email),\n timeout=3600*24*7)\n@cache_with_key(message_cache_key)\n@cache_with_key(message_cache_key, timeout=3600*24)\n@cache_with_key(lambda self: 'display_recipient_dict:%d' % (self.id,))\n@cache_with_key(lambda self: 'display_recipient_dict:%d' % (self.id,),\n timeout=3600*24*7)\n@cache_with_key(get_stream_cache_key)\n@cache_with_key(get_stream_cache_key, timeout=3600*24*7)\n@cache_with_key(get_recipient_cache_key)\n@cache_with_key(get_recipient_cache_key, timeout=3600*24*7)\n @cache_with_key(lambda self, apply_markdown, rendered_content=None: 'message_dict:%d:%d' % (self.id, apply_markdown))\n @cache_with_key(lambda self, apply_markdown, rendered_content=None: 'message_dict:%d:%d' % (self.id, apply_markdown),\n timeout=3600*24)\n@cache_with_key(user_profile_by_id_cache_key)\n@cache_with_key(user_profile_by_id_cache_key, timeout=3600*24*7)\n@cache_with_key(lambda huddle_hash, id_list: huddle_hash_cache_key(huddle_hash))\n@cache_with_key(lambda huddle_hash, id_list: huddle_hash_cache_key(huddle_hash), timeout=3600*24*7)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/e8aa77c9b47b62f1d641859fdb109ebde7948349", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11 ] }, { "input": "@cache_with_key(get_recipient_cache_key)\n@cache_with_key(get_recipient_cache_key, timeout=3600*24*7)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/e8aa77c9b47b62f1d641859fdb109ebde7948349", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11 ] }, { "input": " @cache_with_key(lambda self, apply_markdown, rendered_content=None: 'message_dict:%d:%d' % (self.id, apply_markdown))\n @cache_with_key(lambda self, apply_markdown, rendered_content=None: 'message_dict:%d:%d' % (self.id, apply_markdown),\n timeout=3600*24)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/e8aa77c9b47b62f1d641859fdb109ebde7948349", "target_edit_idx": 9, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11 ] }, { "input": "@cache_with_key(lambda huddle_hash, id_list: huddle_hash_cache_key(huddle_hash))\n@cache_with_key(lambda huddle_hash, id_list: huddle_hash_cache_key(huddle_hash), timeout=3600*24*7)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/e8aa77c9b47b62f1d641859fdb109ebde7948349", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": "@cache_with_key(userprofile_by_user_cache_key)\n@cache_with_key(user_profile_by_user_cache_key)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b38a538f8c383996da4841046721d9eaf27a2729", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 6 ] }, { "input": "@cache_with_key(userprofile_by_email_cache_key)\n@cache_with_key(user_profile_by_email_cache_key)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b38a538f8c383996da4841046721d9eaf27a2729", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5, 7, 8, 9 ] }, { "input": "@cache_with_key(lambda realm, email: userprofile_by_email_cache_key(email))\n@cache_with_key(lambda realm, email: user_profile_by_email_cache_key(email))\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b38a538f8c383996da4841046721d9eaf27a2729", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5, 7, 8, 9 ] }, { "input": "def userprofile_by_email_cache_key(email):\ndef user_profile_by_email_cache_key(email):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b38a538f8c383996da4841046721d9eaf27a2729", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 4, 7, 8, 9 ] }, { "input": "def userprofile_by_user_cache_key(user_id):\ndef user_profile_by_user_cache_key(user_id):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b38a538f8c383996da4841046721d9eaf27a2729", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 1 ] }, { "input": " items_for_memcached[userprofile_by_email_cache_key(user_profile.user.email)] = (user_profile,)\n items_for_memcached[userprofile_by_user_cache_key(user_profile.user.id)] = (user_profile,)\n items_for_memcached[user_profile_by_email_cache_key(user_profile.user.email)] = (user_profile,)\n items_for_memcached[user_profile_by_user_cache_key(user_profile.user.id)] = (user_profile,)\n@cache_with_key(userprofile_by_email_cache_key)\n@cache_with_key(user_profile_by_email_cache_key)\n@cache_with_key(lambda realm, email: userprofile_by_email_cache_key(email))\n@cache_with_key(lambda realm, email: user_profile_by_email_cache_key(email))\ndef userprofile_by_email_cache_key(email):\ndef user_profile_by_email_cache_key(email):\n userprofile_by_email_cache_key, userprofile_by_user_cache_key, \\\n user_profile_by_email_cache_key, user_profile_by_user_cache_key, \\\n items_for_memcached[userprofile_by_email_cache_key(user_profile.user.email)] = (user_profile,)\n items_for_memcached[userprofile_by_user_cache_key(user_profile.user.id)] = (user_profile,)\n items_for_memcached[user_profile_by_email_cache_key(user_profile.user.email)] = (user_profile,)\n items_for_memcached[user_profile_by_user_cache_key(user_profile.user.id)] = (user_profile,)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b38a538f8c383996da4841046721d9eaf27a2729", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 4, 5, 8, 9 ] }, { "input": " userprofile_by_email_cache_key, userprofile_by_user_cache_key, \\\n user_profile_by_email_cache_key, user_profile_by_user_cache_key, \\\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b38a538f8c383996da4841046721d9eaf27a2729", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 2, 4, 5, 6, 7, 9 ] }, { "input": " items_for_memcached[userprofile_by_email_cache_key(user_profile.user.email)] = (user_profile,)\n items_for_memcached[userprofile_by_user_cache_key(user_profile.user.id)] = (user_profile,)\n items_for_memcached[user_profile_by_email_cache_key(user_profile.user.email)] = (user_profile,)\n items_for_memcached[user_profile_by_user_cache_key(user_profile.user.id)] = (user_profile,)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/b38a538f8c383996da4841046721d9eaf27a2729", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 4, 5, 7, 8 ] }, { "input": "def do_send_message(message, rendered_content=None, no_log=False):\ndef do_send_message(message, rendered_content=None, no_log=False,\n stream=None):\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/zulip/zulip/commit/9c2a9eb288b819303174c1e91fd2e7ef31e8f0c9", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " do_send_message(message, rendered_content=rendered_content)\n do_send_message(message, rendered_content=rendered_content, stream=stream)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/zulip/zulip/commit/9c2a9eb288b819303174c1e91fd2e7ef31e8f0c9", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 5 ] }, { "input": "def update_pointer(user_profile_id, new_pointer, pointer_updater):\ndef update_pointer(user_profile_id, new_pointer):\n update_pointer(user_profile_id, new_pointer, pointer_updater)\n update_pointer(user_profile_id, new_pointer)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/4a23959b11446b95f1ffd160157c18e40d0a8e43", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " update_pointer(user_profile_id, new_pointer, pointer_updater)\n update_pointer(user_profile_id, new_pointer)\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/4a23959b11446b95f1ffd160157c18e40d0a8e43", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " return Q(recipient=recipient)\n return Q(message__recipient=recipient)\n return Q(recipient=recipient)\n return Q(message__recipient=recipient)\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/6a53d1c35dcf019ab0bf8ca90b9397b41efad9c4", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " query: typeahead_helper.render_pm_object(obj.query),\n query: get_person(obj),\n query: typeahead_helper.render_pm_object(obj.query),\n query: get_person(obj),\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zulip/zulip/commit/096df2d3da802e47cb92851e0da23cef0dfafd77", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " stream_set[stream_name.toLowerCase()] = true;\n stream_info[stream_name.toLowerCase()] = {color: default_color};\n stream_set[stream_list[i].toLowerCase()] = true;\n stream_info[stream_list[i].toLowerCase()] = {color: default_color};\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/zulip/zulip/commit/aad09fc267c593656a9b47dbededbda91ec1c6cb", "target_edit_idx": 3, "propagatable_edit_idx": [ 11 ] }, { "input": " stream_colors[stream_name] = color;\n stream_info[stream_name].color = color;\n stream_colors[stream_name] = color;\n stream_info[stream_name].color = color;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zulip/zulip/commit/aad09fc267c593656a9b47dbededbda91ec1c6cb", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "@login_required\n@require_post\n@login_required_json_view\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4166666666666667, "commit_url": "https://github.com/zulip/zulip/commit/a859c1001733e2cc299842205792fffe1499a27c", "target_edit_idx": 3, "propagatable_edit_idx": [ 8, 9, 10, 6 ] }, { "input": "@login_required\n@require_post\n@login_required_json_view\n@login_required\n@require_post\n@login_required_json_view\n@login_required\n@require_post\n@login_required_json_view\n@login_required\n@require_post\n@login_required_json_view\n@login_required\n@require_post\n@login_required_json_view\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4166666666666667, "commit_url": "https://github.com/zulip/zulip/commit/a859c1001733e2cc299842205792fffe1499a27c", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 10, 3, 6 ] }, { "input": " new_class = ZephyrClass(name=name)\n new_class = ZephyrClass(name=name, realm=realm)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.47058823529411764, "commit_url": "https://github.com/zulip/zulip/commit/ef25dffb92b9cc6374a6a27261cb1cbdacd368c0", "target_edit_idx": 0, "propagatable_edit_idx": [ 11 ] }, { "input": " recipient = ZephyrClass.objects.get(name=recipient_name)\n recipient = ZephyrClass.objects.get(name=recipient_name, realm=sender.realm)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.47058823529411764, "commit_url": "https://github.com/zulip/zulip/commit/ef25dffb92b9cc6374a6a27261cb1cbdacd368c0", "target_edit_idx": 3, "propagatable_edit_idx": [ 9 ] }, { "input": " zephyr_class = ZephyrClass.objects.get(name=sub_name)\n zephyr_class = ZephyrClass.objects.get(name=sub_name, realm=user_profile.realm)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.35294117647058826, "commit_url": "https://github.com/zulip/zulip/commit/ef25dffb92b9cc6374a6a27261cb1cbdacd368c0", "target_edit_idx": 9, "propagatable_edit_idx": [ 3 ] }, { "input": " zephyr_class = ZephyrClass(name=sub_name)\n zephyr_class = ZephyrClass(name=sub_name, realm=user_profile.realm)\n new_class = ZephyrClass(name=name)\n new_class = ZephyrClass(name=name, realm=realm)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.29411764705882354, "commit_url": "https://github.com/zulip/zulip/commit/ef25dffb92b9cc6374a6a27261cb1cbdacd368c0", "target_edit_idx": 11, "propagatable_edit_idx": [ 0 ] }, { "input": " def to_bidirectional(self) -> 'SamplerOutput':\n def to_bidirectional(\n self,\n keep_orig_edges: bool = False,\n ) -> 'SamplerOutput':\n def to_bidirectional(self) -> 'SamplerOutput':\n def to_bidirectional(\n self,\n keep_orig_edges: bool = False,\n ) -> 'SamplerOutput':\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/3c3eb8f64ce422f5116dbaa5c93299a31a58ca44", "target_edit_idx": 4, "propagatable_edit_idx": [ 10 ] }, { "input": " out.num_sampled_nodes = out.num_sampled_edges = None\n out.num_sampled_nodes = out.num_sampled_edges = None\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/3c3eb8f64ce422f5116dbaa5c93299a31a58ca44", "target_edit_idx": 7, "propagatable_edit_idx": [ 13 ] }, { "input": " assert torch.allclose(conv(x, x_0, adj2.t()), out)\n assert torch.allclose(conv(x, x_0, adj2.t()), out, atol=1e-6)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.007619047619047619, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/32e3872721b9475c760d54a2c22ca8365f957017", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " assert torch.allclose(jit(x, x_0, edge_index), out)\n assert torch.allclose(jit(x, x_0, edge_index), out, atol=1e-6)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.007619047619047619, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/32e3872721b9475c760d54a2c22ca8365f957017", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8 ] }, { "input": " assert torch.allclose(conv(x, x_0, adj1.t()), out)\n assert torch.allclose(conv(x, x_0, adj1.t()), out, atol=1e-6)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.007619047619047619, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/32e3872721b9475c760d54a2c22ca8365f957017", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8 ] }, { "input": " assert torch.allclose(result[0], out)\n assert torch.allclose(result[0], out, atol=1e-6)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.007619047619047619, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/32e3872721b9475c760d54a2c22ca8365f957017", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8 ] }, { "input": " assert torch.allclose(result[0], out)\n assert torch.allclose(result[0], out, atol=1e-6)\n assert torch.allclose(conv(x, x_0, adj2.t()), out)\n assert torch.allclose(conv(x, x_0, adj2.t()), out, atol=1e-6)\n assert torch.allclose(conv(x, x_0, adj2.t()), out)\n assert torch.allclose(conv(x, x_0, adj2.t()), out, atol=1e-6)\n assert torch.allclose(jit(x, x_0, edge_index), out)\n assert torch.allclose(jit(x, x_0, edge_index), out, atol=1e-6)\n assert torch.allclose(conv(x, x_0, adj1.t()), out)\n assert torch.allclose(conv(x, x_0, adj1.t()), out, atol=1e-6)\n assert torch.allclose(conv(x, x_0, adj2.t()), out)\n assert torch.allclose(conv(x, x_0, adj2.t()), out, atol=1e-6)\n assert torch.allclose(result[0], out)\n assert torch.allclose(result[0], out, atol=1e-6)\n assert torch.allclose(result[0], out)\n assert torch.allclose(result[0], out, atol=1e-6)\n assert torch.allclose(result[0], out)\n assert torch.allclose(result[0], out, atol=1e-6)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.007619047619047619, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/32e3872721b9475c760d54a2c22ca8365f957017", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8 ] }, { "input": " jit = torch.jit.script(conv.jittable())\n t = '(Tensor, Tensor, OptTensor) -> Tensor'\n jit = torch.jit.script(conv.jittable(t))\n jit = torch.jit.script(conv.jittable())\n t = '(Tensor, Tensor, OptTensor) -> Tensor'\n jit = torch.jit.script(conv.jittable(t))\n jit = torch.jit.script(conv.jittable())\n t = '(Tensor, Tensor, OptTensor) -> Tensor'\n jit = torch.jit.script(conv.jittable(t))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/e9dc54611923f6cff85ccde42bed7c1005fdfdd8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " jit = torch.jit.script(conv.jittable())\n t = '(Tensor, Tensor, OptTensor) -> Tensor'\n jit = torch.jit.script(conv.jittable(t))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/e9dc54611923f6cff85ccde42bed7c1005fdfdd8", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2 ] }, { "input": " self.conv1 = TAGConv(dataset.num_features, 16, cached=True)\n self.conv2 = TAGConv(16, dataset.num_classes, cached=True)\n self.conv1 = TAGConv(dataset.num_features, 16)\n self.conv2 = TAGConv(16, dataset.num_classes)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/b2e7a8cad9cfc959851589725307422b06f9851b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " conv = TAGConv(in_channels, out_channels, K=10, cached=True)\n conv = TAGConv(in_channels, out_channels, K=10)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/b2e7a8cad9cfc959851589725307422b06f9851b", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " conv = TAGConv(in_channels, out_channels, K=10, cached=False)\n conv = TAGConv(in_channels, out_channels, K=10)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/b2e7a8cad9cfc959851589725307422b06f9851b", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " weight = edge_weight[block.e_id]\n weight[block.e_id == -1] = 1\n weight = None if block.e_id is None else edge_weight[block.e_id]\n weight = edge_weight[block.e_id]\n weight[block.e_id == -1] = 1\n weight = None if block.e_id is None else edge_weight[block.e_id]\n weight = edge_weight[block.e_id]\n weight[block.e_id == -1] = 1\n weight = None if block.e_id is None else edge_weight[block.e_id]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/0f26397e705b2bb9e1241fc4fff2e8c0111435bc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " data1.edge_weight = torch.rand(data1.num_edges)\n data1.edge_weight = None\n data3.edge_weight = torch.rand(data3.num_edges)\n data3.edge_weight = None\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/0f26397e705b2bb9e1241fc4fff2e8c0111435bc", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " return item.size(self.cat_dim(key))\n return item.size(self.cat_dim(key, item))\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pyg-team/pytorch_geometric/commit/3dbd7b0b33016ba8c492c786ad1ddcd053fc707c", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " override_with: Optional[Dict] = None,\n override_metas: Optional[Dict] = None,\n override_requests: Optional[Dict] = None,\n uses_with: Optional[Dict] = None,\n uses_metas: Optional[Dict] = None,\n uses_requests: Optional[Dict] = None,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jina-ai/jina/commit/7574e9965dd77e3950c16784f8aebbd48646c603", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 9, 10, 13, 14 ] }, { "input": " if override_with is not None:\n if uses_with is not None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jina-ai/jina/commit/7574e9965dd77e3950c16784f8aebbd48646c603", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 5, 9, 10, 13, 14 ] }, { "input": " cls._override_yml_params(no_tag_yml, 'with', override_with)\n cls._override_yml_params(no_tag_yml, 'metas', override_metas)\n cls._override_yml_params(no_tag_yml, 'requests', override_requests)\n cls._override_yml_params(no_tag_yml, 'with', uses_with)\n cls._override_yml_params(no_tag_yml, 'metas', uses_metas)\n cls._override_yml_params(no_tag_yml, 'requests', uses_requests)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jina-ai/jina/commit/7574e9965dd77e3950c16784f8aebbd48646c603", "target_edit_idx": 9, "propagatable_edit_idx": [ 4, 5, 6, 10, 13, 14 ] }, { "input": " override_with=self.args.uses_with,\n override_metas=self.args.uses_metas,\n override_requests=self.args.uses_requests,\n uses_with=self.args.uses_with,\n uses_metas=self.args.uses_metas,\n uses_requests=self.args.uses_requests,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jina-ai/jina/commit/7574e9965dd77e3950c16784f8aebbd48646c603", "target_edit_idx": 10, "propagatable_edit_idx": [ 4, 5, 6, 9, 13, 14 ] }, { "input": " self._apply(d, context_doc, traverse_on, *args, **kwargs)\n self._apply(d, context_doc, 'chunks', *args, **kwargs)\n self._apply_all(_docs, context_doc, traverse_on, *args, **kwargs)\n self._apply_all(_docs, context_doc, 'chunks', *args, **kwargs)\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/jina-ai/jina/commit/9c5ce6b37633b3338e1f5efb9748b0c18131648a", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " def query(self, vectors: 'np.ndarray', top_k: int, *args, **kwargs) -> Tuple['np.ndarray', 'np.ndarray']:\n dist, ids = self.query_handler.search(vectors, top_k, *args, **kwargs)\n def query(self, keys: 'np.ndarray', top_k: int, *args, **kwargs) -> Tuple['np.ndarray', 'np.ndarray']:\n dist, ids = self.query_handler.search(keys, top_k, *args, **kwargs)\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/jina-ai/jina/commit/4eef0c9cb8b1e93348c9cd9c2c9c29691e81334d", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " with open(filepath, 'w') as f:\n with open(tmp_filepath, 'w') as f:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/chriskiehl/Gooey/commit/fa4bf4dc5cd15c8662c7862073b4bfe6a84294c8", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " run_cmd = 'python {}'.format(filepath)\n run_cmd = 'python {}'.format(tmp_filepath)\n with open(filepath, 'w') as f:\n with open(tmp_filepath, 'w') as f:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/chriskiehl/Gooey/commit/fa4bf4dc5cd15c8662c7862073b4bfe6a84294c8", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": " [InsufficientStockData(variant=variant, available_quantity=0)]\n [\n InsufficientStockData(\n variant=variant, available_quantity=0, order_line=order_line\n )\n ]\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.025, "commit_url": "https://github.com/saleor/saleor/commit/7c23bbd2fbb0d515f57f38c72dcc137f1c204d59", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": " [InsufficientStockData(variant=variant, available_quantity=0)]\n [\n InsufficientStockData(\n variant=variant, available_quantity=0, order_line=order_line\n )\n ]\n [InsufficientStockData(variant=variant, available_quantity=0)]\n [\n InsufficientStockData(\n variant=variant, available_quantity=0, order_line=order_line\n )\n ]\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.025, "commit_url": "https://github.com/saleor/saleor/commit/7c23bbd2fbb0d515f57f38c72dcc137f1c204d59", "target_edit_idx": 13, "propagatable_edit_idx": [ 12 ] }, { "input": " stocks = stocks.annotate_available_quantity()\n stocks = stocks.annotate_available_quantity().order_by(\"pk\")\n stocks = stocks.annotate_available_quantity()\n stocks = stocks.annotate_available_quantity().order_by(\"pk\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/saleor/saleor/commit/1c4ddc02ac551e502884d2da1c54909e1de763e9", "target_edit_idx": 11, "propagatable_edit_idx": [ 13 ] }, { "input": " unit_price: TaxedMoney,\n price: TaxedMoney,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/cc0ff0f7a533ddf5fb2a0ad4e500fa5c5e3b88ea", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " default_value = calculate_tax_rate(unit_price)\n default_value = calculate_tax_rate(price)\n unit_price: TaxedMoney,\n price: TaxedMoney,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/cc0ff0f7a533ddf5fb2a0ad4e500fa5c5e3b88ea", "target_edit_idx": 3, "propagatable_edit_idx": [ 2 ] }, { "input": " assert line.undiscounted_unit_price == unit_price\n assert line.undiscounted_total_price == total_price\n assert line.tax_rate == tax_rate\n assert line.undiscounted_unit_price == undiscounted_unit_price\n assert line.undiscounted_total_price == undiscounted_total_price\n undiscounted_total_price = unit_price * quantity\n undiscounted_total_price = undiscounted_unit_price * quantity\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/saleor/saleor/commit/58ffafb594aec5f497cd7c66d091ad8a07fc94b7", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " undiscounted_total_price = unit_price * quantity\n undiscounted_total_price = undiscounted_unit_price * quantity\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/saleor/saleor/commit/58ffafb594aec5f497cd7c66d091ad8a07fc94b7", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " errors = response[\"data\"][\"updateMetadata\"][\"errors\"]\n assert invalid_id_graphql_error_raised(errors)\n assert item_contains_proper_public_metadata(\n response[\"data\"][\"updateMetadata\"][\"item\"], checkout, checkout_id\n )\n errors = response[\"data\"][\"updateMetadata\"][\"errors\"]\n assert invalid_id_graphql_error_raised(errors)\n assert response[\"data\"][\"updateMetadata\"][\"errors\"] == []\n mock_checkout_updated.assert_called_once_with(checkout)\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/saleor/saleor/commit/a0ec18b675f8383dbf73fa7993486e20b49e9a21", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " assert data[\"errors\"]\n assert data[\"errors\"][0][\"code\"] == AttributeErrorCode.ALREADY_EXISTS.name\n assert data[\"errors\"][0][\"field\"] == \"name\"\n assert not data[\"errors\"]\n assert data[\"attributeValue\"][\"slug\"] == \"red-2\"\n assert data[\"errors\"]\n assert data[\"errors\"][0][\"code\"] == AttributeErrorCode.ALREADY_EXISTS.name\n assert data[\"errors\"][0][\"field\"] == \"name\"\n assert not data[\"errors\"]\n assert data[\"attributeValue\"][\"slug\"] == \"red-2\"", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/saleor/saleor/commit/e44bd9163914dfa0acb3370a2c8a3c9609def7c7", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " manager = get_plugins_manager()\n manager = get_plugins_manager()\n manager = get_plugins_manager()\n manager = get_plugins_manager()\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/saleor/saleor/commit/0ff5a60654be48850d69f90c3d4589028f8e7569", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 11, 4 ] }, { "input": " handle_cancellation(notification, config, manager)\n handle_cancellation(notification, config)\n handle_cancellation(notification, config, manager)\n handle_cancellation(notification, config)\n handle_cancellation(notification, gateway_config, manager)\n handle_cancellation(notification, gateway_config)\n handle_cancellation(notification, config, manager)\n handle_cancellation(notification, config)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/saleor/saleor/commit/0ff5a60654be48850d69f90c3d4589028f8e7569", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 12, 5 ] }, { "input": " handle_cancellation(notification, config, manager)\n handle_cancellation(notification, config)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/saleor/saleor/commit/0ff5a60654be48850d69f90c3d4589028f8e7569", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 12, 5 ] }, { "input": " blocks = data[\"blocks\"]\n entity_map = data[\"entityMap\"]\n blocks = data.get(\"blocks\")\n entity_map = data.get(\"entityMap\")\n\n if not blocks:\n return data\n blocks = data[\"blocks\"]\n entity_map = data[\"entityMap\"]\n blocks = data.get(\"blocks\")\n entity_map = data.get(\"entityMap\")\n\n if not blocks:\n return data\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/saleor/saleor/commit/c822b1e6640ace52de2325d069393c28e0947a5a", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " assert f\"checkout={checkout_id}\" in response.url\n assert f\"checkout={quote_plus(checkout_id)}\" in response.url\n assert f\"checkout={checkout_id}\" in response.url\n assert f\"checkout={quote_plus(checkout_id)}\" in response.url\n assert f\"payment={quote_plus(payment_id)}\" in response.url\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/b54408f49c9c67750ace6f99744ac0564a17c0d8", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " file_name = get_filename(\"product\")\n file_name = get_filename(\"product\", file_type)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/saleor/saleor/commit/da3c1fb7d820bc9757efd0a6152d3df1f029d0c8", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 5 ] }, { "input": " export_data, headers, csv_headers_mapping, delimiter, export_file, file_name\n export_data,\n headers,\n csv_headers_mapping,\n delimiter,\n export_file,\n file_name,\n file_type,\n export_data, headers, csv_headers_mapping, delimiter, export_file, file_name\n export_data,\n headers,\n csv_headers_mapping,\n delimiter,\n export_file,\n file_name,\n FileTypes.CSV,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/da3c1fb7d820bc9757efd0a6152d3df1f029d0c8", "target_edit_idx": 4, "propagatable_edit_idx": [ 10 ] }, { "input": "def get_filename(model_name: str) -> str:\n return \"{}_data_{}.csv\".format(model_name, timezone.now().strftime(\"%d_%m_%Y\"))\ndef get_filename(model_name: str, file_type: str) -> str:\n return \"{}_data_{}.{}\".format(\n model_name, timezone.now().strftime(\"%d_%m_%Y\"), file_type\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/saleor/saleor/commit/da3c1fb7d820bc9757efd0a6152d3df1f029d0c8", "target_edit_idx": 5, "propagatable_edit_idx": [ 9, 3 ] }, { "input": " file_name = get_filename(\"test\")\n file_name = get_filename(\"test\", FileTypes.CSV)\n file_name = get_filename(\"product\")\n file_name = get_filename(\"product\", file_type)\ndef get_filename(model_name: str) -> str:\n return \"{}_data_{}.csv\".format(model_name, timezone.now().strftime(\"%d_%m_%Y\"))\ndef get_filename(model_name: str, file_type: str) -> str:\n return \"{}_data_{}.{}\".format(\n model_name, timezone.now().strftime(\"%d_%m_%Y\"), file_type\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/saleor/saleor/commit/da3c1fb7d820bc9757efd0a6152d3df1f029d0c8", "target_edit_idx": 9, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "from django.utils.translation import pgettext_lazy\nfrom django.utils.translation import pgettext_lazy\nfrom django.utils.translation import pgettext_lazy\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/1785689f9911bc47a6ff7fbc2cce1268535bf9fb", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " permissions = (\n (\n MenuPermissions.MANAGE_MENUS.codename,\n pgettext_lazy(\"Permission description\", \"Manage navigation.\"),\n ),\n )\n permissions = ((MenuPermissions.MANAGE_MENUS.codename, \"Manage navigation.\"),)\n permissions = (\n (\n PagePermissions.MANAGE_PAGES.codename,\n pgettext_lazy(\"Permission description\", \"Manage pages.\"),\n ),\n )\n permissions = ((PagePermissions.MANAGE_PAGES.codename, \"Manage pages.\"),)\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/saleor/saleor/commit/1785689f9911bc47a6ff7fbc2cce1268535bf9fb", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "def create_custom_form_field(structure: Dict[str, str]) -> forms.Field:\ndef create_custom_form_field(\n config: Dict[str, str], structure: Dict[str, str]\n) -> forms.Field:\n template_field = create_custom_form_field(config_char_structure)\n field_name = config_char_structure[\"name\"]\n plugin_config_structure = BraintreeGatewayPlugin.CONFIG_STRUCTURE[field_name]\n template_field = create_custom_form_field(\n config_char_structure, plugin_config_structure\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/saleor/saleor/commit/bc9525c5db7c65e08b04c4afdbb0c32145464489", "target_edit_idx": 2, "propagatable_edit_idx": [ 9 ] }, { "input": " structure = current_configuration.configuration\n if structure is None:\n configuration = current_configuration.configuration\n if configuration is None:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/saleor/saleor/commit/bc9525c5db7c65e08b04c4afdbb0c32145464489", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " for elem in structure:\n slug = slugify(elem[\"name\"])\n self.fields[slug] = create_custom_form_field(elem)\n for elem in configuration:\n name = elem[\"name\"]\n slug = slugify(name)\n self.fields[slug] = create_custom_form_field(\n elem, self.plugin.CONFIG_STRUCTURE[name]\n )\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/bc9525c5db7c65e08b04c4afdbb0c32145464489", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " template_field = create_custom_form_field(config_char_structure)\n field_name = config_char_structure[\"name\"]\n plugin_config_structure = BraintreeGatewayPlugin.CONFIG_STRUCTURE[field_name]\n template_field = create_custom_form_field(\n config_char_structure, plugin_config_structure\n )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/saleor/saleor/commit/bc9525c5db7c65e08b04c4afdbb0c32145464489", "target_edit_idx": 9, "propagatable_edit_idx": [ 2 ] }, { "input": "@patch('saleor.account.emails.send_password_reset_email.delay')\n@patch('saleor.dashboard.emails.send_set_password_customer_email.delay')\n@patch('saleor.account.emails.send_password_reset_email.delay')\n@patch('saleor.dashboard.emails.send_set_password_staff_email.delay')\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/saleor/saleor/commit/3dd6c50b25e3b98dda9f139e51d9e2617c28617f", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " send_password_reset_mock, staff_api_client, address,\n send_set_password_customer_email_mock, staff_api_client, address,\n assert send_password_reset_mock.call_count == 1\n args, kwargs = send_password_reset_mock.call_args\n call_context = args[0]\n call_email = args[1]\n assert call_email == email\n assert 'token' in call_context\n assert send_set_password_customer_email_mock.call_count == 1\n args, kwargs = send_set_password_customer_email_mock.call_args\n call_pk = args[0]\n assert call_pk == customer.pk\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/3dd6c50b25e3b98dda9f139e51d9e2617c28617f", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " assert send_password_reset_mock.call_count == 1\n args, kwargs = send_password_reset_mock.call_args\n call_context = args[0]\n call_email = args[1]\n assert call_email == email\n assert 'token' in call_context\n assert send_set_password_customer_email_mock.call_count == 1\n args, kwargs = send_set_password_customer_email_mock.call_args\n call_pk = args[0]\n assert call_pk == customer.pk\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/saleor/saleor/commit/3dd6c50b25e3b98dda9f139e51d9e2617c28617f", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": "from ..core.fields import PrefetchingConnectionField\nfrom ..core.fields import PrefetchingConnectionField\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/5a91ceefb2cc31bb1492f0bab67998b5ffe6926a", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " \n \n \n \n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/saleor/saleor/commit/83e7aff7e2483d25737b4c6fd965f16d3094f775", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "USER_SEARCH_FIELDS = (\nCUSTOMER_SEARCH_FIELDS = (\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/b22133748f1c16d42db39e295b0056b63d82ec11", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " queryset=qs, query=query, search_fields=USER_SEARCH_FIELDS)\n queryset=qs, query=query, search_fields=CUSTOMER_SEARCH_FIELDS)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/b22133748f1c16d42db39e295b0056b63d82ec11", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " id = data.get('id')\n node_id = data.get('id')\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/a4a17a155d347a681c81324e2ab0140aba30982d", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " instance = get_node(info, id, only_type=model_type)\n instance = get_node(info, node_id, only_type=model_type)\n db_id = instance.id\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/a4a17a155d347a681c81324e2ab0140aba30982d", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " site_settings = request.site.settings\n track_inventory = request.site.settings.track_inventory_by_default\n site_settings = request.site.settings\n track_inventory = request.site.settings.track_inventory_by_default\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/6c3901cf26b40891661d02dfdae30ec96980084b", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " variant = ProductVariant(product=product)\n variant = ProductVariant(\n product=product, track_inventory=track_inventory)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.027777777777777776, "commit_url": "https://github.com/saleor/saleor/commit/6c3901cf26b40891661d02dfdae30ec96980084b", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " initial_track_inventory=site_settings.track_inventory_by_default,\n initial_track_inventory=site_settings.track_inventory_by_default,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/6c3901cf26b40891661d02dfdae30ec96980084b", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " def save(self, user):\n order = self.instance.delivery_group.order\n def save(self):\n def save(self, user):\n def save(self):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/d18298d534c77a5e88bdec4c39e95ecad0a8e4eb", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " def save(self, user):\n def save(self):\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/d18298d534c77a5e88bdec4c39e95ecad0a8e4eb", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": " def save(self, user=None):\n def move_items(self, user=None):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/6925ccb52fbdaa5d14ef0120c2a5dbe41c0ae418", "target_edit_idx": 5, "propagatable_edit_idx": [ 12 ] }, { "input": " move_items_form.save(user=request.user)\n move_items_form.move_items(user=request.user)\n def save(self, user=None):\n def move_items(self, user=None):\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/saleor/saleor/commit/6925ccb52fbdaa5d14ef0120c2a5dbe41c0ae418", "target_edit_idx": 12, "propagatable_edit_idx": [ 5 ] }, { "input": " return storage.get('address')\n address_data = storage.get('address', {})\n return Address(**address_data)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/saleor/saleor/commit/3b19dd881117cb2ef3dea51c1e94d561822d94d5", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " address = storage.get('address')\n address_data = storage.get('address', {})\n address = Address(**address_data)\n return storage.get('address')\n address_data = storage.get('address', {})\n return Address(**address_data)\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/saleor/saleor/commit/3b19dd881117cb2ef3dea51c1e94d561822d94d5", "target_edit_idx": 8, "propagatable_edit_idx": [ 3 ] }, { "input": "from manimlib.animation.creation import ShowCreation\nfrom manimlib.animation.creation import DrawBorderThenFill\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.00036603221083455345, "commit_url": "https://github.com/ManimCommunity/manim/commit/3628b61d75d18de21ac1f5bb711d3e594cd67f0a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " \"bubble_creation_class\": ShowCreation,\n \"bubble_creation_class\": DrawBorderThenFill,\nfrom manimlib.animation.creation import ShowCreation\nfrom manimlib.animation.creation import DrawBorderThenFill\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.00036603221083455345, "commit_url": "https://github.com/ManimCommunity/manim/commit/3628b61d75d18de21ac1f5bb711d3e594cd67f0a", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " stage_table_name = f\"stage_{inputs.table_id}\" if requires_merge else inputs.table_id\n data_interval_end_str = dt.datetime.fromisoformat(inputs.data_interval_end).strftime(\"%Y-%m-%d_%H-%M-%S\")\n stage_table_name = f\"stage_{inputs.table_id}_{data_interval_end_str}\" if requires_merge else inputs.table_id\n stagle_table_name = f\"stage_{inputs.table_name}\" if requires_merge else inputs.table_name\n data_interval_end_str = dt.datetime.fromisoformat(inputs.data_interval_end).strftime(\"%Y-%m-%d_%H-%M-%S\")\n stagle_table_name = (\n f\"stage_{inputs.table_name}_{data_interval_end_str}\" if requires_merge else inputs.table_name\n )\n stagle_table_name = f\"stage_{inputs.table_name}\" if requires_merge else inputs.table_name\n data_interval_end_str = dt.datetime.fromisoformat(inputs.data_interval_end).strftime(\"%Y-%m-%d_%H-%M-%S\")\n stagle_table_name = (\n f\"stage_{inputs.table_name}_{data_interval_end_str}\" if requires_merge else inputs.table_name\n )\n stagle_table_name = f\"stage_{inputs.table_name}\" if requires_merge else inputs.table_name\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/PostHog/posthog/commit/d009c8a5b3e1310947711f543ebd2ee63984a1bc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": "def pause_external_data_schedule(external_data_source: ExternalDataSource):\ndef pause_external_data_schedule(id: str):\ndef unpause_external_data_schedule(external_data_source: ExternalDataSource):\ndef unpause_external_data_schedule(id: str):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.022727272727272728, "commit_url": "https://github.com/PostHog/posthog/commit/c147f9114ad1d2d06c80d5a8929c8b5285cc271b", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": " pause_schedule(temporal, schedule_id=str(external_data_source.id))\n pause_schedule(temporal, schedule_id=id)\n unpause_schedule(temporal, schedule_id=str(external_data_source.id))\n unpause_schedule(temporal, schedule_id=id)\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/PostHog/posthog/commit/c147f9114ad1d2d06c80d5a8929c8b5285cc271b", "target_edit_idx": 10, "propagatable_edit_idx": [ 12 ] }, { "input": "def unpause_external_data_schedule(external_data_source: ExternalDataSource):\ndef unpause_external_data_schedule(id: str):\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.022727272727272728, "commit_url": "https://github.com/PostHog/posthog/commit/c147f9114ad1d2d06c80d5a8929c8b5285cc271b", "target_edit_idx": 11, "propagatable_edit_idx": [ 9 ] }, { "input": "def update_batch_export_run_status(\n run_id: UUID, status: str, latest_error: str | None, records_completed: int = 0\ndef update_batch_export_run(\n run_id: UUID,\n status: str,\n latest_error: str | None,\n records_completed: int = 0,\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/PostHog/posthog/commit/5f4cb5486187e4167b53b1131e2272c7fcf9aae9", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " batch_export_run = await sync_to_async(update_batch_export_run_status)(\n batch_export_run = await sync_to_async(update_batch_export_run)(\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/PostHog/posthog/commit/5f4cb5486187e4167b53b1131e2272c7fcf9aae9", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " async with get_client() as client:\n async with get_client(team_id=inputs.team_id) as client:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/PostHog/posthog/commit/f59cf7edf1d3e99db0647fd697ffc59aa1c744c7", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7, 8, 9 ] }, { "input": " async with get_client() as client:\n async with get_client(team_id=inputs.team_id) as client:\n async with get_client() as client:\n async with get_client(team_id=inputs.team_id) as client:\n async with get_client() as client:\n async with get_client(team_id=inputs.team_id) as client:\n async with get_client() as client:\n async with get_client(team_id=inputs.team_id) as client:\n async with get_client() as client:\n async with get_client(team_id=inputs.team_id) as client:\n async with get_client() as client:\n async with get_client(team_id=inputs.team_id) as client:\nasync def get_client(**kwargs) -> collections.abc.AsyncIterator[ClickHouseClient]:\nasync def get_client(\n *, team_id: typing.Optional[int] = None, **kwargs\n) -> collections.abc.AsyncIterator[ClickHouseClient]:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/PostHog/posthog/commit/f59cf7edf1d3e99db0647fd697ffc59aa1c744c7", "target_edit_idx": 5, "propagatable_edit_idx": [ 3, 4, 6, 7, 8, 9 ] }, { "input": "async def get_client(**kwargs) -> collections.abc.AsyncIterator[ClickHouseClient]:\nasync def get_client(\n *, team_id: typing.Optional[int] = None, **kwargs\n) -> collections.abc.AsyncIterator[ClickHouseClient]:\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/PostHog/posthog/commit/f59cf7edf1d3e99db0647fd697ffc59aa1c744c7", "target_edit_idx": 9, "propagatable_edit_idx": [ 3, 4, 5, 6, 7, 8 ] }, { "input": " for key in VALIDATE_PROP_TYPES[self.type]:\n if getattr(self, key, None) is None:\n raise ValueError(f\"Missing required key {key} for property type {self.type} with name {self.key}\")\n for attr in VALIDATE_PROP_TYPES[self.type]:\n if getattr(self, attr, None) is None:\n raise ValueError(f\"Missing required attr {attr} for property type {self.type} with key {self.key}\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.02027027027027027, "commit_url": "https://github.com/PostHog/posthog/commit/ff17fd6e152347a80345e44b43539916b12d79d8", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " for key in VALIDATE_BEHAVIORAL_PROP_TYPES[cast(BehavioralPropertyType, self.value)]:\n if getattr(self, key, None) is None:\n raise ValueError(f\"Missing required key {key} for property type {self.type}::{self.value}\")\n for attr in VALIDATE_BEHAVIORAL_PROP_TYPES[cast(BehavioralPropertyType, self.value)]:\n if getattr(self, attr, None) is None:\n raise ValueError(f\"Missing required attr {attr} for property type {self.type}::{self.value}\")\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.02027027027027027, "commit_url": "https://github.com/PostHog/posthog/commit/ff17fd6e152347a80345e44b43539916b12d79d8", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " includeScrollDepth: true,\n includeScrollDepth: statusCheck?.isSendingPageLeavesScroll,\n includeScrollDepth: true,\n includeScrollDepth: statusCheck?.isSendingPageLeavesScroll,\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/PostHog/posthog/commit/d1a4d6651e437c09c26117955c0b61a2a39435b3", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "from posthog.api.person import PersonSerializer\nfrom posthog.api.person import MinimalPersonSerializer\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/PostHog/posthog/commit/3c3534fcd2b2e7b6ff63835b271ffdc3732d594e", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " person = PersonSerializer(required=False)\n person = MinimalPersonSerializer(required=False)\nfrom posthog.api.person import PersonSerializer\nfrom posthog.api.person import MinimalPersonSerializer\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/PostHog/posthog/commit/3c3534fcd2b2e7b6ff63835b271ffdc3732d594e", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " insights, assets = generate_assets(subscription)\n\n insights, assets = generate_assets(subscription)\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/PostHog/posthog/commit/208451b1a04f679b50eccfbda21942d83f5a67d3", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " escaped_url = context.add_value(self.url)\n escaped_url = context.add_sensitive_value(self.url)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/PostHog/posthog/commit/ff66de08d395815c7ac804babc48fc662be1558b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " escaped_access_key = context.add_value(self.access_key)\n escaped_access_secret = context.add_value(self.access_secret)\n escaped_access_key = context.add_sensitive_value(self.access_key)\n escaped_access_secret = context.add_sensitive_value(self.access_secret)\n escaped_url = context.add_value(self.url)\n escaped_url = context.add_sensitive_value(self.url)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.125, "commit_url": "https://github.com/PostHog/posthog/commit/ff66de08d395815c7ac804babc48fc662be1558b", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "def run_sql_with_exceptions(sql: str):\ndef run_sql_with_exceptions(sql: str, settings={}):\n run_sql_with_exceptions(ADD_SIZE_WRITABLE_SESSION_REPLAY_EVENTS_TABLE_SQL()),\n run_sql_with_exceptions(ADD_SIZE_DISTRIBUTED_SESSION_REPLAY_EVENTS_TABLE_SQL()),\n run_sql_with_exceptions(ADD_SIZE_SESSION_REPLAY_EVENTS_TABLE_SQL()),\n run_sql_with_exceptions(ADD_SIZE_WRITABLE_SESSION_REPLAY_EVENTS_TABLE_SQL(), settings=settings),\n run_sql_with_exceptions(ADD_SIZE_DISTRIBUTED_SESSION_REPLAY_EVENTS_TABLE_SQL(), settings=settings),\n run_sql_with_exceptions(ADD_SIZE_SESSION_REPLAY_EVENTS_TABLE_SQL(), settings=settings),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.017241379310344827, "commit_url": "https://github.com/PostHog/posthog/commit/ca2ebef98233e15d4a42750fe5e1c41ec24962a7", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " run_sql_with_exceptions(ADD_SIZE_WRITABLE_SESSION_REPLAY_EVENTS_TABLE_SQL()),\n run_sql_with_exceptions(ADD_SIZE_DISTRIBUTED_SESSION_REPLAY_EVENTS_TABLE_SQL()),\n run_sql_with_exceptions(ADD_SIZE_SESSION_REPLAY_EVENTS_TABLE_SQL()),\n run_sql_with_exceptions(ADD_SIZE_WRITABLE_SESSION_REPLAY_EVENTS_TABLE_SQL(), settings=settings),\n run_sql_with_exceptions(ADD_SIZE_DISTRIBUTED_SESSION_REPLAY_EVENTS_TABLE_SQL(), settings=settings),\n run_sql_with_exceptions(ADD_SIZE_SESSION_REPLAY_EVENTS_TABLE_SQL(), settings=settings),\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.005747126436781609, "commit_url": "https://github.com/PostHog/posthog/commit/ca2ebef98233e15d4a42750fe5e1c41ec24962a7", "target_edit_idx": 3, "propagatable_edit_idx": [ 0 ] }, { "input": " if not current_event or current_event_size + additional_bytes > max_size_bytes:\n if not current_event or current_event_size + additional_bytes > size_with_headroom:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/PostHog/posthog/commit/7970f8a6bc3355597f09ab8e2dd41d7a824c7635", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " if byte_size_dict(snapshot_data_list) < max_size_bytes:\n if byte_size_dict(snapshot_data_list) < size_with_headroom:\n if not current_event or current_event_size + additional_bytes > max_size_bytes:\n if not current_event or current_event_size + additional_bytes > size_with_headroom:\n if byte_size_dict(other_snapshots) < max_size_bytes:\n if byte_size_dict(other_snapshots) < size_with_headroom:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/PostHog/posthog/commit/7970f8a6bc3355597f09ab8e2dd41d7a824c7635", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 5 ] }, { "input": "def extra_settings(query_id: Optional[str], tags: Dict[str, Any]) -> Dict[str, Any]:\n if tags.get(\"kind\") != \"celery\" or not clickhouse_at_least_228():\ndef extra_settings(query_id: Optional[str]) -> Dict[str, Any]:\n if not clickhouse_at_least_228():\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/PostHog/posthog/commit/ea20d6e08ad86b0dd055812f6530c4938a807fe9", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " core_settings = {**default_settings(), **(settings or {}), **extra_settings(query_id, tags)}\n core_settings = {**default_settings(), **(settings or {}), **extra_settings(query_id)}\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/PostHog/posthog/commit/ea20d6e08ad86b0dd055812f6530c4938a807fe9", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5 ] }, { "input": " settings = extra_settings(\"some_query_id\", {\"kind\": \"celery\"})\n settings = extra_settings(\"some_query_id\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/PostHog/posthog/commit/ea20d6e08ad86b0dd055812f6530c4938a807fe9", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5 ] }, { "input": " settings = extra_settings(\"some_query_id\", {\"kind\": \"celery\"})\n settings = extra_settings(\"some_query_id\")\ndef extra_settings(query_id: Optional[str], tags: Dict[str, Any]) -> Dict[str, Any]:\n if tags.get(\"kind\") != \"celery\" or not clickhouse_at_least_228():\ndef extra_settings(query_id: Optional[str]) -> Dict[str, Any]:\n if not clickhouse_at_least_228():\n core_settings = {**default_settings(), **(settings or {}), **extra_settings(query_id, tags)}\n core_settings = {**default_settings(), **(settings or {}), **extra_settings(query_id)}\n settings = extra_settings(\"some_query_id\", {\"kind\": \"celery\"})\n settings = extra_settings(\"some_query_id\")\n settings = extra_settings(\"some_query_id\", {\"kind\": \"celery\"})\n settings = extra_settings(\"some_query_id\")\n settings = extra_settings(\"some_query_id\", {\"kind\": \"celery\"})\n settings = extra_settings(\"some_query_id\")\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/PostHog/posthog/commit/ea20d6e08ad86b0dd055812f6530c4938a807fe9", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5 ] }, { "input": " raw_result = insight_sync_execute(query, params, query_type=\"actors_session_ids_with_recordings\")\n raw_result = insight_sync_execute(\n query, params, query_type=\"actors_session_ids_with_recordings\", filter=self._filter\n )\n result[index] = insight_sync_execute(sql, params, query_type=query_type)\n result[index] = insight_sync_execute(sql, params, query_type=query_type, filter=filter)\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.027777777777777776, "commit_url": "https://github.com/PostHog/posthog/commit/ca2d618ad31e2e69baf9a047c7809c805cec8422", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": "
\n            \n            
\n            \n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/PostHog/posthog/commit/e87b962050c090f254668057897fe1729624c389",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "                    organization=domain_instance.organization.id,\n                    organization=domain_instance.organization_id,\n                    organization=domain_instance.organization.id,\n                    organization=domain_instance.organization_id,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/PostHog/posthog/commit/5a86179075a7e8ac2dc3f2ece75ea5fea65f9655",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "            capture_internal(event, self.distinct_ids[-1], None, None, now, now, self.team.id)\n            capture_internal(event, self.distinct_ids[-1], None, None, now, now, self.team_id)\n            capture_internal(event, self.distinct_ids[-1], None, None, now, now, self.team.id)\n            capture_internal(event, self.distinct_ids[-1], None, None, now, now, self.team_id)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/PostHog/posthog/commit/5a86179075a7e8ac2dc3f2ece75ea5fea65f9655",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "    using_new_table = using_new_table or _fetch_person_distinct_id2_ready()\n    using_new_table = using_new_table or fetch_person_distinct_id2_ready()\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/PostHog/posthog/commit/5dba6f1fd47f89a0ff5ebf40c5e49741f71699a7",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "def _fetch_person_distinct_id2_ready() -> bool:\ndef fetch_person_distinct_id2_ready() -> bool:\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/PostHog/posthog/commit/5dba6f1fd47f89a0ff5ebf40c5e49741f71699a7",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "            taxonomicGroupTypes,\n            actionsTaxonomicGroupTypes,\n            propertiesTaxonomicGroupTypes,\n            taxonomicGroupTypes,\n            actionsTaxonomicGroupTypes,\n            propertiesTaxonomicGroupTypes,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/PostHog/posthog/commit/15ed4519b7117f32ea311472a4995489bb6840f0",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "        cy.get('[data-attr=add-action-event-button]').click()\n        cy.get('[data-attr=add-action-event-button]').first().click()\n        cy.get('[data-attr=add-action-event-button]').click()\n        cy.get('[data-attr=add-action-event-button]').first().click()\n        cy.get('[data-attr=add-action-event-button]').click()\n        cy.get('[data-attr=add-action-event-button]').first().click()\n        cy.get('[data-attr=add-action-event-button]').click()\n        cy.get('[data-attr=add-action-event-button]').first().click()\n        cy.get('[data-attr=add-action-event-button]').click()\n        cy.get('[data-attr=add-action-event-button]').first().click()\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/PostHog/posthog/commit/a5215f76db73cd6388e44a727b75b4e44e5d1c66",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4
        ]
    },
    {
        "input": "def format_action_filter(action: Action, prepend: str = \"action\", use_loop: bool = False) -> Tuple[str, Dict]:\ndef format_action_filter(\n    action: Action, prepend: str = \"action\", use_loop: bool = False, filter_by_team=True\n) -> Tuple[str, Dict]:\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.043478260869565216,
        "commit_url": "https://github.com/PostHog/posthog/commit/828c301299e00b01cdca04921c7e27accbb4102e",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "def format_entity_filter(entity: Entity, prepend: str = \"action\") -> Tuple[str, Dict]:\ndef format_entity_filter(entity: Entity, prepend: str = \"action\", filter_by_team=True) -> Tuple[str, Dict]:\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/PostHog/posthog/commit/828c301299e00b01cdca04921c7e27accbb4102e",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "            entity_filter, params = format_action_filter(action, prepend=prepend)\n            entity_filter, params = format_action_filter(action, prepend=prepend, filter_by_team=filter_by_team)\ndef format_action_filter(action: Action, prepend: str = \"action\", use_loop: bool = False) -> Tuple[str, Dict]:\ndef format_action_filter(\n    action: Action, prepend: str = \"action\", use_loop: bool = False, filter_by_team=True\n) -> Tuple[str, Dict]:\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.043478260869565216,
        "commit_url": "https://github.com/PostHog/posthog/commit/828c301299e00b01cdca04921c7e27accbb4102e",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0
        ]
    },
    {
        "input": "    filter_sql, params = format_entity_filter(entity, prepend=prepend)\n    filter_sql, params = format_entity_filter(entity, prepend=prepend, filter_by_team=False)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/PostHog/posthog/commit/828c301299e00b01cdca04921c7e27accbb4102e",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "def _create_action(**kwargs):\n    team = kwargs.pop(\"team\")\n    name = kwargs.pop(\"name\")\ndef _create_action(team, name, properties=[]):\n            action1 = _create_action(name=\"custom-event\", team=self.team)\n            action2 = _create_action(name=\"another-event\", team=self.team)\n            action1 = _create_action(\n                name=\"custom-event\", team=self.team, properties=[{\"key\": \"$os\", \"value\": \"Windows 95\"}]\n            )\n            action2 = _create_action(name=\"custom-event\", team=self.team)\n            action3 = _create_action(name=\"another-event\", team=self.team)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/PostHog/posthog/commit/828c301299e00b01cdca04921c7e27accbb4102e",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "            action1 = _create_action(name=\"custom-event\", team=self.team)\n            action2 = _create_action(name=\"another-event\", team=self.team)\n            action1 = _create_action(\n                name=\"custom-event\", team=self.team, properties=[{\"key\": \"$os\", \"value\": \"Windows 95\"}]\n            )\n            action2 = _create_action(name=\"custom-event\", team=self.team)\n            action3 = _create_action(name=\"another-event\", team=self.team)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/PostHog/posthog/commit/828c301299e00b01cdca04921c7e27accbb4102e",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "    ewap.uuid,\n    ewap.event,\n    ewap.properties,\n    ewap.timestamp,\n    ewap.team_id,\n    ewap.distinct_id,\n    ewap.elements_chain,\n    ewap.created_at\nFROM events_with_array_props_view as ewap\n    uuid,\n    event,\n    properties,\n    timestamp,\n    team_id,\n    distinct_id,\n    elements_chain,\n    created_at\nFROM events\n    ewap.uuid,\n    ewap.event,\n    ewap.properties,\n    ewap.timestamp,\n    ewap.team_id,\n    ewap.distinct_id,\n    ewap.elements_chain,\n    ewap.created_at\nFROM events_with_array_props_view as ewap WHERE team_id = %(team_id)s\n    uuid,\n    event,\n    properties,\n    timestamp,\n    team_id,\n    distinct_id,\n    elements_chain,\n    created_at\nFROM events WHERE team_id = %(team_id)s\n    ewap.uuid,\n    ewap.event,\n    ewap.properties,\n    ewap.timestamp,\n    ewap.team_id,\n    ewap.distinct_id,\n    ewap.elements_chain,\n    ewap.created_at\nFROM events_with_array_props_view ewap WHERE uuid = %(event_id)s AND team_id = %(team_id)s\n    uuid,\n    event,\n    properties,\n    timestamp,\n    team_id,\n    distinct_id,\n    elements_chain,\n    created_at\nFROM events WHERE uuid = %(event_id)s AND team_id = %(team_id)s\n    ewap.uuid,\n    ewap.event,\n    ewap.properties,\n    ewap.timestamp,\n    ewap.team_id,\n    ewap.distinct_id,\n    ewap.elements_chain,\n    ewap.created_at\nFROM events_with_array_props_view AS ewap\n    uuid,\n    event,\n    properties,\n    timestamp,\n    team_id,\n    distinct_id,\n    elements_chain,\n    created_at\nFROM events\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/PostHog/posthog/commit/9823e38163cc76d2a882f2b574040d89e25631dc",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            9,
            7
        ]
    },
    {
        "input": "ORDER BY toDate(ewap.timestamp) DESC, ewap.timestamp DESC {limit}\nORDER BY toDate(timestamp) DESC, timestamp DESC {limit}\nORDER BY toDate(ewap.timestamp) DESC, ewap.timestamp DESC {limit}\nORDER BY toDate(timestamp) DESC, timestamp DESC {limit}\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/PostHog/posthog/commit/9823e38163cc76d2a882f2b574040d89e25631dc",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\t\tdiagnoseTUNFailure(logf)\n\t\tdiagnoseTUNFailure(tunName, logf)\nfunc diagnoseTUNFailure(logf logger.Logf) {\nfunc diagnoseTUNFailure(tunName string, logf logger.Logf) {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tailscale/tailscale/commit/bbb4631e04c99726f9ca1eacfc54ffd9f7e1618f",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "func diagnoseTUNFailure(logf logger.Logf) {\nfunc diagnoseTUNFailure(tunName string, logf logger.Logf) {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tailscale/tailscale/commit/bbb4631e04c99726f9ca1eacfc54ffd9f7e1618f",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "\t\tdiagnoseLinuxTUNFailure(logf)\n\t\tdiagnoseLinuxTUNFailure(tunName, logf)\n\tcase \"darwin\":\n\t\tdiagnoseDarwinTUNFailure(tunName, logf)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tailscale/tailscale/commit/bbb4631e04c99726f9ca1eacfc54ffd9f7e1618f",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "func diagnoseLinuxTUNFailure(logf logger.Logf) {\nfunc diagnoseDarwinTUNFailure(tunName string, logf logger.Logf) {\n\tif os.Getuid() != 0 {\n\t\tlogf(\"failed to create TUN device as non-root user; use 'sudo tailscaled', or run under launchd with 'sudo tailscaled install-system-daemon'\")\n\t}\n\tif tunName != \"utun\" {\n\t\tlogf(\"failed to create TUN device %q; try using tun device \\\"utun\\\" instead for automatic selection\", tunName)\n\t}\n}\n\nfunc diagnoseLinuxTUNFailure(tunName string, logf logger.Logf) {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tailscale/tailscale/commit/bbb4631e04c99726f9ca1eacfc54ffd9f7e1618f",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\tvar stdDialer dialer = new(net.Dialer)\n\tvar stdDialer dialer = netns.Dialer()\n\tvar stdDialer dialer = new(net.Dialer)\n\tvar stdDialer dialer = netns.Dialer()\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/tailscale/tailscale/commit/e9f7d01b914f4ffa698499243379f69fbc44c639",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\tif cmd.Version != version.LONG {\n\tif cmd.Version != version.LONG && !cmd.AllowVersionSkew {\n\tif n.Version != version.LONG {\n\tif n.Version != version.LONG && !bc.AllowVersionSkew {\n",
        "class": "clone",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/tailscale/tailscale/commit/529e2cb31a11bdefac5c20dbeba7c4922bfbb1cf",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t\t\thandleForwardResponseStreamError(ctx, wroteHeader, marshaler, w, req, mux, err)\n\t\t\thandleForwardResponseStreamError(ctx, wroteHeader, marshaler, w, req, mux, err, delimiter)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/grpc-ecosystem/grpc-gateway/commit/c20d40b67e395dbd6f8810d462c6909bcfca4fa4",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0,
            2,
            3
        ]
    },
    {
        "input": "func handleForwardResponseStreamError(ctx context.Context, wroteHeader bool, marshaler Marshaler, w http.ResponseWriter, req *http.Request, mux *ServeMux, err error) {\nfunc handleForwardResponseStreamError(ctx context.Context, wroteHeader bool, marshaler Marshaler, w http.ResponseWriter, req *http.Request, mux *ServeMux, err error, delimiter []byte) {\n\t\t\thandleForwardResponseStreamError(ctx, wroteHeader, marshaler, w, req, mux, err)\n\t\t\thandleForwardResponseStreamError(ctx, wroteHeader, marshaler, w, req, mux, err, delimiter)\n\t\t\thandleForwardResponseStreamError(ctx, wroteHeader, marshaler, w, req, mux, err)\n\t\t\thandleForwardResponseStreamError(ctx, wroteHeader, marshaler, w, req, mux, err, delimiter)\n\t\t\thandleForwardResponseStreamError(ctx, wroteHeader, marshaler, w, req, mux, err)\n\t\t\thandleForwardResponseStreamError(ctx, wroteHeader, marshaler, w, req, mux, err, delimiter)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/grpc-ecosystem/grpc-gateway/commit/c20d40b67e395dbd6f8810d462c6909bcfca4fa4",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            2
        ]
    },
    {
        "input": "\t\tt.Errorf(\"reg.LookupMsg(%q, %q)) failed with %v; want success\", \"\", \".example.ExampleMessage\")\n\t\tt.Errorf(\"reg.LookupMsg(%q, %q)) failed with %v; want success\", \"\", \".example.ExampleMessage\", \"\", \".example.ExampleMessage\", err)\n\t\tt.Errorf(\"reg.lookupMsg(%q, %q).DescriptorProto = %#v; want %#v\", got, want)\n\t\tt.Errorf(\"reg.lookupMsg(%q, %q).DescriptorProto = %#v; want %#v\", \"\", \".example.ExampleMessage\", got, want)\n\t\tt.Errorf(\"reg.lookupMsg(%q, %q).DescriptorProto = %#v; want %#v\", got, want)\n\t\tt.Errorf(\"reg.lookupMsg(%q, %q).DescriptorProto = %#v; want %#v\", \"\", \".ExampleMessage\", got, want)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.028169014084507043,
        "commit_url": "https://github.com/grpc-ecosystem/grpc-gateway/commit/adba95ae244eb28f11b25ef97890c771fc555483",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3,
            4
        ]
    },
    {
        "input": "\t\tt.Errorf(\"reg.lookupMsg(%q, %q).DescriptorProto = %#v; want %#v\", got, want)\n\t\tt.Errorf(\"reg.lookupMsg(%q, %q).DescriptorProto = %#v; want %#v\", \"\", \".example.ExampleMessage\", got, want)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.028169014084507043,
        "commit_url": "https://github.com/grpc-ecosystem/grpc-gateway/commit/adba95ae244eb28f11b25ef97890c771fc555483",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2,
            4
        ]
    },
    {
        "input": "\t\tcolumn = lookupCol(argsList.Back().Value.(formulaArg))\n\t\tcolumn = lookupCol(argsList.Back().Value.(formulaArg), 0)\n\t} else if arrayForm && len(lookupVector.Matrix[0]) > 1 {\n\t\tcolumn = lookupCol(lookupVector, 1)\n\t} else {\n\t\tcolumn = cols\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/qax-os/excelize/commit/dca03c6230e596560ea58ca1edb27581cdd59aaa",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            3
        ]
    },
    {
        "input": "func lookupCol(arr formulaArg) []formulaArg {\nfunc lookupCol(arr formulaArg, idx int) []formulaArg {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/qax-os/excelize/commit/dca03c6230e596560ea58ca1edb27581cdd59aaa",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            2
        ]
    },
    {
        "input": "\toutput, err := xml.Marshal(xlsx)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n\toutput, _ := xml.Marshal(xlsx)\n\toutput, err := xml.Marshal(xlsx)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n\toutput, _ := xml.Marshal(xlsx)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/qax-os/excelize/commit/cbfd6577536304f9b0b93edb7748475d8266fe19",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "//\t\t\n//     \t\t\n//         \t\tSUM(Sheet2!D2,Sheet2!D11)\n//         \t\t100\n//    \t\t \n// \t\t\n//    \n//        \n//            SUM(Sheet2!D2,Sheet2!D11)\n//            100\n//         \n//    \n// \t\t\n//     \t\t\n//         \t\tSUM(Sheet2!D2,Sheet2!D11)\n//     \t\t\n// \t\t\n//    \n//        \n//            SUM(Sheet2!D2,Sheet2!D11)\n//        \n//    \n",
        "class": "clone",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/qax-os/excelize/commit/cbfd6577536304f9b0b93edb7748475d8266fe19",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\t\tjobsch <- cloneRequest(b.Request)\n\t\tjobsch <- cloneRequest(b.Request, b.RequestBody)\nfunc cloneRequest(r *http.Request) *http.Request {\nfunc cloneRequest(r *http.Request, body string) *http.Request {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/rakyll/hey/commit/9078dc98e5f46e09ee80436da36f316841e5a1b3",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "func cloneRequest(r *http.Request) *http.Request {\nfunc cloneRequest(r *http.Request, body string) *http.Request {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/rakyll/hey/commit/9078dc98e5f46e09ee80436da36f316841e5a1b3",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t\tjsonBuffer:          buf,\n\t\tcurrentPath:         newRootLocation(),\n\t\tvalueOffset:         0,\n\t\tpreviousValueOffset: 0,\n\t\tjsonBuffer:  buf,\n\t\tcurrentPath: newRootLocation(),\n\t\tvalueOffset: 0,\n\t\tjsonBuffer:          buf,\n\t\tcurrentPath:         path,\n\t\tvalueOffset:         0,\n\t\tpreviousValueOffset: 0,\n\t\tjsonBuffer:  buf,\n\t\tcurrentPath: path,\n\t\tvalueOffset: 0,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/ade66ee19758f3be9b9b60087935a66b09ab7bba",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "func (wr *ArtifactsEditor) ReplaceConstraintViolation(ctx context.Context, srcKey val.Tuple, theirRootIsh hash.Hash, artType ArtifactType, meta ConstraintViolationMeta) error {\nfunc (wr *ArtifactsEditor) ReplaceConstraintViolation(ctx context.Context, srcKey val.Tuple, srcRootish hash.Hash, artType ArtifactType, meta ConstraintViolationMeta) error {\nfunc (wr *ArtifactsEditor) Add(ctx context.Context, srcKey val.Tuple, theirRootIsh hash.Hash, artType ArtifactType, meta []byte) error {\nfunc (wr *ArtifactsEditor) Add(ctx context.Context, srcKey val.Tuple, srcRootish hash.Hash, artType ArtifactType, meta []byte) error {\n\twr.artKB.PutCommitAddr(srcKey.Count(), theirRootIsh)\n\twr.artKB.PutCommitAddr(srcKey.Count(), srcRootish)\n\terr = wr.Add(ctx, srcKey, theirRootIsh, artType, d)\n\terr = wr.Add(ctx, srcKey, srcRootish, artType, d)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/29ed451728653f522a1867ed20286609acd38700",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            2,
            3,
            6
        ]
    },
    {
        "input": "\t\tif bytes.Compare(art.Key, srcKey) != 0 {\n\t\tif bytes.Compare(art.SourceKey, srcKey) != 0 {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8,
        "commit_url": "https://github.com/dolthub/dolt/commit/29ed451728653f522a1867ed20286609acd38700",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            1,
            9,
            7
        ]
    },
    {
        "input": "\terr = wr.Add(ctx, srcKey, theirRootIsh, artType, d)\n\terr = wr.Add(ctx, srcKey, srcRootish, artType, d)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/29ed451728653f522a1867ed20286609acd38700",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            2,
            3,
            4
        ]
    },
    {
        "input": "\t\tKey:          art.Key,\n\t\tTheirRootIsh: art.TheirRootIsh,\n\t\tKey:          art.SourceKey,\n\t\tTheirRootIsh: art.SourceRootish,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8,
        "commit_url": "https://github.com/dolthub/dolt/commit/29ed451728653f522a1867ed20286609acd38700",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            1,
            5,
            9
        ]
    },
    {
        "input": "\t// Key is the key of the source row that the artifact references\n\tKey val.Tuple\n\t// SourceKey is the key of the source row that the artifact references\n\tSourceKey val.Tuple\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/dolthub/dolt/commit/29ed451728653f522a1867ed20286609acd38700",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            1,
            5,
            7
        ]
    },
    {
        "input": "\tTheirRootIsh hash.Hash\n\tSourceRootish hash.Hash\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/dolthub/dolt/commit/29ed451728653f522a1867ed20286609acd38700",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            0
        ]
    },
    {
        "input": "\t\trequire.NoError(t, err)\n\t\trequire.NoError(t, err) // danging ref error\n\trequire.NoError(t, err)\n\trequire.Error(t, err) // TODO(taylor): fix dangling ref error\n\trequire.NoError(t, err)\n\trequire.NoError(t, err) // dangling ref error\n",
        "class": "clone",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/9be573dbc9685380a46667c9c360aec61201259c",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            10,
            5
        ]
    },
    {
        "input": "\t\t\treturn nil, nil // TODO (taylor): Is there a way to get referenced addr out of the chunk here?\n\t\t\treturn types.AddrsFromNomsValue(ctx, c, f.nbf)\n\t\t\treturn nil, nil // TODO (taylor): Is there a way to get referenced addr out of the chunk here?\n\t\t\treturn types.AddrsFromNomsValue(ctx, c, store.nbf)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/9be573dbc9685380a46667c9c360aec61201259c",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            12
        ]
    },
    {
        "input": "\t\tdefaultVal sql.Expression,\n\t\tdefaultVal *sql.ColumnDefaultValue,\n\t\tdefaultVal sql.Expression,\n\t\tdefaultVal *sql.ColumnDefaultValue,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/dolthub/dolt/commit/3dc2580c1f91259987a5c05f8bac5806eb4fbacc",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "func generateLockHash(root hash.Hash, specs []tableSpec) (lock addr) {\nfunc generateLockHash(root hash.Hash, specs []tableSpec, appendix []tableSpec) (lock addr) {\n\t\tlock:  generateLockHash(upstream.root, canned.specs),\n\t\tlock:  generateLockHash(upstream.root, canned.specs, []tableSpec{}),\n\t\t\tlock:     generateLockHash(upstream.root, specs),\n\t\t\tlock:     generateLockHash(upstream.root, specs, appendixSpecs),\n\t\tlock:     generateLockHash(current, specs),\n\t\tlock:     generateLockHash(current, specs, appendixSpecs),\n\tgcGenCheck := generateLockHash(last, nbs.upstream.specs)\n\tgcGenCheck := generateLockHash(last, nbs.upstream.specs, nbs.upstream.appendix)\n\tnewLock := generateLockHash(nbs.upstream.root, specs)\n\tnewLock := generateLockHash(nbs.upstream.root, specs, []tableSpec{})\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/dolthub/dolt/commit/0a99a01437fa261e5f57967a9774ded5a8dbf479",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            1,
            11,
            12,
            13
        ]
    },
    {
        "input": "\tupdatedContents, err = nbs.mm.Update(ctx, contents.lock, contents, &stats, nil)\n\tupdatedContents, err = nbs.mm.Update(ctx, originalLock, contents, &stats, nil)\n\tupdatedContents, err = nbs.mm.Update(ctx, contents.lock, contents, &stats, nil)\n\tupdatedContents, err = nbs.mm.Update(ctx, originalLock, contents, &stats, nil)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/dolthub/dolt/commit/0a99a01437fa261e5f57967a9774ded5a8dbf479",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\t\tlock:     generateLockHash(current, specs),\n\t\tlock:     generateLockHash(current, specs, appendixSpecs),\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/dolthub/dolt/commit/0a99a01437fa261e5f57967a9774ded5a8dbf479",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            12,
            13
        ]
    },
    {
        "input": "\tgcGenCheck := generateLockHash(last, nbs.upstream.specs)\n\tgcGenCheck := generateLockHash(last, nbs.upstream.specs, nbs.upstream.appendix)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/dolthub/dolt/commit/0a99a01437fa261e5f57967a9774ded5a8dbf479",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            11,
            13
        ]
    },
    {
        "input": "\tnewLock := generateLockHash(nbs.upstream.root, specs)\n\tnewLock := generateLockHash(nbs.upstream.root, specs, []tableSpec{})\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/dolthub/dolt/commit/0a99a01437fa261e5f57967a9774ded5a8dbf479",
        "target_edit_idx": 13,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            11,
            12
        ]
    },
    {
        "input": "\treturn &DoltChunkStore{dcs.org, dcs.repoName, dcs.host, dcs.csClient, cache, dcs.metadata, dcs.nbf, dcs.httpFetcher, dcs.downloadConcurrency, dcs.stats}\n\treturn &DoltChunkStore{dcs.org, dcs.repoName, dcs.host, dcs.csClient, cache, dcs.metadata, dcs.nbf, dcs.httpFetcher, dcs.concurrency, dcs.stats}\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/9c9a9beac00e46ecf302cfec32019b1a71efbcd9",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            3,
            4
        ]
    },
    {
        "input": "\t\treturn orderedSequenceDiff(lastChild, current, changes, closeChan)\n\t\treturn orderedSequenceDiffInternalNodes(lastChild, current, changes, closeChan, lastHeight-1, currentHeight)\n\t\treturn orderedSequenceDiff(last, currentChild, changes, closeChan)\n\t\treturn orderedSequenceDiffInternalNodes(last, currentChild, changes, closeChan, lastHeight, currentHeight-1)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/dolthub/dolt/commit/f52844e2b6c792e595a84470ea5e35e05e15df38",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\t\tfmt.Fprintf(os.Stderr, \"Usage: %s \\n\", path.Base(os.Args[0]))\n\t\tfmt.Fprintln(os.Stderr, \"Displays the history of a Noms dataset\\n\")\n\t\tfmt.Fprintln(os.Stderr, \"Usage: noms log \")\n\t\tfmt.Fprintf(os.Stderr, \"Usage: %s \\n\", path.Base(os.Args[0]))\n\t\tfmt.Fprintln(os.Stderr, \"Shows a serialization of a Noms object\\n\")\n\t\tfmt.Fprintln(os.Stderr, \"Usage: noms show \\n\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/e4540aae9f75b2d62f01773a074d92ddc2a8e1bb",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "func ForceRunInDir(dir, exe string, args ...string) {\nfunc ForceRunInDir(dir string, env Env, exe string, args ...string) {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/37fcdf8b2c60ef20dcc2a401f8138a5650f559ab",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\tForceRunInDir(suite.dir, \"python\", scriptPath)\n\tForceRunInDir(suite.dir, nil, \"python\", scriptPath)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/37fcdf8b2c60ef20dcc2a401f8138a5650f559ab",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "func NewLevelDBStore(dir string) *LevelDBStore {\nfunc NewLevelDBStore(dir string, maxFileHandles int) *LevelDBStore {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/326dfb79533d3ddd9803cd0c0bd9fa38699b2f9e",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            4,
            5
        ]
    },
    {
        "input": "\t\treturn NewLevelDBStore(*f.dir)\n\t\treturn NewLevelDBStore(*f.dir, *f.maxFileHandles)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/326dfb79533d3ddd9803cd0c0bd9fa38699b2f9e",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            5
        ]
    },
    {
        "input": "\tstore := NewLevelDBStore(suite.dir)\n\tstore := NewLevelDBStore(suite.dir, 0)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/326dfb79533d3ddd9803cd0c0bd9fa38699b2f9e",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            0,
            4
        ]
    },
    {
        "input": "func NewDataStore(cs chunks.ChunkStore, rt chunks.RootTracker) DataStore {\nfunc NewDataStoreWithRootTracker(cs chunks.ChunkStore, rt chunks.RootTracker) DataStore {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/dolthub/dolt/commit/a8bb889e7eba849677ad18bb34b3f5a70a186d8a",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\tds := NewDataStore(chunks, chunks)\n\tds := NewDataStore(chunks)\n\tds := NewDataStore(chunks, chunks)\n\tds := NewDataStore(chunks)\n\tds2 := NewDataStore(chunks, chunks)\n\tds2 := NewDataStore(chunks)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/a8bb889e7eba849677ad18bb34b3f5a70a186d8a",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            6,
            7
        ]
    },
    {
        "input": "\tds := NewDataStore(chunks, chunks)\n\tds := NewDataStore(chunks)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/a8bb889e7eba849677ad18bb34b3f5a70a186d8a",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            5,
            7
        ]
    },
    {
        "input": "\tds2 := NewDataStore(chunks, chunks)\n\tds2 := NewDataStore(chunks)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/dolthub/dolt/commit/a8bb889e7eba849677ad18bb34b3f5a70a186d8a",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            5,
            6
        ]
    },
    {
        "input": "\t\tif watcher, ok := e.watcher.(persist.WatcherUpdatable); ok {\n\t\t\terr = watcher.UpdateForUpdatePolicy(oldRule, newRule)\n\t\tif watcher, ok := e.watcher.(persist.UpdatableWatcher); ok {\n\t\t\terr = watcher.UpdateForUpdatePolicy(sec, ptype, oldRule, newRule)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/casbin/casbin/commit/3f721c48dfab03e84cbdbdec11bc1160c6166f55",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            7
        ]
    },
    {
        "input": "\t\tif watcher, ok := e.watcher.(persist.WatcherUpdatable); ok {\n\t\t\terr = watcher.UpdateForUpdatePolicies(oldRules, newRules)\n\t\tif watcher, ok := e.watcher.(persist.UpdatableWatcher); ok {\n\t\t\terr = watcher.UpdateForUpdatePolicies(sec, ptype, oldRules, newRules)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/casbin/casbin/commit/3f721c48dfab03e84cbdbdec11bc1160c6166f55",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0,
            2,
            7
        ]
    },
    {
        "input": "// WatcherUpdatable is the strengthen for Casbin watchers.\ntype WatcherUpdatable interface {\n// UpdatableWatcher is strengthened for Casbin watchers.\ntype UpdatableWatcher interface {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/casbin/casbin/commit/3f721c48dfab03e84cbdbdec11bc1160c6166f55",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            0,
            1,
            2
        ]
    },
    {
        "input": "\tUpdateForUpdatePolicy(oldRule, newRule []string) error\n\tUpdateForUpdatePolicy(sec string, ptype string, oldRule, newRule []string) error\n\tUpdateForUpdatePolicies(oldRules, newRules [][]string) error\n\tUpdateForUpdatePolicies(sec string, ptype string, oldRules, newRules [][]string) error\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/casbin/casbin/commit/3f721c48dfab03e84cbdbdec11bc1160c6166f55",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "\tclock     clockwork.Clock\n\tlog       logrus.FieldLogger\n\tsessionID session.ID\n\tstreamer  Streamer\n\tclock        clockwork.Clock\n\tlog          logrus.FieldLogger\n\tsessionID    session.ID\n\tstreamer     Streamer\n\tskipIdleTime bool\n\tClock     clockwork.Clock\n\tLog       logrus.FieldLogger\n\tSessionID session.ID\n\tStreamer  Streamer\n\tClock        clockwork.Clock\n\tLog          logrus.FieldLogger\n\tSessionID    session.ID\n\tStreamer     Streamer\n\tSkipIdleTime bool\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/gravitational/teleport/commit/4b9d0850c2fe7557b1f742c743600813afa6f6ee",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "\t\t\t\t\tCommandID:  \"command-id-1\",\n\t\t\t\t\tInstanceID: \"instance-id-1\",\n\t\t\t\t\tAccountID:  \"account-id\",\n\t\t\t\t\tRegion:     \"eu-central-1\",\n\t\t\t\t\tExitCode:   0,\n\t\t\t\t\tStatus:     ssm.CommandStatusSuccess,\n\t\t\t\t\tCommandID:     \"command-id-1\",\n\t\t\t\t\tInstanceID:    \"instance-id-1\",\n\t\t\t\t\tAccountID:     \"account-id\",\n\t\t\t\t\tRegion:        \"eu-central-1\",\n\t\t\t\t\tExitCode:      0,\n\t\t\t\t\tStatus:        ssm.CommandStatusSuccess,\n\t\t\t\t\tInvocationURL: \"https://eu-central-1.console.aws.amazon.com/systems-manager/run-command/command-id-1/instance-id-1\",\n\t\t\t\t\tCommandID:  \"command-id-1\",\n\t\t\t\t\tInstanceID: \"instance-id-1\",\n\t\t\t\t\tAccountID:  \"account-id\",\n\t\t\t\t\tRegion:     \"eu-central-1\",\n\t\t\t\t\tExitCode:   0,\n\t\t\t\t\tStatus:     ssm.CommandStatusSuccess,\n\t\t\t\t\tCommandID:     \"command-id-1\",\n\t\t\t\t\tInstanceID:    \"instance-id-1\",\n\t\t\t\t\tAccountID:     \"account-id\",\n\t\t\t\t\tRegion:        \"eu-central-1\",\n\t\t\t\t\tExitCode:      0,\n\t\t\t\t\tStatus:        ssm.CommandStatusSuccess,\n\t\t\t\t\tInvocationURL: \"https://eu-central-1.console.aws.amazon.com/systems-manager/run-command/command-id-1/instance-id-1\",\n\t\t\t\t\tCommandID:  \"command-id-1\",\n\t\t\t\t\tInstanceID: \"instance-id-1\",\n\t\t\t\t\tAccountID:  \"account-id\",\n\t\t\t\t\tRegion:     \"eu-central-1\",\n\t\t\t\t\tExitCode:   0,\n\t\t\t\t\tStatus:     ssm.CommandStatusSuccess,\n\t\t\t\t\tCommandID:     \"command-id-1\",\n\t\t\t\t\tInstanceID:    \"instance-id-1\",\n\t\t\t\t\tAccountID:     \"account-id\",\n\t\t\t\t\tRegion:        \"eu-central-1\",\n\t\t\t\t\tExitCode:      0,\n\t\t\t\t\tStatus:        ssm.CommandStatusSuccess,\n\t\t\t\t\tInvocationURL: \"https://eu-central-1.console.aws.amazon.com/systems-manager/run-command/command-id-1/instance-id-1\",\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/gravitational/teleport/commit/8c15d61cc9c8960b1a99b67a411f361ee2a2c674",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3,
            6
        ]
    },
    {
        "input": "\tresp, err := clt.Ping(process.ExitContext())\n\tctx, cancel := context.WithTimeout(process.ExitContext(), apidefaults.DefaultIOTimeout)\n\tdefer cancel()\n\tresp, err := clt.Ping(ctx)\n\tresp, err := clt.Ping(process.ExitContext())\n\tctx, cancel := context.WithTimeout(process.ExitContext(), apidefaults.DefaultIOTimeout)\n\tdefer cancel()\n\tresp, err := clt.Ping(ctx)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/gravitational/teleport/commit/7d48e90717ae78cbfa2b11d2d9a2e2838a835b22",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "        min-width: calc(${props => props.theme.space[7]}px * 2);\n  min-width: calc(${props => props.theme.space[9]}px * 2);\n  // min-width causes the filters and the actual input text to be broken into\n  // two lines when there is no space\n  min-width: calc(${props => props.theme.space[8]}px * 2);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/gravitational/teleport/commit/a5ab44deb54ff308951f95f2f4c84ce1e8a26af2",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "\t\t\tl.log.WithError(err).Warning(\"Handshake failed.\")\n\t\t\tl.log.WithFields(log.Fields{\n\t\t\t\t\"src_addr\": conn.RemoteAddr(),\n\t\t\t\t\"dst_addr\": conn.LocalAddr(),\n\t\t\t}).WithError(err).Warning(\"Handshake failed.\")\n\t\t\tl.log.WithError(err).Warn(\"Handshake failed.\")\n\t\t\tl.log.WithFields(logrus.Fields{\n\t\t\t\t\"src_addr\": conn.RemoteAddr(),\n\t\t\t\t\"dst_addr\": conn.LocalAddr(),\n\t\t\t}).WithError(err).Warn(\"Handshake failed.\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/gravitational/teleport/commit/4def17e560b66f02b10cc6109f2d8e0ce5777faf",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "\t\texpectedErr     string\n\t\terrCheck        require.ErrorAssertionFunc\n\t\texpectedErr     string\n\t\terrCheck        require.ErrorAssertionFunc\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/gravitational/teleport/commit/fedb62f573d3771412d561afb76653f3b861a6f8",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "\t\t\texpectedErr: `\"%s/src\" is a directory, but the recursive option was not passed`,\n\t\t\terrCheck: func(t require.TestingT, err error, i ...interface{}) {\n\t\t\t\trequire.EqualError(t, err, fmt.Sprintf(`\"%s/src\" is a directory, but the recursive option was not passed`, i[0]))\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tname: \"non-existent src file\",\n\t\t\tsrcPaths: []string{\n\t\t\t\t\"idontexist\",\n\t\t\t},\n\t\t\terrCheck: func(t require.TestingT, err error, i ...interface{}) {\n\t\t\t\trequire.True(t, errors.Is(err, os.ErrNotExist))\n\t\t\t},\n\t\t\texpectedErr: `\"%s/src\" is a directory, but the recursive option was not passed`,\n\t\t\terrCheck: func(t require.TestingT, err error, i ...interface{}) {\n\t\t\t\trequire.EqualError(t, err, fmt.Sprintf(`\"%s/src\" is a directory, but the recursive option was not passed`, i[0]))\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tname:    \"non-existent src file\",\n\t\t\tsrcPath: \"idontexist\",\n\t\t\terrCheck: func(t require.TestingT, err error, i ...interface{}) {\n\t\t\t\trequire.True(t, errors.Is(err, os.ErrNotExist))\n\t\t\t},\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/gravitational/teleport/commit/fedb62f573d3771412d561afb76653f3b861a6f8",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "\t\t\tif tt.expectedErr == \"\" {\n\t\t\tif tt.errCheck == nil {\n\t\t\tif tt.expectedErr == \"\" {\n\t\t\tif tt.errCheck == nil {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/gravitational/teleport/commit/fedb62f573d3771412d561afb76653f3b861a6f8",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            12
        ]
    },
    {
        "input": "\t\t\t\trequire.EqualError(t, err, fmt.Sprintf(tt.expectedErr, tempDir))\n\t\t\t\ttt.errCheck(t, err, tempDir)\n\t\t\t\trequire.EqualError(t, err, fmt.Sprintf(tt.expectedErr, tempDir))\n\t\t\t\ttt.errCheck(t, err, tempDir)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/gravitational/teleport/commit/fedb62f573d3771412d561afb76653f3b861a6f8",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            13
        ]
    },
    {
        "input": "\tif err = executor.StreamWithContext(req.Context(), streamOptions); err != nil {\n\terr = executor.StreamWithContext(req.Context(), streamOptions)\n\t// send the status back to the client when forwarding mode is enabled\n\t// sendStatus sends a payload even if the error is nil to make sure the client\n\t// receives the status and can close the connection.\n\tif sendErr := proxy.sendStatus(err); sendErr != nil {\n\t\tf.log.WithError(sendErr).Warning(\"Failed to send status. Exec command was aborted by client.\")\n\t}\n\tif err != nil {\n\tif err = executor.StreamWithContext(req.Context(), streamOptions); err != nil {\n\terr = executor.StreamWithContext(req.Context(), streamOptions)\n\t// send the status back to the client when forwarding mode is enabled\n\t// sendStatus sends a payload even if the error is nil to make sure the client\n\t// receives the status and can close the connection.\n\tif sendErr := proxy.sendStatus(err); sendErr != nil {\n\t\tf.log.WithError(sendErr).Warning(\"Failed to send status. Exec command was aborted by client.\")\n\t}\n\tif err != nil {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/gravitational/teleport/commit/48951cfa0e47a0ea085281f4eb7a1123d312ccab",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "type dialFunc func(ctx context.Context, network, addr, serverID string) (net.Conn, error)\ntype dialFunc func(ctx context.Context, network string, endpoint kubeClusterEndpoint) (net.Conn, error)\n\t\tdialFn = func(ctx context.Context, network, addr, serverID string) (net.Conn, error) {\n\t\tdialFn = func(ctx context.Context, network string, endpoint kubeClusterEndpoint) (net.Conn, error) {\n\t\tdialFn = func(ctx context.Context, network, addr, serverID string) (net.Conn, error) {\n\t\tdialFn = func(ctx context.Context, network string, endpoint kubeClusterEndpoint) (net.Conn, error) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/gravitational/teleport/commit/e52face20f8d6af62515f4fb91b273d273bfce35",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2,
            5
        ]
    },
    {
        "input": "\t\t\t\tTo:       &utils.NetAddr{AddrNetwork: \"tcp\", Addr: addr},\n\t\t\t\tTo:       &utils.NetAddr{AddrNetwork: \"tcp\", Addr: endpoint.addr},\n\t\t\t\tTo:       &utils.NetAddr{AddrNetwork: \"tcp\", Addr: addr},\n\t\t\t\tTo:       &utils.NetAddr{AddrNetwork: \"tcp\", Addr: endpoint.addr},\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.2,
        "commit_url": "https://github.com/gravitational/teleport/commit/e52face20f8d6af62515f4fb91b273d273bfce35",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "\t\t\t\tServerID: serverID,\n\t\t\t\tServerID: endpoint.serverID,\n\t\t\t\tProxyIDs: endpoint.proxyIDs,\n\t\t\t\tServerID: serverID,\n\t\t\t\tServerID: endpoint.serverID,\n\t\t\t\tProxyIDs: endpoint.proxyIDs,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/gravitational/teleport/commit/e52face20f8d6af62515f4fb91b273d273bfce35",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "        {!isEmpty && attempt.status !== 'processing' && (\n        {hasApps && (\n        {!isEmpty && attempt.status !== 'processing' && (\n        {hasNodes && (\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/gravitational/teleport/commit/3fccc619a6644577b9f9a84a136b29c8c2b38cc1",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "func buildCommand(c *ExecCommand, tty *os.File, pty *os.File, pamEnvironment []string) (*exec.Cmd, error) {\nfunc buildCommand(c *ExecCommand, localUser *user.User, tty *os.File, pty *os.File, pamEnvironment []string) (*exec.Cmd, error) {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/gravitational/teleport/commit/94a3099102fdf1a3b5d54478ecc3057fecff27f9",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            5
        ]
    },
    {
        "input": "\t\t\tNamespaces:    []string{\"default\"},\n\t\t\tNamespaces:    []string{defaults.Namespace},\n\t\t\t\tNamespaces: []string{\"default\"},\n\t\t\t\tNamespaces: []string{defaults.Namespace},\n\t\t\t\tNamespaces: []string{\"default\"},\n\t\t\t\tNamespaces: []string{defaults.Namespace},\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/gravitational/teleport/commit/9fa799aa701d1e6db91dc616462572ad9a289e0f",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            8,
            1
        ]
    },
    {
        "input": "\t\tglog.V(3).Infof(\"updating secret %v/%v in the store\", sec.Namespace, sec.Name)\n\t\tglog.Infof(\"updating secret %v/%v in the local store\", sec.Namespace, sec.Name)\n\tglog.V(3).Infof(\"adding secret %v/%v to the store\", sec.Namespace, sec.Name)\n\tglog.Infof(\"adding secret %v/%v to the local store\", sec.Namespace, sec.Name)\n",
        "class": "clone",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/kubernetes/ingress-nginx/commit/18492c1384a5dcae07ce4dae76bebf1b4e854f81",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "\t\tshard            int\n\t\treplicas         int\n\t\tclientConfig     clientcmd.ClientConfig\n\t\tcacheSrc         func() (*appstatecache.Cache, error)\n\t\tportForwardRedis bool\n\t\tshard               int\n\t\treplicas            int\n\t\tclientConfig        clientcmd.ClientConfig\n\t\tcacheSrc            func() (*appstatecache.Cache, error)\n\t\tportForwardRedis    bool\n\t\tredisCompressionStr string\n\t\tshard            int\n\t\treplicas         int\n\t\tclientConfig     clientcmd.ClientConfig\n\t\tcacheSrc         func() (*appstatecache.Cache, error)\n\t\tportForwardRedis bool\n\t\tshard               int\n\t\treplicas            int\n\t\tclientConfig        clientcmd.ClientConfig\n\t\tcacheSrc            func() (*appstatecache.Cache, error)\n\t\tportForwardRedis    bool\n\t\tredisCompressionStr string\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/argoproj/argo-cd/commit/23f2767250d055e9eb8855ec5e60dd76c3734d30",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t\"github.com/argoproj/gitops-engine/pkg/utils/json\"\n\t\"github.com/argoproj/gitops-engine/pkg/utils/json\"\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/argoproj/argo-cd/commit/c76d7b9c7c3f7f1391b9917f3c19eb31a9eeac5a",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\t\t\t\tActions: string(json.MustMarshal(appv1.ResourceActions{\n\t\t\t\tActions: string(grpc.MustMarshal(appv1.ResourceActions{\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/argoproj/argo-cd/commit/c76d7b9c7c3f7f1391b9917f3c19eb31a9eeac5a",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            2,
            6
        ]
    },
    {
        "input": "\t// Name is the resource name\n\t// Kind is the resource kind\n\t// Name is the resource name\n\t// APIVersion is the resource API version\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/argoproj/argo-cd/commit/97189f300e8ccd9ffd9cf841943b31ddcf89486b",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "func newContainerData(containerName string, memoryStorage *memory.InMemoryStorage, handler container.ContainerHandler, loadReader cpuload.CpuLoadReader, logUsage bool) (*containerData, error) {\nfunc newContainerData(containerName string, memoryStorage *memory.InMemoryStorage, handler container.ContainerHandler, loadReader cpuload.CpuLoadReader, logUsage bool, collectorManager collector.CollectorManager) (*containerData, error) {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/cadvisor/commit/bce54ce3f5e9287cc053c8043583bb2437eb523e",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            9,
            12,
            14
        ]
    },
    {
        "input": "\t\tif time.Now().Before(nextHousekeeping) {\n\t\t\ttime.Sleep(nextHousekeeping.Sub(time.Now()))\n\t\tnext := nextHousekeeping\n\t\tif !nextCollectionTime.IsZero() && nextCollectionTime.Before(nextHousekeeping) {\n\t\t\tnext = nextCollectionTime\n\t\t}\n\n\t\t// Schedule the next housekeeping. Sleep until that time.\n\t\tif time.Now().Before(next) {\n\t\t\ttime.Sleep(next.Sub(time.Now()))\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/google/cadvisor/commit/bce54ce3f5e9287cc053c8043583bb2437eb523e",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "\t\tlastHousekeeping = nextHousekeeping\n\t\tlastHousekeeping = next\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/google/cadvisor/commit/bce54ce3f5e9287cc053c8043583bb2437eb523e",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "\tret, err := newContainerData(containerName, memoryStorage, mockHandler, nil, false)\n\tret, err := newContainerData(containerName, memoryStorage, mockHandler, nil, false, &collector.FakeCollectorManager{})\nfunc newContainerData(containerName string, memoryStorage *memory.InMemoryStorage, handler container.ContainerHandler, loadReader cpuload.CpuLoadReader, logUsage bool) (*containerData, error) {\nfunc newContainerData(containerName string, memoryStorage *memory.InMemoryStorage, handler container.ContainerHandler, loadReader cpuload.CpuLoadReader, logUsage bool, collectorManager collector.CollectorManager) (*containerData, error) {\n\tcont, err := newContainerData(containerName, m.memoryStorage, handler, m.loadReader, logUsage)\n\tcont, err := newContainerData(containerName, m.memoryStorage, handler, m.loadReader, logUsage, collectorManager)\n\t\tcont, err := newContainerData(name, memoryStorage, mockHandler, nil, false)\n\t\tcont, err := newContainerData(name, memoryStorage, mockHandler, nil, false, &collector.FakeCollectorManager{})\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/cadvisor/commit/bce54ce3f5e9287cc053c8043583bb2437eb523e",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            2,
            12,
            14
        ]
    },
    {
        "input": "\tcont, err := newContainerData(containerName, m.memoryStorage, handler, m.loadReader, logUsage)\n\tcont, err := newContainerData(containerName, m.memoryStorage, handler, m.loadReader, logUsage, collectorManager)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/cadvisor/commit/bce54ce3f5e9287cc053c8043583bb2437eb523e",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            9,
            2,
            14
        ]
    },
    {
        "input": "\t\tcont, err := newContainerData(name, memoryStorage, mockHandler, nil, false)\n\t\tcont, err := newContainerData(name, memoryStorage, mockHandler, nil, false, &collector.FakeCollectorManager{})\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/cadvisor/commit/bce54ce3f5e9287cc053c8043583bb2437eb523e",
        "target_edit_idx": 14,
        "propagatable_edit_idx": [
            9,
            2,
            12
        ]
    },
    {
        "input": "\t// Information about an OOM event.\n\tOom *OomEventData `json:\"oom,omitempty\"`\n\t// Information about an OOM kill event.\n\tOomKill *OomKillEventData `json:\"oom,omitempty\"`\ntype OomEventData struct {\ntype OomKillEventData struct {\n\t\t\t\t\tOom: &info.OomEventData{\n\t\t\t\t\tOomKill: &info.OomKillEventData{\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/google/cadvisor/commit/fd1ff04f7f4ce7ac12a8a84885d3437aa20e04e0",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            5
        ]
    },
    {
        "input": "\t\"github.com/influxdb/influxdb-go\"\n\t\"github.com/influxdb/influxdb/client\"\n\t\"github.com/influxdb/influxdb-go\"\n\t\"github.com/influxdb/influxdb/client\"\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/google/cadvisor/commit/bdd2b021c36df13ed5c3a738bf281dc669d3bca6",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "func (i *RSAIdentity) Recipient() age.Recipient {\nfunc (i *RSAIdentity) Recipient() *RSARecipient {\nfunc (i *Ed25519Identity) Recipient() age.Recipient {\nfunc (i *Ed25519Identity) Recipient() *Ed25519Recipient {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/FiloSottile/age/commit/384d0393e0797c8e6a6a2a44f4184958c3c04a97",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "\t\ta.Init(tc.ShellName, \"\")\n\t\ta.Init(tc.ShellName)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.875,
        "commit_url": "https://github.com/JanDeDobbeleer/oh-my-posh/commit/e957e5f8ccc6ce3cf0ddbc8151611d202c5040fd",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            3,
            5,
            6,
            7
        ]
    },
    {
        "input": "\t\ta.Init(shell.PWSH, \"\")\n\t\ta.Init(shell.PWSH)\n\ta.Init(shell.PLAIN, \"\")\n\ta.Init(shell.PLAIN)\n\t\ta.Init(tc.ShellName, \"\")\n\t\ta.Init(tc.ShellName)\n\t\ta.Init(tc.ShellName, \"\")\n\t\ta.Init(tc.ShellName)\n\t\ta.Init(tc.ShellName, \"\")\n\t\ta.Init(tc.ShellName)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.875,
        "commit_url": "https://github.com/JanDeDobbeleer/oh-my-posh/commit/e957e5f8ccc6ce3cf0ddbc8151611d202c5040fd",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            6
        ]
    },
    {
        "input": "\t\t\tansi.Init(shell, \"\")\n\t\t\tansi.Init(shell)\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/JanDeDobbeleer/oh-my-posh/commit/e957e5f8ccc6ce3cf0ddbc8151611d202c5040fd",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9,
            10
        ]
    },
    {
        "input": "\t\tansi.Init(shell.PWSH, \"\")\n\t\tansi.Init(shell.PWSH)\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/JanDeDobbeleer/oh-my-posh/commit/e957e5f8ccc6ce3cf0ddbc8151611d202c5040fd",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            8,
            10
        ]
    },
    {
        "input": "\t\tansi.Init(env.Shell(), env.GOOS())\n\t\tansi.Init(env.Shell())\n\t\t\tansi.Init(shell, \"\")\n\t\t\tansi.Init(shell)\n\t\tansi.Init(shell.PWSH, \"\")\n\t\tansi.Init(shell.PWSH)\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/JanDeDobbeleer/oh-my-posh/commit/e957e5f8ccc6ce3cf0ddbc8151611d202c5040fd",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            8,
            9
        ]
    },
    {
        "input": "func (c Cipher) Decrypt(value string, key []byte, path string) (plaintext interface{}, stash interface{}, err error) {\nfunc (c Cipher) Decrypt(value string, key []byte, additionalData string) (plaintext interface{}, stash interface{}, err error) {\n\tdecryptedBytes, err := gcm.Open(nil, encryptedValue.iv, data, []byte(path))\n\tdecryptedBytes, err := gcm.Open(nil, encryptedValue.iv, data, []byte(additionalData))\nfunc (c Cipher) Encrypt(value interface{}, key []byte, path string, stash interface{}) (string, error) {\nfunc (c Cipher) Encrypt(value interface{}, key []byte, additionalData string, stash interface{}) (string, error) {\n\tout := gcm.Seal(nil, iv, plaintext, []byte(path))\n\tout := gcm.Seal(nil, iv, plaintext, []byte(additionalData))\n\tEncrypt(value interface{}, key []byte, path string, stash interface{}) (string, error)\n\tDecrypt(value string, key []byte, path string) (plaintext interface{}, stashValue interface{}, err error)\n\tEncrypt(value interface{}, key []byte, additionalData string, stash interface{}) (string, error)\n\tDecrypt(value string, key []byte, additionalData string) (plaintext interface{}, stashValue interface{}, err error)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getsops/sops/commit/7d6597b60cbf0bc2c9f027991d68e56db7bfb5d4",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4
        ]
    },
    {
        "input": "\tdecryptedBytes, err := gcm.Open(nil, encryptedValue.iv, data, []byte(path))\n\tdecryptedBytes, err := gcm.Open(nil, encryptedValue.iv, data, []byte(additionalData))\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getsops/sops/commit/7d6597b60cbf0bc2c9f027991d68e56db7bfb5d4",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0,
            2,
            3,
            4
        ]
    },
    {
        "input": "func (c Cipher) Encrypt(value interface{}, key []byte, path string, stash interface{}) (string, error) {\nfunc (c Cipher) Encrypt(value interface{}, key []byte, additionalData string, stash interface{}) (string, error) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getsops/sops/commit/7d6597b60cbf0bc2c9f027991d68e56db7bfb5d4",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            1,
            3,
            4
        ]
    },
    {
        "input": "\tout := gcm.Seal(nil, iv, plaintext, []byte(path))\n\tout := gcm.Seal(nil, iv, plaintext, []byte(additionalData))\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getsops/sops/commit/7d6597b60cbf0bc2c9f027991d68e56db7bfb5d4",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            4
        ]
    },
    {
        "input": "\tif actualValue, expactedValue := m.Values(), []interface{}{\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\"}; !sameElements(actualValue, expactedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := m.Values(), []interface{}{\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\"}; !sameElements(actualValue, expectedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/160299d0f773c9211fc0d4fd3b87cbba726fd758",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0,
            2,
            3,
            4,
            5,
            7,
            8,
            9,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\tif actualValue, expactedValue := m.Keys(), []interface{}{1, 2, 3, 4}; !sameElements(actualValue, expactedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := m.Keys(), []interface{}{1, 2, 3, 4}; !sameElements(actualValue, expectedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/160299d0f773c9211fc0d4fd3b87cbba726fd758",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            1,
            3,
            4,
            5,
            7,
            8,
            9,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\tif actualValue, expactedValue := m.Values(), []interface{}{\"a\", \"b\", \"c\", \"d\"}; !sameElements(actualValue, expactedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := m.Values(), []interface{}{\"a\", \"b\", \"c\", \"d\"}; !sameElements(actualValue, expectedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/160299d0f773c9211fc0d4fd3b87cbba726fd758",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            4,
            5,
            7,
            8,
            9,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\tif actualValue, expactedValue := fmt.Sprintf(\"%s\", m.Keys()), \"[]\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%s\", m.Keys()), \"[]\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/160299d0f773c9211fc0d4fd3b87cbba726fd758",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            5,
            7,
            8,
            9,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\tif actualValue, expactedValue := fmt.Sprintf(\"%s\", m.Values()), \"[]\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%s\", m.Values()), \"[]\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/160299d0f773c9211fc0d4fd3b87cbba726fd758",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            7,
            8,
            9,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\t\tif actualValue, expactedValue := fmt.Sprintf(\"%d%d%d\", set.Values()...), \"123\"; actualValue != expactedValue {\n\t\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\t\tif actualValue, expectedValue := fmt.Sprintf(\"%d%d%d\", set.Values()...), \"123\"; actualValue != expectedValue {\n\t\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/160299d0f773c9211fc0d4fd3b87cbba726fd758",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            8,
            9,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\tif actualValue, expactedValue := fmt.Sprintf(\"%d%d%d%d%d%d%d\", tree.Keys()...), \"1234567\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%d%d%d%d%d%d%d\", tree.Keys()...), \"1234567\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/160299d0f773c9211fc0d4fd3b87cbba726fd758",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            7,
            9,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\tif actualValue, expactedValue := fmt.Sprintf(\"%s%s%s%s%s%s%s\", tree.Values()...), \"abcdefg\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%s%s%s%s%s%s%s\", tree.Values()...), \"abcdefg\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/160299d0f773c9211fc0d4fd3b87cbba726fd758",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            7,
            8,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\tif actualValue, expactedValue := fmt.Sprintf(\"%d%d%d%d\", tree.Keys()...), \"1234\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%d%d%d%d\", tree.Keys()...), \"1234\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/160299d0f773c9211fc0d4fd3b87cbba726fd758",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            7,
            8,
            9,
            11,
            12,
            13
        ]
    },
    {
        "input": "\tif actualValue, expactedValue := fmt.Sprintf(\"%s%s%s%s\", tree.Values()...), \"abcd\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%s%s%s%s\", tree.Values()...), \"abcd\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n\tif actualValue, expactedValue := m.Keys(), []interface{}{1, 2, 3, 4, 5, 6, 7}; !sameElements(actualValue, expactedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := m.Keys(), []interface{}{1, 2, 3, 4, 5, 6, 7}; !sameElements(actualValue, expectedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n\tif actualValue, expactedValue := m.Values(), []interface{}{\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\"}; !sameElements(actualValue, expactedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := m.Values(), []interface{}{\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\"}; !sameElements(actualValue, expectedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n\tif actualValue, expactedValue := m.Keys(), []interface{}{1, 2, 3, 4}; !sameElements(actualValue, expactedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := m.Keys(), []interface{}{1, 2, 3, 4}; !sameElements(actualValue, expectedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n\tif actualValue, expactedValue := m.Values(), []interface{}{\"a\", \"b\", \"c\", \"d\"}; !sameElements(actualValue, expactedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := m.Values(), []interface{}{\"a\", \"b\", \"c\", \"d\"}; !sameElements(actualValue, expectedValue) {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n\tif actualValue, expactedValue := fmt.Sprintf(\"%s\", m.Keys()), \"[]\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%s\", m.Keys()), \"[]\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n\tif actualValue, expactedValue := fmt.Sprintf(\"%s\", m.Values()), \"[]\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%s\", m.Values()), \"[]\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n\t\tif actualValue, expactedValue := fmt.Sprintf(\"%d%d%d\", set.Values()...), \"123\"; actualValue != expactedValue {\n\t\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\t\tif actualValue, expectedValue := fmt.Sprintf(\"%d%d%d\", set.Values()...), \"123\"; actualValue != expectedValue {\n\t\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n\tif actualValue, expactedValue := fmt.Sprintf(\"%d%d%d%d%d%d%d\", tree.Keys()...), \"1234567\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%d%d%d%d%d%d%d\", tree.Keys()...), \"1234567\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n\tif actualValue, expactedValue := fmt.Sprintf(\"%s%s%s%s%s%s%s\", tree.Values()...), \"abcdefg\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%s%s%s%s%s%s%s\", tree.Values()...), \"abcdefg\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n\tif actualValue, expactedValue := fmt.Sprintf(\"%d%d%d%d\", tree.Keys()...), \"1234\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%d%d%d%d\", tree.Keys()...), \"1234\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n\tif actualValue, expactedValue := fmt.Sprintf(\"%s\", tree.Keys()), \"[]\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%s\", tree.Keys()), \"[]\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n\tif actualValue, expactedValue := fmt.Sprintf(\"%s\", tree.Values()), \"[]\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%s\", tree.Values()), \"[]\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/160299d0f773c9211fc0d4fd3b87cbba726fd758",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            7,
            8,
            9,
            10,
            12,
            13
        ]
    },
    {
        "input": "\tif actualValue, expactedValue := fmt.Sprintf(\"%s\", tree.Keys()), \"[]\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%s\", tree.Keys()), \"[]\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/160299d0f773c9211fc0d4fd3b87cbba726fd758",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            7,
            8,
            9,
            10,
            11,
            13
        ]
    },
    {
        "input": "\tif actualValue, expactedValue := fmt.Sprintf(\"%s\", tree.Values()), \"[]\"; actualValue != expactedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expactedValue)\n\tif actualValue, expectedValue := fmt.Sprintf(\"%s\", tree.Values()), \"[]\"; actualValue != expectedValue {\n\t\tt.Errorf(\"Got %v expected %v\", actualValue, expectedValue)\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/160299d0f773c9211fc0d4fd3b87cbba726fd758",
        "target_edit_idx": 13,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            7,
            8,
            9,
            10,
            11,
            12
        ]
    },
    {
        "input": "\treturn &Heap{list: arraylist.New(), comparator: utils.IntComparator}\n\treturn &Heap{list: arraylist.New(), Comparator: utils.IntComparator}\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/f9305332a4a3048d4d0c9fdeb3ce29adf805b0b4",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4,
            5,
            6,
            7
        ]
    },
    {
        "input": "\treturn &Heap{list: arraylist.New(), comparator: utils.StringComparator}\n\treturn &Heap{list: arraylist.New(), Comparator: utils.StringComparator}\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/f9305332a4a3048d4d0c9fdeb3ce29adf805b0b4",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            3,
            5,
            6,
            7
        ]
    },
    {
        "input": "\t\tif rightIndex < size && heap.comparator(leftValue, rightValue) > 0 {\n\t\tif rightIndex < size && heap.Comparator(leftValue, rightValue) > 0 {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/f9305332a4a3048d4d0c9fdeb3ce29adf805b0b4",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            3,
            4,
            6,
            7
        ]
    },
    {
        "input": "\t\tif heap.comparator(indexValue, smallerValue) > 0 {\n\t\tif heap.Comparator(indexValue, smallerValue) > 0 {\n\treturn &Heap{list: arraylist.New(), comparator: utils.IntComparator}\n\treturn &Heap{list: arraylist.New(), Comparator: utils.IntComparator}\n\treturn &Heap{list: arraylist.New(), comparator: utils.StringComparator}\n\treturn &Heap{list: arraylist.New(), Comparator: utils.StringComparator}\n\t\tif rightIndex < size && heap.comparator(leftValue, rightValue) > 0 {\n\t\tif rightIndex < size && heap.Comparator(leftValue, rightValue) > 0 {\n\t\tif heap.comparator(parentValue, indexValue) <= 0 {\n\t\tif heap.Comparator(parentValue, indexValue) <= 0 {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/f9305332a4a3048d4d0c9fdeb3ce29adf805b0b4",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            7
        ]
    },
    {
        "input": "\t\tif heap.comparator(parentValue, indexValue) <= 0 {\n\t\tif heap.Comparator(parentValue, indexValue) <= 0 {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/emirpasic/gods/commit/f9305332a4a3048d4d0c9fdeb3ce29adf805b0b4",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            6
        ]
    },
    {
        "input": "\t\"github.com/ipfs/interface-go-ipfs-core\"\n\tiface \"github.com/ipfs/interface-go-ipfs-core\"\n\t\"github.com/ipfs/interface-go-ipfs-core\"\n\tiface \"github.com/ipfs/interface-go-ipfs-core\"\n\t\"github.com/ipfs/interface-go-ipfs-core\"\n\tiface \"github.com/ipfs/interface-go-ipfs-core\"\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/ipfs/kubo/commit/d9004a9061070263dcc01976334836acb9493530",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            8,
            6
        ]
    },
    {
        "input": "\tres := cmd.Call(nil, req)\n\tres := cmd.Call(req)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/ipfs/kubo/commit/793a8de9c248b91903f28eb9ad5ee6dfe78b1875",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4,
            5,
            6,
            7,
            8,
            9
        ]
    },
    {
        "input": "\tres = cmd.Call(nil, req)\n\tres = cmd.Call(req)\n\tres := cmd.Call(nil, req)\n\tres := cmd.Call(req)\n\tres = cmd.Call(nil, req)\n\tres = cmd.Call(req)\n\tres = cmd.Call(nil, req)\n\tres = cmd.Call(req)\n\tres = cmd.Call(nil, req)\n\tres = cmd.Call(req)\n\tres = cmd.Call(nil, req)\n\tres = cmd.Call(req)\n\tres = cmd.Call(nil, req)\n\tres = cmd.Call(req)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/ipfs/kubo/commit/793a8de9c248b91903f28eb9ad5ee6dfe78b1875",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            3,
            5,
            6,
            7,
            8,
            9
        ]
    },
    {
        "input": "\tlk, err := lock.Lock(confdir + \"/daemon.lock\")\n\tlk, err := daemonLock(confdir)\n\tlk, err := lock.Lock(confdir + \"/daemon.lock\")\n\tlk, err := daemonLock(confdir)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/ipfs/kubo/commit/d0380b739d5a8f5a8cf87e63c54d2ef4159365a3",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "\tklog.Infof(\"DescribeListeners v2 %v\", request)\n\tklog.Infof(\"DescribeListenersPagesWithContext v2 %v\", request)\n\tklog.Infof(\"CreateListener v2 %v\", request)\n\tklog.Infof(\"CreateListenerWithContext v2 %v\", request)\n\tklog.Infof(\"DeleteListener v2 %v\", request)\n\tklog.Infof(\"DeleteListenerWithContext v2 %v\", request)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/kubernetes/kops/commit/c9b9a47b942e455f489a43278a70ff7bce0b6ffe",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            8,
            10
        ]
    },
    {
        "input": "func (m *MockELBV2) CreateListener(request *elbv2.CreateListenerInput) (*elbv2.CreateListenerOutput, error) {\nfunc (m *MockELBV2) CreateListenerWithContext(ctx aws.Context, request *elbv2.CreateListenerInput, opts ...request.Option) (*elbv2.CreateListenerOutput, error) {\nfunc (m *MockELBV2) DeleteListener(request *elbv2.DeleteListenerInput) (*elbv2.DeleteListenerOutput, error) {\nfunc (m *MockELBV2) DeleteListenerWithContext(ctx aws.Context, request *elbv2.DeleteListenerInput, opts ...request.Option) (*elbv2.DeleteListenerOutput, error) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/kubernetes/kops/commit/c9b9a47b942e455f489a43278a70ff7bce0b6ffe",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "\tif len(updateLabels) == 0 {\n\tdeleteLabels := make(map[string]struct{})\n\tfor k := range node.Labels {\n\t\t// If it is one of our managed labels, \"prune\" values we don't want to be there\n\t\tswitch k {\n\t\tcase nodelabels.RoleLabelMaster16, nodelabels.RoleLabelAPIServer16, nodelabels.RoleLabelNode16, nodelabels.RoleLabelControlPlane20:\n\t\t\tif _, found := labels[k]; !found {\n\t\t\t\tdeleteLabels[k] = struct{}{}\n\t\t\t}\n\t\t}\n\t}\n\n\tif len(updateLabels) == 0 && len(deleteLabels) == 0 {\n\tif len(updateLabels) == 0 {\n\tdeleteLabels := make(map[string]struct{})\n\tfor k := range node.Labels {\n\t\t// If it is one of our managed labels, \"prune\" values we don't want to be there\n\t\tswitch k {\n\t\tcase nodelabels.RoleLabelMaster16, nodelabels.RoleLabelAPIServer16, nodelabels.RoleLabelNode16, nodelabels.RoleLabelControlPlane20:\n\t\t\tif _, found := labels[k]; !found {\n\t\t\t\tdeleteLabels[k] = struct{}{}\n\t\t\t}\n\t\t}\n\t}\n\n\tif len(updateLabels) == 0 && len(deleteLabels) == 0 {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/kubernetes/kops/commit/5fd533c96a6a02d09e2935332f81ae5b1ee0e36c",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\tif err := patchNodeLabels(r.coreV1Client, ctx, node, updateLabels); err != nil {\n\tif err := patchNodeLabels(r.coreV1Client, ctx, node, updateLabels, deleteLabels); err != nil {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/kubernetes/kops/commit/5fd533c96a6a02d09e2935332f81ae5b1ee0e36c",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            1,
            6
        ]
    },
    {
        "input": "func patchNodeLabels(client *corev1client.CoreV1Client, ctx context.Context, node *corev1.Node, setLabels map[string]string) error {\nfunc patchNodeLabels(client *corev1client.CoreV1Client, ctx context.Context, node *corev1.Node, setLabels map[string]string, deleteLabels map[string]struct{}) error {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/kubernetes/kops/commit/5fd533c96a6a02d09e2935332f81ae5b1ee0e36c",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            1,
            4
        ]
    },
    {
        "input": "\t\t\t\"kube-controller-manager.kube-system.svc.\" + b.Cluster.Spec.ClusterDNSDomain,\n\t\t\t\"kube-controller-manager.kube-system.svc.\" + b.NodeupConfig.APIServerConfig.ClusterDNSDomain,\n\t\t\t\"kubernetes.default.svc.\" + b.Cluster.Spec.ClusterDNSDomain,\n\t\t\t\"kubernetes.default.svc.\" + b.NodeupConfig.APIServerConfig.ClusterDNSDomain,\n\t\t\t\"kube-scheduler.kube-system.svc.\" + b.Cluster.Spec.ClusterDNSDomain,\n\t\t\t\"kube-scheduler.kube-system.svc.\" + b.NodeupConfig.APIServerConfig.ClusterDNSDomain,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.0012077294685990338,
        "commit_url": "https://github.com/kubernetes/kops/commit/75db4d76a9e876fe0074b707bf489ee85dba72d3",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            3
        ]
    },
    {
        "input": "\tawsCloudInstances[region] = i\n\tAWSCloudInstances[region] = i\n\traw := awsCloudInstances[region]\n\traw := AWSCloudInstances[region]\n\t\tawsCloudInstances[region] = c\n\t\tAWSCloudInstances[region] = c\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/kubernetes/kops/commit/97964a12fb5013a573f4f492bb68eb1e04a9eea3",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            1,
            2
        ]
    },
    {
        "input": "\t\treturn nil, fmt.Errorf(\"server is already joined to kubernetes cluster\")\n\t\treturn nil, fmt.Errorf(\"server %q is already joined to kubernetes cluster\", instance.Name)\n\t\treturn nil, fmt.Errorf(\"authentication request address does not match to server addresses\")\n\t\treturn nil, fmt.Errorf(\"authentication request address %q does not match server addresses %v\", requestAddr, addrs)\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/kubernetes/kops/commit/9b020170596878f89476c9c067877c85f468de78",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\tc.Stdout = &stdout\n\tc.SetStdout(&stdout)\n\tc.Stdout = &stdout\n\tc.SetStdout(&stdout)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/kubernetes/kops/commit/7474a727e8ed7b2b18968b9c0af9132f800abd19",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "\tc.Stderr = &stderr\n\tc.SetStderr(&stderr)\n\tc.Stderr = &stderr\n\tc.SetStderr(&stderr)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/kubernetes/kops/commit/7474a727e8ed7b2b18968b9c0af9132f800abd19",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            12
        ]
    },
    {
        "input": "\t\t\tVolumeId: \"d1\",\n\t\t\tVolumeID: \"d1\",\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.625,
        "commit_url": "https://github.com/kubernetes/kops/commit/e5a6b79c19be7ffc66d7b623ab724a97d67be233",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            6,
            7,
            8,
            9
        ]
    },
    {
        "input": "\t\t\tVolumeId: \"d2\",\n\t\t\tVolumeID: \"d2\",\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.625,
        "commit_url": "https://github.com/kubernetes/kops/commit/e5a6b79c19be7ffc66d7b623ab724a97d67be233",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            5,
            7,
            8,
            9
        ]
    },
    {
        "input": "\t\t\t\t\t\t\tVolumeId: volume.ID,\n\t\t\t\t\t\t\tVolumeID: volume.ID,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.625,
        "commit_url": "https://github.com/kubernetes/kops/commit/e5a6b79c19be7ffc66d7b623ab724a97d67be233",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            5,
            6,
            8,
            9
        ]
    },
    {
        "input": "\t\t\tVolumeId: disk.Name,\n\t\t\tVolumeID: disk.Name,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.625,
        "commit_url": "https://github.com/kubernetes/kops/commit/e5a6b79c19be7ffc66d7b623ab724a97d67be233",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            9
        ]
    },
    {
        "input": "\tcluster, clientSet, completions, directive := GetClusterForCompletion(ctx, &rootCommand, \"\")\n\tcluster, clientSet, completions, directive := GetClusterForCompletion(ctx, &rootCommand, nil)\n\tcluster, clientSet, completions, directive := GetClusterForCompletion(ctx, &rootCommand, \"\")\n\tcluster, clientSet, completions, directive := GetClusterForCompletion(ctx, &rootCommand, nil)\n\tcluster, clientSet, completions, directive := GetClusterForCompletion(ctx, &rootCommand, \"\")\n\tcluster, clientSet, completions, directive := GetClusterForCompletion(ctx, &rootCommand, nil)\n\tcluster, clientSet, completions, directive := GetClusterForCompletion(ctx, &rootCommand, \"\")\n\tcluster, clientSet, completions, directive := GetClusterForCompletion(ctx, &rootCommand, nil)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/kubernetes/kops/commit/dbf4f23654cf15d23b8aa950eb7a2075b45c339f",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3
        ]
    },
    {
        "input": "\t\tlc.UserData = aws.String(base64.StdEncoding.EncodeToString(d))\n\t\tlc.UserData = aws.String(d)\n\t\tdata.UserData = aws.String(base64.StdEncoding.EncodeToString(d))\n\t\tdata.UserData = aws.String(d)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/kubernetes/kops/commit/869ed0e4d71870e6b69a56eef6b1c5edc48b70ac",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\tset_long = templates.LongDesc(i18n.T(`Set a configuration field.\n\tsetLong = templates.LongDesc(i18n.T(`Set a configuration field.\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/kubernetes/kops/commit/222dec0b9a243e34275525375fcf2bfb69d73836",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\t\tLong:    set_long,\n\t\tExample: set_example,\n\t\tLong:    setLong,\n\t\tExample: setExample,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/kubernetes/kops/commit/222dec0b9a243e34275525375fcf2bfb69d73836",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0
        ]
    },
    {
        "input": "\tset_cluster_long = templates.LongDesc(i18n.T(`Set a cluster field value.\n\tsetClusterLong = templates.LongDesc(i18n.T(`Set a cluster field value.\n\t\tLong:    set_cluster_long,\n\t\tExample: set_cluster_example,\n\t\tLong:    setClusterLong,\n\t\tExample: setClusterExample,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/kubernetes/kops/commit/222dec0b9a243e34275525375fcf2bfb69d73836",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t\tfmt.Fprintf(os.Stderr, \"No cluster found\\n\")\n\t\treturn nil\n\t\treturn fmt.Errorf(\"No cluster found\")\n\t\tfmt.Fprintf(os.Stderr, \"No clusters found\\n\")\n\t\treturn nil\n\t\treturn fmt.Errorf(\"No clusters found\")\n\t\tfmt.Fprintf(os.Stderr, \"No secrets found\\n\")\n\n\t\treturn nil\n\t\treturn fmt.Errorf(\"No secrets found\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/kubernetes/kops/commit/5a89dd113c1c696e4f03f873c7c623088294a26c",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            4
        ]
    },
    {
        "input": "\tif err := addUntaggedRouteTables(cloud, resources); err != nil {\n\tif err := addUntaggedRouteTables(cloud, c.ClusterName, resources); err != nil {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/kubernetes/kops/commit/1d239d9b09e08f4c2e06d154ff21de854c350730",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            5
        ]
    },
    {
        "input": "func addUntaggedRouteTables(cloud awsup.AWSCloud, resources map[string]*ResourceTracker) error {\nfunc addUntaggedRouteTables(cloud awsup.AWSCloud, clusterName string, resources map[string]*ResourceTracker) error {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/kubernetes/kops/commit/1d239d9b09e08f4c2e06d154ff21de854c350730",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0,
            5
        ]
    },
    {
        "input": "\terr := addUntaggedRouteTables(cloud, resources)\n\terr := addUntaggedRouteTables(cloud, clusterName, resources)\n\tif err := addUntaggedRouteTables(cloud, resources); err != nil {\n\tif err := addUntaggedRouteTables(cloud, c.ClusterName, resources); err != nil {\nfunc addUntaggedRouteTables(cloud awsup.AWSCloud, resources map[string]*ResourceTracker) error {\nfunc addUntaggedRouteTables(cloud awsup.AWSCloud, clusterName string, resources map[string]*ResourceTracker) error {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/kubernetes/kops/commit/1d239d9b09e08f4c2e06d154ff21de854c350730",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            0,
            1
        ]
    },
    {
        "input": "var started = false\n\nvar started = false\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.8571428571428571,
        "commit_url": "https://github.com/wtfutil/wtf/commit/ce38c3f754f0b1e58dcdb198a54caf607d68a490",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "\tstarted = false\n\tstarted = false\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/wtfutil/wtf/commit/ce38c3f754f0b1e58dcdb198a54caf607d68a490",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "\tdisplay(widget)\n\n\twidget.display()\n\tdisplay(widget)\n\twidget.display()\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/wtfutil/wtf/commit/ce38c3f754f0b1e58dcdb198a54caf607d68a490",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            14
        ]
    },
    {
        "input": "\tdb, path := mustSetupDBForTimeoutTests(t, 1000)\n\tdb, path := mustSetupDBForTimeoutTests(t, 5000)\n\tdb, path := mustSetupDBForTimeoutTests(t, 1000)\n\tdb, path := mustSetupDBForTimeoutTests(t, 5000)\n\tdb, path := mustSetupDBForTimeoutTests(t, 1000)\n\tdb, path := mustSetupDBForTimeoutTests(t, 5000)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/rqlite/rqlite/commit/c36de556ecff53e5ee9730c38e5f982a103bf14f",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            8,
            5
        ]
    },
    {
        "input": "\tprocArgs, err := createProcessArgs(args.ID, args.Spec, creds, k, k.RootPIDNamespace())\n\tprocArgs, err := createProcessArgs(args.ID, args.Spec, args.Conf, creds, k, k.RootPIDNamespace())\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/cc37e536cbf8f63d046271109d1904ccd6ac45ed",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3,
            5
        ]
    },
    {
        "input": "func createProcessArgs(id string, spec *specs.Spec, creds *auth.Credentials, k *kernel.Kernel, pidns *kernel.PIDNamespace) (kernel.CreateProcessArgs, error) {\nfunc createProcessArgs(id string, spec *specs.Spec, conf *config.Config, creds *auth.Credentials, k *kernel.Kernel, pidns *kernel.PIDNamespace) (kernel.CreateProcessArgs, error) {\n\tprocArgs, err := createProcessArgs(args.ID, args.Spec, creds, k, k.RootPIDNamespace())\n\tprocArgs, err := createProcessArgs(args.ID, args.Spec, args.Conf, creds, k, k.RootPIDNamespace())\n\tinfo.procArgs, err = createProcessArgs(cid, spec, creds, l.k, pidns)\n\tinfo.procArgs, err = createProcessArgs(cid, spec, conf, creds, l.k, pidns)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/cc37e536cbf8f63d046271109d1904ccd6ac45ed",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2,
            5
        ]
    },
    {
        "input": "\tls, err := createLimitSet(spec)\n\tls, err := createLimitSet(spec, specutils.TPUProxyIsEnabled(spec, conf))\nfunc createLimitSet(spec *specs.Spec) (*limits.LimitSet, error) {\nfunc createLimitSet(spec *specs.Spec, enableTPUProxy bool) (*limits.LimitSet, error) {\n\targs.Limits, err = createLimitSet(l.root.spec)\n\targs.Limits, err = createLimitSet(l.root.spec, specutils.TPUProxyIsEnabled(l.root.spec, l.root.conf))\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/google/gvisor/commit/cc37e536cbf8f63d046271109d1904ccd6ac45ed",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            6
        ]
    },
    {
        "input": "\tinfo.procArgs, err = createProcessArgs(cid, spec, creds, l.k, pidns)\n\tinfo.procArgs, err = createProcessArgs(cid, spec, conf, creds, l.k, pidns)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/cc37e536cbf8f63d046271109d1904ccd6ac45ed",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            2,
            3
        ]
    },
    {
        "input": "\t\tipv4 := header.IPv4(pkt.NetworkHeader().Slice())\n\t\tipv4 := header.IPv4(clone.NetworkHeader().Slice())\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8235294117647058,
        "commit_url": "https://github.com/google/gvisor/commit/88efa359d533b54f823c11fec7f746aae0ac19c0",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            1,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\t\tproto, fragID, fragOffset, fragMore, ok := parse.IPv6(pkt)\n\t\tproto, fragID, fragOffset, fragMore, ok := parse.IPv6(clone)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8235294117647058,
        "commit_url": "https://github.com/google/gvisor/commit/88efa359d533b54f823c11fec7f746aae0ac19c0",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            1,
            2,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\t\tipv6 := header.IPv6(pkt.NetworkHeader().Slice())\n\t\tipv6 := header.IPv6(clone.NetworkHeader().Slice())\n\t\tif ok := parse.IPv4(pkt); !ok {\n\t\tif ok := parse.IPv4(clone); !ok {\n\t\tipv4 := header.IPv4(pkt.NetworkHeader().Slice())\n\t\tipv4 := header.IPv4(clone.NetworkHeader().Slice())\n\t\tproto, fragID, fragOffset, fragMore, ok := parse.IPv6(pkt)\n\t\tproto, fragID, fragOffset, fragMore, ok := parse.IPv6(clone)\n\t\tif !parse.ARP(pkt) {\n\t\tif !parse.ARP(clone) {\n\t\tarp := header.ARP(pkt.NetworkHeader().Slice())\n\t\tarp := header.ARP(clone.NetworkHeader().Slice())\n\t\thdr, ok := pkt.Data().PullUp(header.ICMPv4MinimumSize)\n\t\thdr, ok := clone.Data().PullUp(header.ICMPv4MinimumSize)\n\t\thdr, ok := pkt.Data().PullUp(header.ICMPv6MinimumSize)\n\t\thdr, ok := clone.Data().PullUp(header.ICMPv6MinimumSize)\n\t\tif ok := parse.UDP(pkt); !ok {\n\t\tif ok := parse.UDP(clone); !ok {\n\t\tudp := header.UDP(pkt.TransportHeader().Slice())\n\t\tudp := header.UDP(clone.TransportHeader().Slice())\n\t\tif ok := parse.TCP(pkt); !ok {\n\t\tif ok := parse.TCP(clone); !ok {\n\t\ttcp := header.TCP(pkt.TransportHeader().Slice())\n\t\ttcp := header.TCP(clone.TransportHeader().Slice())\n\t\t\tif size := pkt.Data().Size() + len(tcp); offset > size && !moreFragments {\n\t\t\tif size := clone.Data().Size() + len(tcp); offset > size && !moreFragments {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8235294117647058,
        "commit_url": "https://github.com/google/gvisor/commit/88efa359d533b54f823c11fec7f746aae0ac19c0",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\t\tif !parse.ARP(pkt) {\n\t\tif !parse.ARP(clone) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8235294117647058,
        "commit_url": "https://github.com/google/gvisor/commit/88efa359d533b54f823c11fec7f746aae0ac19c0",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\t\tarp := header.ARP(pkt.NetworkHeader().Slice())\n\t\tarp := header.ARP(clone.NetworkHeader().Slice())\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8235294117647058,
        "commit_url": "https://github.com/google/gvisor/commit/88efa359d533b54f823c11fec7f746aae0ac19c0",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            5,
            7,
            8,
            9,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\t\tif ok := parse.UDP(pkt); !ok {\n\t\tif ok := parse.UDP(clone); !ok {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8235294117647058,
        "commit_url": "https://github.com/google/gvisor/commit/88efa359d533b54f823c11fec7f746aae0ac19c0",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "\t\ttcp := header.TCP(pkt.TransportHeader().Slice())\n\t\ttcp := header.TCP(clone.TransportHeader().Slice())\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8235294117647058,
        "commit_url": "https://github.com/google/gvisor/commit/88efa359d533b54f823c11fec7f746aae0ac19c0",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            13
        ]
    },
    {
        "input": "\t\t\tif size := pkt.Data().Size() + len(tcp); offset > size && !moreFragments {\n\t\t\tif size := clone.Data().Size() + len(tcp); offset > size && !moreFragments {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8235294117647058,
        "commit_url": "https://github.com/google/gvisor/commit/88efa359d533b54f823c11fec7f746aae0ac19c0",
        "target_edit_idx": 13,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12
        ]
    },
    {
        "input": "\tep.control, err = xdp.ReadOnlyFromSocket(opts.FD, uint32(opts.InterfaceIndex), 0 /* queueID */, xdpOpts)\n\tep.control, err = xdp.NewFromSocket(opts.FD, uint32(opts.InterfaceIndex), 0 /* queueID */, xdpOpts)\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/f76d64021e0c3828e5fef79c62c9d4e8e569565b",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            5,
            7
        ]
    },
    {
        "input": "// TODO(b/240191988): None of this is read-only anymore.\n\n// ReadOnlySocketOpts configure a read-only AF_XDP socket.\ntype ReadOnlySocketOpts struct {\n// Opts configure an AF_XDP socket.\ntype Opts struct {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8888888888888888,
        "commit_url": "https://github.com/google/gvisor/commit/f76d64021e0c3828e5fef79c62c9d4e8e569565b",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            3,
            4,
            7,
            8,
            9,
            10,
            11
        ]
    },
    {
        "input": "// DefaultReadOnlyOpts provides recommended default options for initializing a\n// readonly AF_XDP socket. AF_XDP setup is extremely finnicky and can fail if\n// incorrect values are used.\nfunc DefaultReadOnlyOpts() ReadOnlySocketOpts {\n\treturn ReadOnlySocketOpts{\n// DefaultOpts provides recommended default options for initializing an AF_XDP\n// socket. AF_XDP setup is extremely finnicky and can fail if incorrect values\n// are used.\nfunc DefaultOpts() Opts {\n\treturn Opts{\n\txdpOpts := xdp.ReadOnlySocketOpts{\n\txdpOpts := xdp.Opts{\n// TODO(b/240191988): None of this is read-only anymore.\n\n// ReadOnlySocketOpts configure a read-only AF_XDP socket.\ntype ReadOnlySocketOpts struct {\n// Opts configure an AF_XDP socket.\ntype Opts struct {\n// ReadOnlySocket returns an initialized read-only AF_XDP socket bound to a\n// particular interface and queue.\nfunc ReadOnlySocket(ifaceIdx, queueID uint32, opts ReadOnlySocketOpts) (*ControlBlock, error) {\n// New returns an initialized AF_XDP socket bound to a particular interface and\n// queue.\nfunc New(ifaceIdx, queueID uint32, opts Opts) (*ControlBlock, error) {\nfunc ReadOnlyFromSocket(sockfd int, ifaceIdx, queueID uint32, opts ReadOnlySocketOpts) (*ControlBlock, error) {\nfunc NewFromSocket(sockfd int, ifaceIdx, queueID uint32, opts Opts) (*ControlBlock, error) {\nfunc (fq *FillQueue) init(off unix.XDPMmapOffsets, opts ReadOnlySocketOpts) {\nfunc (fq *FillQueue) init(off unix.XDPMmapOffsets, opts Opts) {\nfunc (rq *RXQueue) init(off unix.XDPMmapOffsets, opts ReadOnlySocketOpts) {\nfunc (rq *RXQueue) init(off unix.XDPMmapOffsets, opts Opts) {\nfunc (cq *CompletionQueue) init(off unix.XDPMmapOffsets, opts ReadOnlySocketOpts) {\nfunc (cq *CompletionQueue) init(off unix.XDPMmapOffsets, opts Opts) {\nfunc (tq *TXQueue) init(off unix.XDPMmapOffsets, opts ReadOnlySocketOpts) {\nfunc (tq *TXQueue) init(off unix.XDPMmapOffsets, opts Opts) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.8,
        "commit_url": "https://github.com/google/gvisor/commit/f76d64021e0c3828e5fef79c62c9d4e8e569565b",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            2,
            4,
            7,
            8,
            9,
            10,
            11
        ]
    },
    {
        "input": "// ReadOnlySocket returns an initialized read-only AF_XDP socket bound to a\n// particular interface and queue.\nfunc ReadOnlySocket(ifaceIdx, queueID uint32, opts ReadOnlySocketOpts) (*ControlBlock, error) {\n// New returns an initialized AF_XDP socket bound to a particular interface and\n// queue.\nfunc New(ifaceIdx, queueID uint32, opts Opts) (*ControlBlock, error) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.9,
        "commit_url": "https://github.com/google/gvisor/commit/f76d64021e0c3828e5fef79c62c9d4e8e569565b",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            2,
            3,
            7,
            8,
            9,
            10,
            11,
            12
        ]
    },
    {
        "input": "\treturn ReadOnlyFromSocket(sockfd, ifaceIdx, queueID, opts)\n\treturn NewFromSocket(sockfd, ifaceIdx, queueID, opts)\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/f76d64021e0c3828e5fef79c62c9d4e8e569565b",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            1,
            7
        ]
    },
    {
        "input": "func ReadOnlyFromSocket(sockfd int, ifaceIdx, queueID uint32, opts ReadOnlySocketOpts) (*ControlBlock, error) {\nfunc NewFromSocket(sockfd int, ifaceIdx, queueID uint32, opts Opts) (*ControlBlock, error) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/f76d64021e0c3828e5fef79c62c9d4e8e569565b",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            8,
            9,
            10,
            11
        ]
    },
    {
        "input": "func (rq *RXQueue) init(off unix.XDPMmapOffsets, opts ReadOnlySocketOpts) {\nfunc (rq *RXQueue) init(off unix.XDPMmapOffsets, opts Opts) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/f76d64021e0c3828e5fef79c62c9d4e8e569565b",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            0,
            2,
            3,
            4,
            7,
            8,
            10,
            11
        ]
    },
    {
        "input": "func (cq *CompletionQueue) init(off unix.XDPMmapOffsets, opts ReadOnlySocketOpts) {\nfunc (cq *CompletionQueue) init(off unix.XDPMmapOffsets, opts Opts) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/f76d64021e0c3828e5fef79c62c9d4e8e569565b",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            0,
            2,
            3,
            4,
            7,
            8,
            9,
            11
        ]
    },
    {
        "input": "func (tq *TXQueue) init(off unix.XDPMmapOffsets, opts ReadOnlySocketOpts) {\nfunc (tq *TXQueue) init(off unix.XDPMmapOffsets, opts Opts) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/f76d64021e0c3828e5fef79c62c9d4e8e569565b",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            0,
            2,
            3,
            4,
            7,
            8,
            9,
            10
        ]
    },
    {
        "input": "\tcontrolBlock, err := xdp.ReadOnlySocket(\n\t\tuint32(iface.Index), 0 /* queueID */, xdp.DefaultReadOnlyOpts())\n\tcontrolBlock, err := xdp.New(\n\t\tuint32(iface.Index), 0 /* queueID */, xdp.DefaultOpts())\n// ReadOnlySocket returns an initialized read-only AF_XDP socket bound to a\n// particular interface and queue.\nfunc ReadOnlySocket(ifaceIdx, queueID uint32, opts ReadOnlySocketOpts) (*ControlBlock, error) {\n// New returns an initialized AF_XDP socket bound to a particular interface and\n// queue.\nfunc New(ifaceIdx, queueID uint32, opts Opts) (*ControlBlock, error) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/f76d64021e0c3828e5fef79c62c9d4e8e569565b",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\tnt := nfNATTarget{\n\tnt := linux.XTNATTargetV1{\n\tnt := nfNATTarget{\n\tnt := linux.XTNATTargetV1{\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/b80e856de317b73d7ecaba389b024de1c33ae0c1",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            12
        ]
    },
    {
        "input": "\t\t\tTargetSize: nfNATMarshalledSize,\n\t\t\tTargetSize: linux.SizeOfXTNATTargetV1,\n\t\t\tTargetSize: nfNATMarshalledSize,\n\t\t\tTargetSize: linux.SizeOfXTNATTargetV1,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/b80e856de317b73d7ecaba389b024de1c33ae0c1",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            13
        ]
    },
    {
        "input": "\tif size := nfNATMarshalledSize; len(buf) < size {\n\tif size := linux.SizeOfXTNATTargetV1; len(buf) < size {\n\tif size := nfNATMarshalledSize; len(buf) < size {\n\tif size := linux.SizeOfXTNATTargetV1; len(buf) < size {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/b80e856de317b73d7ecaba389b024de1c33ae0c1",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            14
        ]
    },
    {
        "input": "\txt := linux.XTSNATTarget{\n\txt := linux.XTNATTargetV0{\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/google/gvisor/commit/b80e856de317b73d7ecaba389b024de1c33ae0c1",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            1,
            10
        ]
    },
    {
        "input": "\t\t\tTargetSize: linux.SizeOfXTSNATTarget,\n\t\t\tTargetSize: linux.SizeOfXTNATTargetV0,\n\tif len(buf) < linux.SizeOfXTSNATTarget {\n\tif len(buf) < linux.SizeOfXTNATTargetV0 {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/b80e856de317b73d7ecaba389b024de1c33ae0c1",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "\tif len(buf) < linux.SizeOfXTSNATTarget {\n\tif len(buf) < linux.SizeOfXTNATTargetV0 {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/b80e856de317b73d7ecaba389b024de1c33ae0c1",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\tvar st linux.XTSNATTarget\n\tvar st linux.XTNATTargetV0\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/google/gvisor/commit/b80e856de317b73d7ecaba389b024de1c33ae0c1",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            1,
            7
        ]
    },
    {
        "input": "\t\tif _, ok := typ.(*types.TypeParam); ok {\n\t\tif _, ok := typ.Underlying().(*types.TypeParam); ok {\n\t\tif _, ok := typ.(*types.TypeParam); ok {\n\t\tif _, ok := typ.Underlying().(*types.TypeParam); ok {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/442b16ee24cb56c3e0769d60b18cdb7a48979ef9",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\t\ta := Align(pass.TypesSizes.Alignof(typ))\n\t\ts := Size(pass.TypesSizes.Sizeof(typ))\n\t\tpass.ExportObjectFact(obj, &a)\n\t\tpass.ExportObjectFact(obj, &s)\n\t\tbestEffort(func() {\n\t\t\ta := Align(pass.TypesSizes.Alignof(typ))\n\t\t\ts := Size(pass.TypesSizes.Sizeof(typ))\n\t\t\tpass.ExportObjectFact(obj, &a)\n\t\t\tpass.ExportObjectFact(obj, &s)\n\t\t})\n\t\ta := Align(pass.TypesSizes.Alignof(typ))\n\t\ts := Size(pass.TypesSizes.Sizeof(typ))\n\t\tpass.ExportObjectFact(obj, &a)\n\t\tpass.ExportObjectFact(obj, &s)\n\t\tbestEffort(func() {\n\t\t\ta := Align(pass.TypesSizes.Alignof(typ))\n\t\t\ts := Size(pass.TypesSizes.Sizeof(typ))\n\t\t\tpass.ExportObjectFact(obj, &a)\n\t\t\tpass.ExportObjectFact(obj, &s)\n\t\t})\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/google/gvisor/commit/442b16ee24cb56c3e0769d60b18cdb7a48979ef9",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\tsinks[sink.Name] = sink\n\tSinks[sink.Name] = sink\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/google/gvisor/commit/dc4cd669fcf90e758927d5ebbc79d3fb1547c597",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            0,
            4,
            6
        ]
    },
    {
        "input": "\tif _, ok := sinks[\"test\"]; !ok {\n\tif _, ok := Sinks[\"test\"]; !ok {\n\tif desc, ok := sinks[name]; ok {\n\tif desc, ok := Sinks[name]; ok {\n\tif _, ok := sinks[sink.Name]; ok {\n\tif _, ok := Sinks[sink.Name]; ok {\n\tsinks[sink.Name] = sink\n\tSinks[sink.Name] = sink\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/google/gvisor/commit/dc4cd669fcf90e758927d5ebbc79d3fb1547c597",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            0,
            4,
            5
        ]
    },
    {
        "input": "\tbinary.BigEndian.PutUint16(b[icmpv4ChecksumOffset:], checksum)\n\tPutChecksum(b[icmpv4ChecksumOffset:], checksum)\n\tbinary.BigEndian.PutUint16(b[icmpv6ChecksumOffset:], checksum)\n\tPutChecksum(b[icmpv6ChecksumOffset:], checksum)\n\tbinary.BigEndian.PutUint16(b[TCPChecksumOffset:], checksum)\n\tPutChecksum(b[TCPChecksumOffset:], checksum)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.625,
        "commit_url": "https://github.com/google/gvisor/commit/b26b4610bfb7bf37821ab33ad51ace3c6ece81dd",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            4
        ]
    },
    {
        "input": "\t\t\tfsmetric.GoferOpensWX.Increment()\n\t\tfsmetric.GoferOpensWX.Increment()\n\t\tfsmetric.GoferOpensWX.Increment()\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/google/gvisor/commit/e4984f8539560d49847fec84925333966f0c58e8",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2
        ]
    },
    {
        "input": "\t\tdata = p9MountData(m.fd, c.getMountAccessType(m.Mount), true /* vfs2 */)\n\t\tdata = p9MountData(m.fd, c.getMountAccessType(conf, m.Mount), true /* vfs2 */)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/google/gvisor/commit/960155cdaad49ccea07e45152f124beeb7e7fdcc",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0
        ]
    },
    {
        "input": "\t\trt.MinIP = tcpip.Address([]byte{127, 0, 0, 1})\n\t\trt.MaxIP = tcpip.Address([]byte{127, 0, 0, 1})\n\t\trt.Addr = tcpip.Address([]byte{127, 0, 0, 1})\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/0aae51c6e09046e56f2d4b6064124da059731286",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "\t\trt.MinIP = address\n\t\trt.MaxIP = address\n\t\trt.Addr = address\n\t\trt.MinIP = tcpip.Address([]byte{127, 0, 0, 1})\n\t\trt.MaxIP = tcpip.Address([]byte{127, 0, 0, 1})\n\t\trt.Addr = tcpip.Address([]byte{127, 0, 0, 1})\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/0aae51c6e09046e56f2d4b6064124da059731286",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "\t\tnetHeader.SetDestinationAddress(rt.MinIP)\n\t\tnetHeader.SetDestinationAddress(rt.Addr)\n\treplyTID.srcAddr = rt.MinIP\n\treplyTID.srcPort = rt.MinPort\n\treplyTID.srcAddr = rt.Addr\n\treplyTID.srcPort = rt.Port\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8,
        "commit_url": "https://github.com/google/gvisor/commit/0aae51c6e09046e56f2d4b6064124da059731286",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t\tSize: sizeOfInt32,\n\t\tSize: sizeOfStringInt32,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/1e8beb5f1d925ed0c30a2b810fc2a0bffbd3cf58",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0,
            3
        ]
    },
    {
        "input": "\t\t\t\"tshark\", \"-V\", \"-l\", \"-n\", \"-i\", testNetDev,\n\t\t\t\"tshark\", \"-V\", \"-l\", \"-n\", \"-i\", snifferNetDev,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/64aae6bbd6ab8c23ee48fd6e7315c27c2cbf2ea4",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2,
            4
        ]
    },
    {
        "input": "\t\tif logs, err := testbench.Exec(ctx, dockerutil.ExecOpts{}, bin, \"-A\", \"INPUT\", \"-i\", testNetDev, \"-p\", \"tcp\", \"-j\", \"DROP\"); err != nil {\n\t\tif logs, err := testbench.Exec(ctx, dockerutil.ExecOpts{}, bin, \"-A\", \"INPUT\", \"-i\", snifferNetDev, \"-p\", \"tcp\", \"-j\", \"DROP\"); err != nil {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/64aae6bbd6ab8c23ee48fd6e7315c27c2cbf2ea4",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            2,
            3
        ]
    },
    {
        "input": "\t\tpkt.Data, ready, err = e.fragmentation.Process(\n\t\tpkt.Data, ready, err = e.protocol.fragmentation.Process(\n\t\t\t// As per RFC 791 section 2.3, the identification value is unique\n\t\t\t// for a source-destination pair and protocol.\n\t\t\tpkt.Data, ready, err = e.fragmentation.Process(\n\t\t\tpkt.Data, ready, err = e.protocol.fragmentation.Process(\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/google/gvisor/commit/00993130e5a9c05aaa88c5a860407b079093a024",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "// +build i386 amd64\n// +build 386 amd64\n// +build i386 amd64\n// +build 386 amd64\n// +build i386 amd64\n// +build 386 amd64\n// +build i386 amd64\n// +build 386 amd64\n// +build i386 amd64\n// +build 386 amd64\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.8333333333333334,
        "commit_url": "https://github.com/google/gvisor/commit/db7917556a7e4bd2cd6d183c68f04a4787dec493",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            8,
            1,
            2,
            7
        ]
    },
    {
        "input": "// +build amd64 i386\n// +build amd64 386\n// +build amd64 i386\n// +build amd64 386\n// +build amd64 i386\n// +build amd64 386\n// +build amd64 i386\n// +build amd64 386\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/google/gvisor/commit/db7917556a7e4bd2cd6d183c68f04a4787dec493",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            9,
            4,
            5
        ]
    },
    {
        "input": "\t\treturn execTG.SendSignal(&arch.SignalInfo{Signo: signo})\n\t\treturn l.k.SendExternalSignalThreadGroup(execTG, &arch.SignalInfo{Signo: signo})\n\treturn tg.SendSignal(&arch.SignalInfo{Signo: signo})\n\treturn l.k.SendExternalSignalThreadGroup(tg, &arch.SignalInfo{Signo: signo})\n\t\treturn tg.SendSignal(&arch.SignalInfo{Signo: signo})\n\t\treturn l.k.SendExternalSignalThreadGroup(tg, &arch.SignalInfo{Signo: signo})\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/google/gvisor/commit/5baf9dc2fbb459828b4102b0a1c5214879434c03",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            3
        ]
    },
    {
        "input": "\t\tSysname: _LINUX_SYSNAME,\n\t\tRelease: _LINUX_RELEASE,\n\t\tVersion: _LINUX_VERSION,\n\t\tSysname: LinuxSysname,\n\t\tRelease: LinuxRelease,\n\t\tVersion: LinuxVersion,\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/google/gvisor/commit/ebe8001724a6965cc9723604b38f42563d284a6a",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0,
            2
        ]
    },
    {
        "input": "\t\tSysname: _LINUX_SYSNAME,\n\t\tRelease: _LINUX_RELEASE,\n\t\tVersion: _LINUX_VERSION,\n\t\tSysname: LinuxSysname,\n\t\tRelease: LinuxRelease,\n\t\tVersion: LinuxVersion,\n\t_LINUX_SYSNAME = \"Linux\"\n\t_LINUX_RELEASE = \"4.4.0\"\n\t_LINUX_VERSION = \"#1 SMP Sun Jan 10 15:06:54 PST 2016\"\n\t// LinuxSysname is the OS name advertised by gVisor.\n\tLinuxSysname = \"Linux\"\n\n\t// LinuxRelease is the Linux release version number advertised by gVisor.\n\tLinuxRelease = \"4.4.0\"\n\n\t// LinuxVersion is the version info advertised by gVisor.\n\tLinuxVersion = \"#1 SMP Sun Jan 10 15:06:54 PST 2016\"\n\t\tSysname: _LINUX_SYSNAME,\n\t\tRelease: _LINUX_RELEASE,\n\t\tVersion: _LINUX_VERSION,\n\t\tSysname: LinuxSysname,\n\t\tRelease: LinuxRelease,\n\t\tVersion: LinuxVersion,\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/google/gvisor/commit/ebe8001724a6965cc9723604b38f42563d284a6a",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            1
        ]
    },
    {
        "input": "\treturn NewPipe(contexttest.Context(t), true, DefaultPipeSize, usermem.PageSize)\n\treturn NewPipe(true, DefaultPipeSize, usermem.PageSize)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/1de0cf3563502c1460964fc2fc9dca1ee447449a",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            3,
            4
        ]
    },
    {
        "input": "\treturn NewPipe(contexttest.Context(t), false, DefaultPipeSize, usermem.PageSize)\n\treturn NewPipe(false, DefaultPipeSize, usermem.PageSize)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/1de0cf3563502c1460964fc2fc9dca1ee447449a",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            1,
            3,
            4
        ]
    },
    {
        "input": "func NewPipe(ctx context.Context, isNamed bool, sizeBytes, atomicIOBytes int64) *Pipe {\nfunc NewPipe(isNamed bool, sizeBytes, atomicIOBytes int64) *Pipe {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/1de0cf3563502c1460964fc2fc9dca1ee447449a",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            1,
            2,
            4
        ]
    },
    {
        "input": "\tp := NewPipe(ctx, false /* isNamed */, sizeBytes, atomicIOBytes)\n\tp := NewPipe(false /* isNamed */, sizeBytes, atomicIOBytes)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/1de0cf3563502c1460964fc2fc9dca1ee447449a",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            1,
            2,
            3
        ]
    },
    {
        "input": "\tlinkID, err := fdbased.New(&fdbased.Options{FDs: []int{fd}, MTU: mtu})\n\tlinkEP, err := fdbased.New(&fdbased.Options{FDs: []int{fd}, MTU: mtu})\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/747320a7aa013f6b987f8f52173f51ff3aedb66c",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3
        ]
    },
    {
        "input": "\tif err := s.CreateNIC(1, sniffer.New(linkID)); err != nil {\n\tif err := s.CreateNIC(1, sniffer.New(linkEP)); err != nil {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/747320a7aa013f6b987f8f52173f51ff3aedb66c",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0,
            2,
            3
        ]
    },
    {
        "input": "\tlinkID, err := fdbased.New(&fdbased.Options{\n\tlinkEP, err := fdbased.New(&fdbased.Options{\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/747320a7aa013f6b987f8f52173f51ff3aedb66c",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            1,
            3
        ]
    },
    {
        "input": "\tif err := s.CreateNIC(1, linkID); err != nil {\n\tif err := s.CreateNIC(1, linkEP); err != nil {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/747320a7aa013f6b987f8f52173f51ff3aedb66c",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            2
        ]
    },
    {
        "input": "\treturn b.ReadFileMode() & PermissionsMask\n\treturn b.ReadFileMode() & permissionsMask\n\tb.WriteFileMode(perm & PermissionsMask)\n\tb.WriteFileMode(perm & permissionsMask)\n\treturn m & PermissionsMask\n\treturn m & permissionsMask\n\t\ta.Mode = a.Mode&^PermissionsMask | (attr.Permissions & PermissionsMask)\n\t\ta.Mode = a.Mode&^permissionsMask | (attr.Permissions & permissionsMask)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/f1c1ee8a8ea6c0035aa799af3d7f5733fa2275d0",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            3,
            4
        ]
    },
    {
        "input": "\treturn m & PermissionsMask\n\treturn m & permissionsMask\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/f1c1ee8a8ea6c0035aa799af3d7f5733fa2275d0",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            4
        ]
    },
    {
        "input": "\t\tif err := setUpChroot(); err != nil {\n\t\tif err := setUpChroot(b.pidns); err != nil {\nfunc setUpChroot() error {\nfunc setUpChroot(pidns bool) error {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/c063a1350f4ac6249fb26e6125c9cc99db14263b",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "func setUpChroot() error {\nfunc setUpChroot(pidns bool) error {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/c063a1350f4ac6249fb26e6125c9cc99db14263b",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\t// Revalidate returns true if the Dirent is stale and its InodeOperations needs to be reloaded. Revalidate\n\t// will never be called on a Dirent that is mounted.\n\tRevalidate(dirent *Dirent) bool\n\t// Revalidate returns true if the Dirent is stale and its\n\t// InodeOperations needs to be reloaded. Revalidate will never be\n\t// called on a Dirent that is mounted.\n\tRevalidate(ctx context.Context, dirent *Dirent) bool\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/be431d0934b8d33dcb1909527e0f9ed7eb504b6f",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            1,
            7
        ]
    },
    {
        "input": "func (o *overlayMountSourceOperations) Revalidate(dirent *Dirent) bool {\n\tif o.upper.Revalidate(dirent) || o.lower.Revalidate(dirent) {\nfunc (o *overlayMountSourceOperations) Revalidate(ctx context.Context, dirent *Dirent) bool {\n\tif o.upper.Revalidate(ctx, dirent) || o.lower.Revalidate(ctx, dirent) {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/google/gvisor/commit/be431d0934b8d33dcb1909527e0f9ed7eb504b6f",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            1,
            4
        ]
    },
    {
        "input": "\t// It is only valid if restored is true.\n\t// It is only valid if restored is non-nil.\n\t// It is only valid if restored is true.\n\t// It is only valid if restored is non-nil.\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/google/gvisor/commit/1cd46c8dd1a92dd0ad3eeb60a763278f2e98d0b4",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\tif t.restored {\n\tif t.restored != nil {\n\tif t.restored {\n\tif t.restored != nil {\n\tif !t.restored {\n\tif t.restored == nil {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/google/gvisor/commit/1cd46c8dd1a92dd0ad3eeb60a763278f2e98d0b4",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4,
            5
        ]
    },
    {
        "input": "\tt.restored = true\n\tt.restored = make(chan struct{})\n\ttk.restored = true\n\ttk.restored = make(chan struct{})\n\ttk.restored = true\n\ttk.restored = make(chan struct{})\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/google/gvisor/commit/1cd46c8dd1a92dd0ad3eeb60a763278f2e98d0b4",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9,
            10
        ]
    },
    {
        "input": "\tdefer e.mu.Unlock()\n\tdefer e.mu.Unlock()\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.1,
        "commit_url": "https://github.com/google/gvisor/commit/afd655a5d8b9d9bc747ee99b1ec2475cc526c996",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\ts := RunDefaultServer()\n\topts := DefaultTestOptions\n\topts.Port = -1\n\ts := RunServer(&opts)\n\ts := RunDefaultServer()\n\topts := DefaultTestOptions\n\topts.Port = -1\n\ts := RunServer(&opts)\n\ts := RunDefaultServer()\n\topts := DefaultTestOptions\n\topts.Port = -1\n\ts := RunServer(&opts)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/nats-io/nats-server/commit/72bbd2b98211d1c799737f8d9e3a8a02b8902d0c",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2
        ]
    },
    {
        "input": "\t\tft.SchemaInt = schema.Int(schema.Int(value.Int64))\n\t\tft.SchemaInt = schema.Int(value.Int64)\n\t\tft.SchemaInt8 = schema.Int8(schema.Int8(value.Int64))\n\t\tft.SchemaInt8 = schema.Int8(value.Int64)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/ent/ent/commit/ff6163f1a068b2229e50b130ba7b08a3215d4a83",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\tif handlers.HandleFile(reader, chunkSkel, chunksChan) {\n\tif handlers.HandleFile(ctx, reader, chunkSkel, chunksChan) {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/trufflesecurity/trufflehog/commit/ab71b93f7dc2afa64566138bc334f1a083600995",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8,
            3
        ]
    },
    {
        "input": "\t\t\t{\"clone_url\": \"super-secret-repo2\", \"name\": \"super-secret-repo2\"},\n\t\t\t{\"clone_url\": \"super-secret-repo2\", \"full_name\": \"secret/super-secret-repo2\"},\n\t\t\t{\"clone_url\": \"super-secret-repo2\", \"name\": \"super-secret-repo2\"},\n\t\t\t{\"clone_url\": \"super-secret-repo2\", \"full_name\": \"secret/super-secret-repo2\"},\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/trufflesecurity/trufflehog/commit/2d6aadcb46f65b85a993d43cfca73f38dc2c8897",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\ts.ignoreRepos = []string{\"super-secret-repo2\"}\n\ts.ignoreRepos = []string{\"secret/super-secret-repo2\"}\n\ts.ignoreRepos = []string{\"super-secret-repo2\"}\n\ts.ignoreRepos = []string{\"secret/super-secret-repo2\"}\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/trufflesecurity/trufflehog/commit/2d6aadcb46f65b85a993d43cfca73f38dc2c8897",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t\ts.SetProgressComplete(i, len(s.conn.Repositories), fmt.Sprintf(\"Repo: %s\", u))\n\t\ts.SetProgressComplete(i, len(s.conn.Repositories), fmt.Sprintf(\"Repo: %s\", u), \"\")\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.625,
        "commit_url": "https://github.com/trufflesecurity/trufflehog/commit/a770f643df5b668068c645753e1efe587a41381a",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            4,
            5,
            6,
            7
        ]
    },
    {
        "input": "\t\t\ts.SetProgressComplete(i, len(s.repos), fmt.Sprintf(\"Repo: %s\", repoURL))\n\t\t\ts.SetProgressComplete(i, len(s.repos), fmt.Sprintf(\"Repo: %s\", repoURL), \"\")\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.625,
        "commit_url": "https://github.com/trufflesecurity/trufflehog/commit/a770f643df5b668068c645753e1efe587a41381a",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            5,
            6,
            7
        ]
    },
    {
        "input": "\t\t\t\ts.SetProgressComplete(i, len(repos), fmt.Sprintf(\"Repo: %s\", repoURL))\n\t\t\t\ts.SetProgressComplete(i, len(repos), fmt.Sprintf(\"Repo: %s\", repoURL), \"\")\n\t\ts.SetProgressComplete(i, len(s.paths), fmt.Sprintf(\"Path: %s\", path))\n\t\ts.SetProgressComplete(i, len(s.paths), fmt.Sprintf(\"Path: %s\", path), \"\")\n\t\t\ts.SetProgressComplete(i, len(s.conn.Repositories), fmt.Sprintf(\"Repo: %s\", repoURI))\n\t\t\ts.SetProgressComplete(i, len(s.conn.Repositories), fmt.Sprintf(\"Repo: %s\", repoURI), \"\")\n\t\t\ts.SetProgressComplete(i, len(s.conn.Repositories), fmt.Sprintf(\"Repo: %s\", repoURI))\n\t\t\ts.SetProgressComplete(i, len(s.conn.Repositories), fmt.Sprintf(\"Repo: %s\", repoURI), \"\")\n\t\ts.SetProgressComplete(i, len(s.conn.Repositories), fmt.Sprintf(\"Repo: %s\", u))\n\t\ts.SetProgressComplete(i, len(s.conn.Repositories), fmt.Sprintf(\"Repo: %s\", u), \"\")\n\t\t\ts.SetProgressComplete(i, len(s.repos), fmt.Sprintf(\"Repo: %s\", repoURL))\n\t\t\ts.SetProgressComplete(i, len(s.repos), fmt.Sprintf(\"Repo: %s\", repoURL), \"\")\n\t\t\t\ts.SetProgressComplete(i, len(repos), fmt.Sprintf(\"Repo: %s\", repoURL))\n\t\t\t\ts.SetProgressComplete(i, len(repos), fmt.Sprintf(\"Repo: %s\", repoURL), \"\")\n\t\ts.SetProgressComplete(i, len(bucketsToScan), fmt.Sprintf(\"Bucket: %s\", bucket))\n\t\ts.SetProgressComplete(i, len(bucketsToScan), fmt.Sprintf(\"Bucket: %s\", bucket), \"\")\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.625,
        "commit_url": "https://github.com/trufflesecurity/trufflehog/commit/a770f643df5b668068c645753e1efe587a41381a",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            6,
            7
        ]
    },
    {
        "input": "\t\t\t\ts.SetProgressComplete(i, len(repos), fmt.Sprintf(\"Repo: %s\", repoURL))\n\t\t\t\ts.SetProgressComplete(i, len(repos), fmt.Sprintf(\"Repo: %s\", repoURL), \"\")\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.625,
        "commit_url": "https://github.com/trufflesecurity/trufflehog/commit/a770f643df5b668068c645753e1efe587a41381a",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            7
        ]
    },
    {
        "input": "\t\ts.SetProgressComplete(i, len(bucketsToScan), fmt.Sprintf(\"Bucket: %s\", bucket))\n\t\ts.SetProgressComplete(i, len(bucketsToScan), fmt.Sprintf(\"Bucket: %s\", bucket), \"\")\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.625,
        "commit_url": "https://github.com/trufflesecurity/trufflehog/commit/a770f643df5b668068c645753e1efe587a41381a",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            6
        ]
    },
    {
        "input": "// XDial use a general format to represent a rpc server\n// XDial calls different functions to connect to a RPC server\n// according the first parameter rpcAddr.\n// rpcAddr is a general format (protocol@addr) to represent a rpc server\n// XDial use a general format to represent a rpc server\n// XDial calls different functions to connect to a RPC server\n// according the first parameter rpcAddr.\n// rpcAddr is a general format (protocol@addr) to represent a rpc server\n// XDial use a general format to represent a rpc server\n// XDial calls different functions to connect to a RPC server\n// according the first parameter rpcAddr.\n// rpcAddr is a general format (protocol@addr) to represent a rpc server\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/geektutu/7days-golang/commit/d958ec5deecfb08c3c6006356723ecbbd658f87a",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2
        ]
    },
    {
        "input": "\tflags := c.Meta.FlagSet(\"plugins required\", 0)\n\tflags := c.Meta.FlagSet(\"plugins required\")\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.2222222222222222,
        "commit_url": "https://github.com/hashicorp/packer/commit/020f18e37f7e8e7d4bcd665d419ed365cc8b3347",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            6,
            10
        ]
    },
    {
        "input": "\tflags := c.Meta.FlagSet(\"validate\", FlagSetBuildFilter|FlagSetVars)\n\tflags := c.Meta.FlagSet(\"validate\")\n\tflags := c.Meta.FlagSet(\"build\", FlagSetBuildFilter|FlagSetVars)\n\tflags := c.Meta.FlagSet(\"build\")\n\tflags := c.Meta.FlagSet(\"console\", FlagSetVars)\n\tflags := c.Meta.FlagSet(\"console\")\n\tflags := c.Meta.FlagSet(\"fix\", FlagSetNone)\n\tflags := c.Meta.FlagSet(\"fix\")\n\tflags := c.Meta.FlagSet(\"format\", FlagSetNone)\n\tflags := c.Meta.FlagSet(\"format\")\n\tflags := c.Meta.FlagSet(\"hcl2_upgrade\", FlagSetNone)\n\tflags := c.Meta.FlagSet(\"hcl2_upgrade\")\n\tflags := c.Meta.FlagSet(\"init\", 0)\n\tflags := c.Meta.FlagSet(\"init\")\n\tflags := c.Meta.FlagSet(\"inspect\", FlagSetVars)\n\tflags := c.Meta.FlagSet(\"inspect\")\n\tflags := c.Meta.FlagSet(\"plugins required\", 0)\n\tflags := c.Meta.FlagSet(\"plugins required\")\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.2222222222222222,
        "commit_url": "https://github.com/hashicorp/packer/commit/020f18e37f7e8e7d4bcd665d419ed365cc8b3347",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            6,
            9
        ]
    },
    {
        "input": "\t\"github.com/hashicorp/packer/helper/communicator\"\n\t\"github.com/hashicorp/packer/helper/communicator\"\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.14285714285714285,
        "commit_url": "https://github.com/hashicorp/packer/commit/cd3bdc9e38f934346b1fb62582ba2c2834779f42",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\tif s.Comm.SSHAgentAuth {\n\tif c.Comm.SSHAgentAuth {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5555555555555556,
        "commit_url": "https://github.com/hashicorp/packer/commit/cd3bdc9e38f934346b1fb62582ba2c2834779f42",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            8,
            9,
            10,
            11,
            13
        ]
    },
    {
        "input": "\ts.Comm.SSHKeyPairName = kp.Comment\n\ts.Comm.SSHTemporaryKeyPairName = kp.Comment\n\ts.Comm.SSHPrivateKey = kp.PrivateKeyPemBlock\n\ts.Comm.SSHPublicKey = kp.PublicKeyAuthorizedKeysLine\n\ts.Comm.SSHClearAuthorizedKeys = true\n\tc.Comm.SSHKeyPairName = kp.Comment\n\tc.Comm.SSHTemporaryKeyPairName = kp.Comment\n\tc.Comm.SSHPrivateKey = kp.PrivateKeyPemBlock\n\tc.Comm.SSHPublicKey = kp.PublicKeyAuthorizedKeysLine\n\tc.Comm.SSHClearAuthorizedKeys = true\n\tif s.Comm.SSHPassword != \"\" {\n\tif c.Comm.SSHPassword != \"\" {\n\tif s.Comm.SSHPrivateKeyFile != \"\" {\n\tif c.Comm.SSHPrivateKeyFile != \"\" {\n\t\tprivateKeyBytes, err := s.Comm.ReadSSHPrivateKeyFile()\n\t\tprivateKeyBytes, err := c.Comm.ReadSSHPrivateKeyFile()\n\t\ts.Comm.SSHPrivateKey = privateKeyBytes\n\t\ts.Comm.SSHKeyPairName = kp.Comment\n\t\ts.Comm.SSHTemporaryKeyPairName = kp.Comment\n\t\ts.Comm.SSHPublicKey = kp.PublicKeyAuthorizedKeysLine\n\t\tc.Comm.SSHPrivateKey = privateKeyBytes\n\t\tc.Comm.SSHKeyPairName = kp.Comment\n\t\tc.Comm.SSHTemporaryKeyPairName = kp.Comment\n\t\tc.Comm.SSHPublicKey = kp.PublicKeyAuthorizedKeysLine\n\tif s.Comm.SSHAgentAuth {\n\tif c.Comm.SSHAgentAuth {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.1111111111111111,
        "commit_url": "https://github.com/hashicorp/packer/commit/cd3bdc9e38f934346b1fb62582ba2c2834779f42",
        "target_edit_idx": 13,
        "propagatable_edit_idx": [
            8,
            9,
            10,
            11,
            12
        ]
    },
    {
        "input": "\t\t\tcallArgs:        []string{\"\", \"/var/inventory\", \"test-playbook.yml\", \"/path/to/privkey.pem\"},\n\t\t\tcallArgs:        []string{common.HttpAddrNotImplemented, \"/var/inventory\", \"test-playbook.yml\", \"/path/to/privkey.pem\"},\n\t\t\tcallArgs:        []string{\"\", \"/var/inventory\", \"test-playbook.yml\", \"/path/to/privkey.pem\"},\n\t\t\tcallArgs:        []string{common.HttpAddrNotImplemented, \"/var/inventory\", \"test-playbook.yml\", \"/path/to/privkey.pem\"},\n\t\t\tcallArgs:        []string{\"\", \"/var/inventory\", \"test-playbook.yml\", \"/path/to/privkey.pem\"},\n\t\t\tcallArgs:        []string{common.HttpAddrNotImplemented, \"/var/inventory\", \"test-playbook.yml\", \"/path/to/privkey.pem\"},\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/3dc7a53125e68a5a5790e4d65a1e12f339834f79",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4,
            12
        ]
    },
    {
        "input": "\t\t\tcallArgs:        []string{\"\", \"/var/inventory\", \"test-playbook.yml\", \"\"},\n\t\t\tcallArgs:        []string{common.HttpAddrNotImplemented, \"/var/inventory\", \"test-playbook.yml\", \"\"},\n\t\t\tcallArgs:        []string{\"\", \"/var/inventory\", \"test-playbook.yml\", \"\"},\n\t\t\tcallArgs:        []string{common.HttpAddrNotImplemented, \"/var/inventory\", \"test-playbook.yml\", \"\"},\n\t\t\tcallArgs:        []string{\"\", \"/var/inventory\", \"test-playbook.yml\", \"\"},\n\t\t\tcallArgs:        []string{common.HttpAddrNotImplemented, \"/var/inventory\", \"test-playbook.yml\", \"\"},\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/3dc7a53125e68a5a5790e4d65a1e12f339834f79",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            8,
            13
        ]
    },
    {
        "input": "\t\t\t\t\"ConnType\": \"winrm\",\n\t\t\t\t\"Password\": \"ilovebananapancakes\",\n\t\t\t\t\"ConnType\":       \"winrm\",\n\t\t\t\t\"Password\":       \"ilovebananapancakes\",\n\t\t\t\t\"PackerHTTPAddr\": \"123.45.67.89\",\n\t\t\t\t\"ConnType\": \"winrm\",\n\t\t\t\t\"Password\": \"ilovebananapancakes\",\n\t\t\t\t\"ConnType\":       \"winrm\",\n\t\t\t\t\"Password\":       \"ilovebananapancakes\",\n\t\t\t\t\"PackerHTTPAddr\": \"123.45.67.89\",\n\t\t\t\t\"ConnType\": \"ssh\",\n\t\t\t\t\"Password\": \"ilovebananapancakes\",\n\t\t\t\t\"ConnType\":       \"ssh\",\n\t\t\t\t\"Password\":       \"ilovebananapancakes\",\n\t\t\t\t\"PackerHTTPAddr\": \"123.45.67.89\",\n\t\t\t\t\"ConnType\": \"ssh\",\n\t\t\t\t\"Password\": \"ilovebananapancakes\",\n\t\t\t\t\"ConnType\":       \"ssh\",\n\t\t\t\t\"Password\":       \"ilovebananapancakes\",\n\t\t\t\t\"PackerHTTPAddr\": \"123.45.67.89\",\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/hashicorp/packer/commit/3dc7a53125e68a5a5790e4d65a1e12f339834f79",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            9,
            10,
            11
        ]
    },
    {
        "input": "\t\t\tGeneration: b.config.Generation,\n\t\t\tGeneration:          b.config.Generation,\n\t\t\tLegacyGen1BootOrder: b.config.LegacyGen1BootOrder,\n\t\t\tGeneration: b.config.Generation,\n\t\t\tGeneration:          b.config.Generation,\n\t\t\tLegacyGen1BootOrder: b.config.LegacyGen1BootOrder,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.2,
        "commit_url": "https://github.com/hashicorp/packer/commit/55ae8038523db36e2d637763d7f75d1383b51076",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "\tconfig := state.Get(\"config\").(*Config)\n\n\tdriver := state.Get(\"driver\").(Driver)\n\tcontainerId := state.Get(\"container_id\").(string)\n\tconfig := state.Get(\"config\").(*Config)\n\tdriver := state.Get(\"driver\").(Driver)\n\ttempDir := state.Get(\"temp_dir\").(string)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/9403d555491ce67fda686021b61b91028448266e",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "\tdoneCh := make(chan struct{})\n\terrChan := make(chan error)\n\tdoneCh := make(chan struct{})\n\terrChan := make(chan error)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/f62bc25f18180ca2593c7700ba4c1f3e0e82d264",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\t\t\tt.Fatalf(\"err: %s\", err)\n\t\t\terrChan <- err\n\t\t\treturn\n\t\t\tt.Fatalf(\"err: %s\", err)\n\t\t\terrChan <- err\n\t\t\treturn\n\t\t\tt.Fatalf(\"err: %s\", err)\n\t\t\terrChan <- err\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/hashicorp/packer/commit/f62bc25f18180ca2593c7700ba4c1f3e0e82d264",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            6,
            7
        ]
    },
    {
        "input": "func (p *Provisioner) Cancel() {\n\tif p.done != nil {\n\t\tclose(p.done)\n\t}\n\tif p.adapter != nil {\n\t\tp.adapter.Shutdown()\n\t}\n\tos.Exit(0)\n}\n\nfunc (p *Provisioner) Cancel() {\n\tif p.done != nil {\n\t\tclose(p.done)\n\t}\n\tif p.adapter != nil {\n\t\tp.adapter.Shutdown()\n\t}\n\tos.Exit(0)\n}\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/0f704fb5b273e6fbc497fe1f987065635caa6cb7",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\t\tif err := waitForAction(context.TODO(), client, nextAction); err != nil {\n\t\tif err := waitForAction(ctx, client, nextAction); err != nil {\n\t\tif err := waitForAction(context.TODO(), client, action); err != nil {\n\t\tif err := waitForAction(ctx, client, action); err != nil {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/hashicorp/packer/commit/633934369c02d76da2f889e1a457bc2455665013",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t_, errCh := client.Action.WatchProgress(context.TODO(), result.Action)\n\t_, errCh := client.Action.WatchProgress(ctx, result.Action)\n\t_, errCh := client.Action.WatchProgress(context.TODO(), action)\n\t_, errCh := client.Action.WatchProgress(ctx, action)\n",
        "class": "clone",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/633934369c02d76da2f889e1a457bc2455665013",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            13
        ]
    },
    {
        "input": "\t\tdesc: \"ecdsa 521\",\n\t\tdesc: \"521 bit ECDSA\",\n\t\tdesc: \"ecdsa 521\",\n\t\tdesc: \"521 bit ECDSA named \" + name,\n\t\tdesc: \"ecdsa 521\",\n\t\tdesc: \"521 bit ECDSA\",\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/72b7d63a6a90b558304f03368071e0dbb65dec81",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            10,
            7
        ]
    },
    {
        "input": "\t\tdesc: \"rsa 4096\",\n\t\tdesc: \"4096 bit RSA\",\n\t\tdesc: \"rsa 4096\",\n\t\tdesc: \"4096 bit RSA named \" + name,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/72b7d63a6a90b558304f03368071e0dbb65dec81",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "\t} else if config.ImageGallerySubscription != \"\" && config.ImageGalleryResourceGroup != \"\" && config.ImageGalleryName != \"\" && config.ImageGalleryImageName != \"\" {\n\t} else if config.SharedGallerySubscription != \"\" && config.SharedGalleryResourceGroup != \"\" && config.SharedGalleryName != \"\" && config.SharedGalleryImageName != \"\" {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/d21b13cb85429df40c97d058747a89ba98d3cd62",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "\t\t\tconfig.ImageGallerySubscription,\n\t\t\tconfig.ImageGalleryResourceGroup,\n\t\t\tconfig.ImageGalleryName,\n\t\t\tconfig.ImageGalleryImageName)\n\t\tif config.ImageGalleryImageVersion != \"\" {\n\t\t\tconfig.SharedGallerySubscription,\n\t\t\tconfig.SharedGalleryResourceGroup,\n\t\t\tconfig.SharedGalleryName,\n\t\t\tconfig.SharedGalleryImageName)\n\t\tif config.SharedGalleryImageVersion != \"\" {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/d21b13cb85429df40c97d058747a89ba98d3cd62",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\tconfig := state.Get(\"config\").(Config)\n\tconfig := state.Get(\"config\").(*Config)\n\tconfig := state.Get(\"config\").(Config)\n\tconfig := state.Get(\"config\").(*Config)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/packer/commit/b328d3569dd5ff1e6df12e2429b4749e37552048",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\tui.Say(\"Creating temporary directory...\")\n\tui.Say(\"Creating build directory...\")\n\tui.Say(\"Deleting temporary directory...\")\n\tui.Say(\"Deleting build directory...\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/00276f2f64b8ba348da2e7af75f79b46a69470df",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "\tre := regexp.MustCompile(`powershell -executionpolicy bypass \"& { if \\(Test-Path variable:global:ProgressPreference\\){\\$ProgressPreference='SilentlyContinue'};\\. \\${env:SYSTEMROOT}\\\\Temp\\\\packer-env-vars-[[:alnum:]]{8}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{12}\\.ps1; &'c:/Windows/Temp/inlineScript.ps1';exit \\$LastExitCode }\"`)\n\tre := regexp.MustCompile(`powershell -executionpolicy bypass \"& { if \\(Test-Path variable:global:ProgressPreference\\){\\$ProgressPreference='SilentlyContinue'};\\. \\${env:SYSTEMROOT}/Temp/packer-env-vars-[[:alnum:]]{8}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{12}\\.ps1; &'c:/Windows/Temp/inlineScript.ps1';exit \\$LastExitCode }\"`)\n\tre := regexp.MustCompile(`powershell -executionpolicy bypass \"& { if \\(Test-Path variable:global:ProgressPreference\\){\\$ProgressPreference='SilentlyContinue'};\\. \\${env:SYSTEMROOT}\\\\Temp\\\\packer-env-vars-[[:alnum:]]{8}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{12}\\.ps1; &'c:/Windows/Temp/script.ps1';exit \\$LastExitCode }\"`)\n\tre := regexp.MustCompile(`powershell -executionpolicy bypass \"& { if \\(Test-Path variable:global:ProgressPreference\\){\\$ProgressPreference='SilentlyContinue'};\\. \\${env:SYSTEMROOT}/Temp/packer-env-vars-[[:alnum:]]{8}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{12}\\.ps1; &'c:/Windows/Temp/script.ps1';exit \\$LastExitCode }\"`)\n\tre = regexp.MustCompile(`powershell -executionpolicy bypass \"& { if \\(Test-Path variable:global:ProgressPreference\\){\\$ProgressPreference='SilentlyContinue'};\\. \\${env:SYSTEMROOT}\\\\Temp\\\\packer-env-vars-[[:alnum:]]{8}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{12}\\.ps1; &'c:/Windows/Temp/inlineScript.ps1';exit \\$LastExitCode }\"`)\n\tre = regexp.MustCompile(`powershell -executionpolicy bypass \"& { if \\(Test-Path variable:global:ProgressPreference\\){\\$ProgressPreference='SilentlyContinue'};\\. \\${env:SYSTEMROOT}/Temp/packer-env-vars-[[:alnum:]]{8}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{12}\\.ps1; &'c:/Windows/Temp/inlineScript.ps1';exit \\$LastExitCode }\"`)\n\tre := regexp.MustCompile(`powershell -executionpolicy bypass \"& { if \\(Test-Path variable:global:ProgressPreference\\){\\$ProgressPreference='SilentlyContinue'};\\. \\${env:SYSTEMROOT}\\\\Temp\\\\packer-env-vars-[[:alnum:]]{8}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{12}\\.ps1; &'c:/Windows/Temp/script.ps1';exit \\$LastExitCode }\"`)\n\tre := regexp.MustCompile(`powershell -executionpolicy bypass \"& { if \\(Test-Path variable:global:ProgressPreference\\){\\$ProgressPreference='SilentlyContinue'};\\. \\${env:SYSTEMROOT}/Temp/packer-env-vars-[[:alnum:]]{8}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{12}\\.ps1; &'c:/Windows/Temp/script.ps1';exit \\$LastExitCode }\"`)\n\tre := regexp.MustCompile(`powershell -executionpolicy bypass \"& { if \\(Test-Path variable:global:ProgressPreference\\){\\$ProgressPreference='SilentlyContinue'};\\. \\${env:SYSTEMROOT}\\\\Temp\\\\packer-env-vars-[[:alnum:]]{8}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{12}\\.ps1; &'c:/Windows/Temp/script.ps1';exit \\$LastExitCode }\"`)\n\tre := regexp.MustCompile(`powershell -executionpolicy bypass \"& { if \\(Test-Path variable:global:ProgressPreference\\){\\$ProgressPreference='SilentlyContinue'};\\. \\${env:SYSTEMROOT}/Temp/packer-env-vars-[[:alnum:]]{8}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{12}\\.ps1; &'c:/Windows/Temp/script.ps1';exit \\$LastExitCode }\"`)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/hashicorp/packer/commit/3faf73b5f38e26c73c33e3e9b218a80647bea1f7",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            8,
            5,
            6,
            7
        ]
    },
    {
        "input": "\t\tcdrom, err := devices.FindCdrom(\"\")\n\t\tif err != nil {\n\t\t\tt.Fatalf(\"cannot find cdrom: %v\", err)\n\t\t}\n\t\tiso, ok := cdrom.Backing.(*types.VirtualCdromIsoBackingInfo)\n\t\tif !ok {\n\t\t\tt.Fatalf(\"the iso is not connected\")\n\t\tcdroms := devices.SelectByType((*types.VirtualCdrom)(nil))\n\t\tif len(cdroms) != 2 {\n\t\t\tt.Fatalf(\"expected 2 cdroms, found %v\", len(cdroms))\n\t\texpectedFileName := \"[datastore1] alpine-standard-3.6.2-x86_64.iso\"\n\t\tif iso.FileName != expectedFileName {\n\t\t\tt.Fatalf(\"invalid iso filename: expected '%v', got '%v'\", expectedFileName, iso.FileName)\n\t\tfor i := range cdroms {\n\t\t\tiso, ok := cdroms[i].(*types.VirtualCdrom).Backing.(*types.VirtualCdromIsoBackingInfo)\n\t\t\tif !ok {\n\t\t\t\tt.Fatalf(\"the iso 'test%v.iso' is not connected\", i)\n\t\t\t}\n\t\t\texpectedFileName := fmt.Sprintf(\"[datastore1] test%v.iso\", i)\n\t\t\tif iso.FileName != expectedFileName {\n\t\t\t\tt.Fatalf(\"invalid iso filename: expected '%v', got '%v'\", expectedFileName, iso.FileName)\n\t\t\t}\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.07142857142857142,
        "commit_url": "https://github.com/hashicorp/packer/commit/9139a6029b22c510ee1dad6db127e696cb8e5d10",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\t\texpectedFileName := \"[datastore1] alpine-standard-3.6.2-x86_64.iso\"\n\t\tif iso.FileName != expectedFileName {\n\t\t\tt.Fatalf(\"invalid iso filename: expected '%v', got '%v'\", expectedFileName, iso.FileName)\n\t\tfor i := range cdroms {\n\t\t\tiso, ok := cdroms[i].(*types.VirtualCdrom).Backing.(*types.VirtualCdromIsoBackingInfo)\n\t\t\tif !ok {\n\t\t\t\tt.Fatalf(\"the iso 'test%v.iso' is not connected\", i)\n\t\t\t}\n\t\t\texpectedFileName := fmt.Sprintf(\"[datastore1] test%v.iso\", i)\n\t\t\tif iso.FileName != expectedFileName {\n\t\t\t\tt.Fatalf(\"invalid iso filename: expected '%v', got '%v'\", expectedFileName, iso.FileName)\n\t\t\t}\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.125,
        "commit_url": "https://github.com/hashicorp/packer/commit/9139a6029b22c510ee1dad6db127e696cb8e5d10",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\terrs = packer.MultiErrorAppend(errs, b.config.AMIConfig.Prepare(&b.config.ctx)...)\n\terrs = packer.MultiErrorAppend(errs,\n\t\tb.config.AMIConfig.Prepare(&b.config.AccessConfig, &b.config.ctx)...)\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/c65fa8490dc668f5fda22fa273142baa489fd4c4",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            10,
            11
        ]
    },
    {
        "input": "\terrs = packer.MultiErrorAppend(errs, b.config.AMIConfig.Prepare(&b.config.ctx)...)\n\terrs = packer.MultiErrorAppend(errs,\n\t\tb.config.AMIConfig.Prepare(&b.config.AccessConfig, &b.config.ctx)...)\n\terrs = packer.MultiErrorAppend(errs, b.config.AMIConfig.Prepare(&b.config.ctx)...)\n\terrs = packer.MultiErrorAppend(errs,\n\t\tb.config.AMIConfig.Prepare(&b.config.AccessConfig, &b.config.ctx)...)\n\terrs = packer.MultiErrorAppend(errs, b.config.AMIConfig.Prepare(&b.config.ctx)...)\n\terrs = packer.MultiErrorAppend(errs,\n\t\tb.config.AMIConfig.Prepare(&b.config.AccessConfig, &b.config.ctx)...)\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/c65fa8490dc668f5fda22fa273142baa489fd4c4",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            0,
            11
        ]
    },
    {
        "input": "\tif b.config.PackerDebug {\n\t\tb.runner = &multistep.DebugRunner{\n\t\t\tSteps:   steps,\n\t\t\tPauseFn: common.MultistepDebugFn(ui),\n\t\t}\n\t} else {\n\t\tb.runner = &multistep.BasicRunner{Steps: steps}\n\t}\n\n\tb.runner = common.NewRunner(steps, b.config.PackerConfig, ui)\n\tif b.config.PackerDebug {\n\t\tb.runner = &multistep.DebugRunner{\n\t\t\tSteps:   steps,\n\t\t\tPauseFn: common.MultistepDebugFn(ui),\n\t\t}\n\t} else {\n\t\tb.runner = &multistep.BasicRunner{Steps: steps}\n\t}\n\n\tb.runner = common.NewRunner(steps, b.config.PackerConfig, ui)\n\t\tif p.config.PackerDebug {\n\t\t\tp.runner = &multistep.DebugRunner{\n\t\t\t\tSteps:   steps,\n\t\t\t\tPauseFn: common.MultistepDebugFn(ui),\n\t\t\t}\n\t\t} else {\n\t\t\tp.runner = &multistep.BasicRunner{Steps: steps}\n\t\t}\n\t\tp.runner = common.NewRunner(steps, p.config.PackerConfig, ui)\n\tif p.config.PackerDebug {\n\t\tp.runner = &multistep.DebugRunner{\n\t\t\tSteps:   steps,\n\t\t\tPauseFn: common.MultistepDebugFn(ui),\n\t\t}\n\t} else {\n\t\tp.runner = &multistep.BasicRunner{Steps: steps}\n\t}\n\n\tp.runner = common.NewRunner(steps, p.config.PackerConfig, ui)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/e45223a86757573070ded161dca08a7e56ad5539",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3,
            4,
            5
        ]
    },
    {
        "input": "func (b *BlockDevices) BuildAMIDevices() []*ec2.BlockDeviceMapping {\nfunc (b *AMIBlockDevices) BuildAMIDevices() []*ec2.BlockDeviceMapping {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/hashicorp/packer/commit/85ae04bb750e3aedeb71fc6dd276c103b174eb2b",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\t\tblockDevices := BlockDevices{\n\t\t\tAMIMappings:    []BlockDevice{*tc.Config},\n\t\tamiBlockDevices := AMIBlockDevices{\n\t\t\tAMIMappings: []BlockDevice{*tc.Config},\n\t\t}\n\n\t\tlaunchBlockDevices := LaunchBlockDevices{\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/packer/commit/85ae04bb750e3aedeb71fc6dd276c103b174eb2b",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            1,
            4
        ]
    },
    {
        "input": "\t\tgot := blockDevices.BuildAMIDevices()\n\t\tif !reflect.DeepEqual(expected, got) {\n\n\t\tamiResults := amiBlockDevices.BuildAMIDevices()\n\t\tif !reflect.DeepEqual(expected, amiResults) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/hashicorp/packer/commit/85ae04bb750e3aedeb71fc6dd276c103b174eb2b",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            3,
            5
        ]
    },
    {
        "input": "\t\t\t\texpected, got)\n\t\t\t\texpected, amiResults)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/85ae04bb750e3aedeb71fc6dd276c103b174eb2b",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\t\t\t(c.Builders)[builder] = fmt.Sprintf(\"%s-PACKERSPACE-plugin-PACKERSPACE-packer-builder-%s\", packerPath, builder)\n\t\t\t(c.Builders)[builder] = fmt.Sprintf(\"%s%splugin%spacker-builder-%s\",\n\t\t\t\tpackerPath, PACKERSPACE, PACKERSPACE, builder)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/hashicorp/packer/commit/e080e73b04fc32017e6606e0760297b589e784a7",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            11,
            12
        ]
    },
    {
        "input": "\t\t\t(c.Provisioners)[provisioner] = fmt.Sprintf(\"%s-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-%s\", packerPath, provisioner)\n\t\t\t(c.Provisioners)[provisioner] = fmt.Sprintf(\n\t\t\t\t\"%s%splugin%spacker-provisioner-%s\",\n\t\t\t\tpackerPath, PACKERSPACE, PACKERSPACE, provisioner)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/hashicorp/packer/commit/e080e73b04fc32017e6606e0760297b589e784a7",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            10,
            12
        ]
    },
    {
        "input": "\t\t\t(c.PostProcessors)[postProcessor] = fmt.Sprintf(\"%s-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-%s\", packerPath, postProcessor)\n\t\t\t(c.PostProcessors)[postProcessor] = fmt.Sprintf(\n\t\t\t\t\"%s%splugin%spacker-post-processor-%s\",\n\t\t\t\tpackerPath, PACKERSPACE, PACKERSPACE, postProcessor)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/hashicorp/packer/commit/e080e73b04fc32017e6606e0760297b589e784a7",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            10,
            11
        ]
    },
    {
        "input": "\t\t&StepRegisterAMI{},\n\t\t&StepRegisterAMI{\n\t\t\tRootVolumeSize: b.config.RootVolumeSize,\n\t\t},\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/hashicorp/packer/commit/5d2ea088a2f2de56224cf400784b2fb928d35cfb",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "type StepRegisterAMI struct{}\ntype StepRegisterAMI struct {\n\tRootVolumeSize int64\n}\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/hashicorp/packer/commit/5d2ea088a2f2de56224cf400784b2fb928d35cfb",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "func compareVersions(versionFound string, versionWanted string) error {\nfunc compareVersions(versionFound string, versionWanted string, product string) error {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/a7aa20c8c7429a5b06356f80d7ccf2f9082864fc",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            8,
            9,
            6,
            7
        ]
    },
    {
        "input": "\treturn compareVersions(matches[1], version)\n\treturn compareVersions(matches[1], version, \"Player\")\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/a7aa20c8c7429a5b06356f80d7ccf2f9082864fc",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            0,
            8,
            9,
            7
        ]
    },
    {
        "input": "\treturn compareVersions(matches[1], version)\n\treturn compareVersions(matches[1], version, \"Workstation\")\nfunc compareVersions(versionFound string, versionWanted string) error {\nfunc compareVersions(versionFound string, versionWanted string, product string) error {\n\treturn compareVersions(matches[1], version)\n\treturn compareVersions(matches[1], version, \"Workstation\")\n\treturn compareVersions(matches[1], version)\n\treturn compareVersions(matches[1], version, \"Player\")\n\treturn compareVersions(matches[1], version)\n\treturn compareVersions(matches[1], version, \"Player\")\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/a7aa20c8c7429a5b06356f80d7ccf2f9082864fc",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            0,
            9,
            6,
            7
        ]
    },
    {
        "input": "\treturn compareVersions(matches[1], version)\n\treturn compareVersions(matches[1], version, \"Workstation\")\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/a7aa20c8c7429a5b06356f80d7ccf2f9082864fc",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            0,
            8,
            6,
            7
        ]
    },
    {
        "input": "\tresult, err := NewClientWithMux(NewMuxConn(rwc), 0)\n\tresult, err := NewClientWithMux(NewMuxConn(rwc, 0), 0)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/f06cd56e7237766a82fe18f8e78c223bbb2f0783",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            8,
            1,
            4,
            5
        ]
    },
    {
        "input": "func NewMuxConn(rwc io.ReadWriteCloser) *MuxConn {\nfunc NewMuxConn(rwc io.ReadWriteCloser, startId uint32) *MuxConn {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/f06cd56e7237766a82fe18f8e78c223bbb2f0783",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0,
            8,
            4,
            5
        ]
    },
    {
        "input": "\t\tserver = NewMuxConn(conn)\n\t\tserver = NewMuxConn(conn, 1)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/f06cd56e7237766a82fe18f8e78c223bbb2f0783",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            1,
            5,
            8
        ]
    },
    {
        "input": "\tclient = NewMuxConn(conn)\n\tclient = NewMuxConn(conn, 0)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/f06cd56e7237766a82fe18f8e78c223bbb2f0783",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            0,
            1,
            4,
            8
        ]
    },
    {
        "input": "\tresult := NewServerWithMux(NewMuxConn(conn), 0)\n\tresult := NewServerWithMux(NewMuxConn(conn, 1), 0)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/f06cd56e7237766a82fe18f8e78c223bbb2f0783",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            0,
            1,
            4,
            5
        ]
    },
    {
        "input": "\ta := &Artifact{amis, nil}\n\ta := &Artifact{\n\t\tAmis: amis,\n\t}\n\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.125,
        "commit_url": "https://github.com/hashicorp/packer/commit/c710323f0416bf6cf6ced736d2bdb4454a128759",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "\tb.config.SSHTimeout, err = time.ParseDuration(b.config.RawSSHTimeout)\n\tb.config.sshTimeout, err = time.ParseDuration(b.config.RawSSHTimeout)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/51206a491ba35a51fa5342544049e598b9320fe1",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3,
            4
        ]
    },
    {
        "input": "\tlog.Printf(\"Waiting for SSH, up to timeout: %s\", config.SSHTimeout.String())\n\tlog.Printf(\"Waiting for SSH, up to timeout: %s\", config.sshTimeout.String())\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/51206a491ba35a51fa5342544049e598b9320fe1",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2,
            4
        ]
    },
    {
        "input": "\ttimeout := time.After(config.SSHTimeout)\n\ttimeout := time.After(config.sshTimeout)\n\tb.config.SSHTimeout, err = time.ParseDuration(b.config.RawSSHTimeout)\n\tb.config.sshTimeout, err = time.ParseDuration(b.config.RawSSHTimeout)\n\tlog.Printf(\"Waiting for SSH, up to timeout: %s\", config.SSHTimeout.String())\n\tlog.Printf(\"Waiting for SSH, up to timeout: %s\", config.sshTimeout.String())\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/51206a491ba35a51fa5342544049e598b9320fe1",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            2,
            3
        ]
    },
    {
        "input": "\tdebugConfig := map[string]interface{}{\n\tpackerConfig := map[string]interface{}{\n\t\tBuildNameConfigKey: b.name,\n\tassert.Equal(builder.prepareConfig, []interface{}{42, debugConfig}, \"prepare config should be 42\")\n\tassert.Equal(builder.prepareConfig, []interface{}{42, packerConfig}, \"prepare config should be 42\")\n\tassert.Equal(prov.prepConfigs, []interface{}{42, debugConfig}, \"prepare should be called with proper config\")\n\tassert.Equal(prov.prepConfigs, []interface{}{42, packerConfig}, \"prepare should be called with proper config\")\n\terr = b.builder.Prepare(b.builderConfig, debugConfig)\n\terr = b.builder.Prepare(b.builderConfig, packerConfig)\n\t\tconfigs = append(configs, debugConfig)\n\t\tconfigs = append(configs, packerConfig)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/packer/commit/8f74ff170d618830196d02d6d5bf0d59b9b9d8b5",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            8,
            9,
            2,
            3
        ]
    },
    {
        "input": "\terr = b.builder.Prepare(b.builderConfig, debugConfig)\n\terr = b.builder.Prepare(b.builderConfig, packerConfig)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/8f74ff170d618830196d02d6d5bf0d59b9b9d8b5",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            8,
            1,
            3,
            9
        ]
    },
    {
        "input": "\t\tconfigs = append(configs, debugConfig)\n\t\tconfigs = append(configs, packerConfig)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/8f74ff170d618830196d02d6d5bf0d59b9b9d8b5",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            8,
            1,
            2,
            9
        ]
    },
    {
        "input": "\tdebugFalseConfig := map[string]interface{}{DebugConfigKey: false}\n\tpackerConfig := map[string]interface{}{\n\t\tBuildNameConfigKey: \"test\",\n\t\tDebugConfigKey: false,\n\t}\n\tdebugConfig := map[string]interface{}{DebugConfigKey: true}\n\tpackerConfig := map[string]interface{}{\n\t\tBuildNameConfigKey: \"test\",\n\t\tDebugConfigKey: true,\n\t}\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/packer/commit/8f74ff170d618830196d02d6d5bf0d59b9b9d8b5",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "\tassert.Equal(builder.prepareConfig, []interface{}{42, debugFalseConfig}, \"prepare config should be 42\")\n\tassert.Equal(builder.prepareConfig, []interface{}{42, packerConfig}, \"prepare config should be 42\")\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/8f74ff170d618830196d02d6d5bf0d59b9b9d8b5",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "\tassert.Equal(prov.prepConfigs, []interface{}{42, debugFalseConfig}, \"prepare should be called with proper config\")\n\tassert.Equal(prov.prepConfigs, []interface{}{42, packerConfig}, \"prepare should be called with proper config\")\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/8f74ff170d618830196d02d6d5bf0d59b9b9d8b5",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "func (b *Builder) Run(build packer.Build, ui packer.Ui) {\nfunc (b *Builder) Run(ui packer.Ui, hook packer.Hook) {\nfunc (b *cmdBuilder) Run(build packer.Build, ui packer.Ui) {\nfunc (b *cmdBuilder) Run(ui packer.Ui, hook packer.Hook) {\nfunc (b *testBuilder) Run(build packer.Build, ui packer.Ui) {\nfunc (b *testBuilder) Run(ui packer.Ui, hook packer.Hook) {\nfunc (b *builder) Run(build packer.Build, ui packer.Ui) {\nfunc (b *builder) Run(ui packer.Ui, hook packer.Hook) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/hashicorp/packer/commit/d926b9870820b0f54d9dddbfb7587783f84bd28b",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            10,
            4
        ]
    },
    {
        "input": "\tb.builder.Run(build, ui)\n\tb.builder.Run(ui, hook)\n\tb.builder.Run(build, ui)\n\tb.builder.Run(ui, hook)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/packer/commit/d926b9870820b0f54d9dddbfb7587783f84bd28b",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\tb.runBuild = build\n\tb.runHook = hook\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/d926b9870820b0f54d9dddbfb7587783f84bd28b",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            12
        ]
    },
    {
        "input": "\tbuild := &testBuild{}\n\thook := &testHook{}\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/packer/commit/d926b9870820b0f54d9dddbfb7587783f84bd28b",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "\t\tOptimizeAllocs(mod, nil, nil)\n\t\tmaxStackSize := config.MaxStackAlloc()\n\t\tOptimizeAllocs(mod, nil, maxStackSize, nil)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/2867da164dc6352ce1165d5a9e87103a4d8b74aa",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\tif min > 255 {\n\t\treturn []byte{hidLogicalMinimum + 1, uint8(min), uint8(min >> 8)}\n\tswitch {\n\tcase min < -32767 || 65535 < min:\n\t\treturn []byte{hidLogicalMinimum + hidSizeValue4, uint8(min), uint8(min >> 8), uint8(min >> 16), uint8(min >> 24)}\n\tcase min < -127 || 255 < min:\n\t\treturn []byte{hidLogicalMinimum + hidSizeValue2, uint8(min), uint8(min >> 8)}\n\tdefault:\n\t\treturn []byte{hidLogicalMinimum + hidSizeValue1, byte(min)}\n\tif max > 255 {\n\t\treturn []byte{hidLogicalMaximum + 1, uint8(max), uint8(max >> 8)}\n\tswitch {\n\tcase max < -32767 || 65535 < max:\n\t\treturn []byte{hidLogicalMaximum + hidSizeValue4, uint8(max), uint8(max >> 8), uint8(max >> 16), uint8(max >> 24)}\n\tcase max < -127 || 255 < max:\n\t\treturn []byte{hidLogicalMaximum + hidSizeValue2, uint8(max), uint8(max >> 8)}\n\tdefault:\n\t\treturn []byte{hidLogicalMaximum + hidSizeValue1, byte(max)}\n\tif min > 255 {\n\t\treturn []byte{hidUsageMinimum + 1, uint8(min), uint8(min >> 8)}\n\tswitch {\n\tcase min < -32767 || 65535 < min:\n\t\treturn []byte{hidUsageMinimum + hidSizeValue4, uint8(min), uint8(min >> 8), uint8(min >> 16), uint8(min >> 24)}\n\tcase min < -127 || 255 < min:\n\t\treturn []byte{hidUsageMinimum + hidSizeValue2, uint8(min), uint8(min >> 8)}\n\tdefault:\n\t\treturn []byte{hidUsageMinimum + hidSizeValue1, byte(min)}\n\tif max > 255 {\n\t\treturn []byte{hidUsageMaximum + 1, uint8(max), uint8(max >> 8)}\n\tswitch {\n\tcase max < -32767 || 65535 < max:\n\t\treturn []byte{hidUsageMaximum + hidSizeValue4, uint8(max), uint8(max >> 8), uint8(max >> 16), uint8(max >> 24)}\n\tcase max < -127 || 255 < max:\n\t\treturn []byte{hidUsageMaximum + hidSizeValue2, uint8(max), uint8(max >> 8)}\n\tdefault:\n\t\treturn []byte{hidUsageMaximum + hidSizeValue1, byte(max)}\n\tif min > 255 {\n\t\treturn []byte{hidPhysicalMinimum + 1, uint8(min), uint8(min >> 8)}\n\tswitch {\n\tcase min < -32767 || 65535 < min:\n\t\treturn []byte{hidPhysicalMinimum + hidSizeValue4, uint8(min), uint8(min >> 8), uint8(min >> 16), uint8(min >> 24)}\n\tcase min < -127 || 255 < min:\n\t\treturn []byte{hidPhysicalMinimum + hidSizeValue2, uint8(min), uint8(min >> 8)}\n\tdefault:\n\t\treturn []byte{hidPhysicalMinimum + hidSizeValue1, byte(min)}\n\tif max > 255 {\n\t\treturn []byte{hidPhysicalMaximum + 1, uint8(max), uint8(max >> 8)}\n\tswitch {\n\tcase max < -32767 || 65535 < max:\n\t\treturn []byte{hidPhysicalMaximum + hidSizeValue4, uint8(max), uint8(max >> 8), uint8(max >> 16), uint8(max >> 24)}\n\tcase max < -127 || 255 < max:\n\t\treturn []byte{hidPhysicalMaximum + hidSizeValue2, uint8(max), uint8(max >> 8)}\n\tdefault:\n\t\treturn []byte{hidPhysicalMaximum + hidSizeValue1, byte(max)}\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.7142857142857143,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/ad32d2651161d9f51b3b0d259f2872e15fc23d07",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            4,
            6,
            8,
            10,
            12
        ]
    },
    {
        "input": "\n\treturn []byte{hidLogicalMinimum, byte(min)}\n\n\treturn []byte{hidLogicalMaximum, byte(max)}\n\n\treturn []byte{hidUsageMinimum, byte(min)}\n\n\treturn []byte{hidUsageMaximum, byte(max)}\n\n\treturn []byte{hidPhysicalMinimum, byte(min)}\n\n\treturn []byte{hidPhysicalMaximum, byte(max)}\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/ad32d2651161d9f51b3b0d259f2872e15fc23d07",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            5,
            7,
            9,
            11,
            13
        ]
    },
    {
        "input": "\t\t\tcgoAST, _, _, _, _, cgoErrors := Process([]*ast.File{f}, \"testdata\", fset, cflags)\n\t\t\tcgoAST, _, _, _, _, cgoErrors := Process([]*ast.File{f}, \"testdata\", fset, cflags, \"\")\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/850a5fdbfb00f1bdfe930bd41013d0404f75e248",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0
        ]
    },
    {
        "input": "\tphis              []Phi\n\tphis              []phiNode\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/7b2377586f414d87981a93f844681fd86d86de27",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            8,
            6
        ]
    },
    {
        "input": "type Phi struct {\ntype phiNode struct {\n\t\tb.phis = append(b.phis, Phi{expr, phi})\n\t\tb.phis = append(b.phis, phiNode{expr, phi})\n\tphis              []Phi\n\tphis              []phiNode\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/7b2377586f414d87981a93f844681fd86d86de27",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8,
            5
        ]
    },
    {
        "input": "\t\t\tSizes: &StdSizes{\n\t\t\tSizes: &stdSizes{\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/7b2377586f414d87981a93f844681fd86d86de27",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            9,
            10,
            11,
            12
        ]
    },
    {
        "input": "type StdSizes struct {\ntype stdSizes struct {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/7b2377586f414d87981a93f844681fd86d86de27",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            10,
            11,
            12,
            7
        ]
    },
    {
        "input": "func (s *StdSizes) Alignof(T types.Type) int64 {\nfunc (s *stdSizes) Alignof(T types.Type) int64 {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/7b2377586f414d87981a93f844681fd86d86de27",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            9,
            11,
            12,
            7
        ]
    },
    {
        "input": "func (s *StdSizes) Offsetsof(fields []*types.Var) []int64 {\nfunc (s *stdSizes) Offsetsof(fields []*types.Var) []int64 {\ntype StdSizes struct {\ntype stdSizes struct {\nfunc (s *StdSizes) Alignof(T types.Type) int64 {\nfunc (s *stdSizes) Alignof(T types.Type) int64 {\nfunc (s *StdSizes) Sizeof(T types.Type) int64 {\nfunc (s *stdSizes) Sizeof(T types.Type) int64 {\n\t\t\tSizes: &StdSizes{\n\t\t\tSizes: &stdSizes{\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/7b2377586f414d87981a93f844681fd86d86de27",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            9,
            10,
            12,
            7
        ]
    },
    {
        "input": "\ttimeout := 3000\n\ttimeout := 300000\n\ttimeout := 3000\n\ttimeout := 300000\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.16666666666666666,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/8fe126b1f6a87d62cb5e9b5cbef17b209019c0d3",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "func Link(dir, linker string, flags ...string) error {\nfunc Link(linker string, flags ...string) error {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/5b34713d41b7cbf091da20cd85b061fbadb794f3",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            5,
            6
        ]
    },
    {
        "input": "\t\t\terr = Link(sourceDir(), linker, ldflags...)\n\t\t\terr = Link(linker, ldflags...)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/5b34713d41b7cbf091da20cd85b061fbadb794f3",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            0,
            2,
            6
        ]
    },
    {
        "input": "\t\t\terr = Link(sourceDir(), spec.Linker, ldflags...)\n\t\t\terr = Link(spec.Linker, ldflags...)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/5b34713d41b7cbf091da20cd85b061fbadb794f3",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            0,
            2,
            5
        ]
    },
    {
        "input": "func Compile(pkgName, runtimePath, outpath, target string, printIR, dumpSSA bool) error {\nfunc Compile(pkgName, outpath, target string, printIR, dumpSSA bool) error {\n\t\terr := Compile(flag.Arg(0), *runtime, *outpath, *target, *printIR, *dumpSSA)\n\t\terr := Compile(flag.Arg(0), *outpath, *target, *printIR, *dumpSSA)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/09cbd223c34568e23a9881c0f5312a08eebeb84d",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t\tif valType, ok := valType.(*types.Named); ok && valType.Obj().Name() == \"__reg\" {\n\t\tif valType, ok := valType.(*types.Named); ok && valType.Obj().Name() == \"__volatile\" {\n\t\tif valType, ok := valType.(*types.Named); ok && valType.Obj().Name() == \"__reg\" {\n\t\tif valType, ok := valType.(*types.Named); ok && valType.Obj().Name() == \"__volatile\" {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/2788ab0172eaf631fb24c59e5e241918be5f5f6d",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "type __reg uint32\ntype RegValue = __reg\ntype __volatile uint32\ntype RegValue = __volatile\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/2788ab0172eaf631fb24c59e5e241918be5f5f6d",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            10,
            12
        ]
    },
    {
        "input": "\tISER [8]__reg\n\tISER [8]__volatile\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/2788ab0172eaf631fb24c59e5e241918be5f5f6d",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            10,
            11
        ]
    },
    {
        "input": "\t\tprintstring(\"panic: runtime error: slice out of range\\n\")\n\t\tabort()\n\t\truntimePanic(\"slice out of range\")\n\t\tprintstring(\"panic: runtime error: slice size out of range\\n\")\n\t\tabort()\n\t\truntimePanic(\"slice size out of range\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tinygo-org/tinygo/commit/31e06628562f1381ea84981cb2ba449d7fbb9e1a",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\tos.Setenv(\"FOO\", \"foo-var\")\n\tdefer os.Unsetenv(\"FOO\")\n\tos.Setenv(\"FOO\", \"foo-var\")\n\tdefer os.Unsetenv(\"FOO\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/0365e155622becf807967243539b180282d88f30",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\ttestutil.CheckContains(t, \"foo-var\", logs)\n\ttestutil.CheckContains(t, \"foo-var\", v2EventLogs)\n\ttestutil.CheckContains(t, \"foo-var\", logs)\n\ttestutil.CheckContains(t, \"foo-var\", v2EventLogs)\n\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/0365e155622becf807967243539b180282d88f30",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            4,
            5
        ]
    },
    {
        "input": "\t\t\t\tif k != \"metadata\" {\n\t\t\t\tif k != metadataField {\n\tif k != \"metadata\" {\n\tif k != metadataField {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/85717b438d8e87304990c6559ec1f32fe8db0813",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\tVisit(object map[string]interface{}, key string, value interface{}) bool\n\tVisit(path string, object map[string]interface{}, key string, value interface{}) bool\nfunc (is *imageSaver) Visit(o map[string]interface{}, k string, v interface{}) bool {\nfunc (is *imageSaver) Visit(navpath string, o map[string]interface{}, k string, v interface{}) bool {\nfunc (r *imageReplacer) Visit(o map[string]interface{}, k string, v interface{}) bool {\nfunc (r *imageReplacer) Visit(navpath string, o map[string]interface{}, k string, v interface{}) bool {\nfunc (r *labelsSetter) Visit(o map[string]interface{}, k string, v interface{}) bool {\nfunc (r *labelsSetter) Visit(navpath string, o map[string]interface{}, k string, v interface{}) bool {\nfunc (r *namespaceCollector) Visit(o map[string]interface{}, k string, v interface{}) bool {\nfunc (r *namespaceCollector) Visit(navpath string, o map[string]interface{}, k string, v interface{}) bool {\nfunc (d *recursiveVisitorDecorator) Visit(o map[string]interface{}, k string, v interface{}) bool {\n\tif d.delegate.Visit(o, k, v) {\n\t\tvisitFields(v, d)\nfunc (d *recursiveVisitorDecorator) Visit(path string, o map[string]interface{}, k string, v interface{}) bool {\n\tif d.delegate.Visit(path, o, k, v) {\n\t\tvisitFields(path, v, d)\nfunc (m *mockVisitor) Visit(o map[string]interface{}, k string, v interface{}) bool {\nfunc (m *mockVisitor) Visit(navpath string, o map[string]interface{}, k string, v interface{}) bool {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/f2c7990741e8850aaa71ec5f7d501f2cc6a5ec6b",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            7,
            11
        ]
    },
    {
        "input": "\tvisitFields(manifest, visitor)\n\tvisitFields(\"/\", manifest, visitor)\nfunc visitFields(o interface{}, visitor FieldVisitor) {\n// navpath: a '/' delimited path representing the fields navigated to this point\nfunc visitFields(navpath string, o interface{}, visitor FieldVisitor) {\n\t\t\tvisitFields(v, visitor)\n\t\t\t// this case covers lists so we don't update the navpath\n\t\t\tvisitFields(navpath, v, visitor)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/f2c7990741e8850aaa71ec5f7d501f2cc6a5ec6b",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8,
            9
        ]
    },
    {
        "input": "func visitFields(o interface{}, visitor FieldVisitor) {\n// navpath: a '/' delimited path representing the fields navigated to this point\nfunc visitFields(navpath string, o interface{}, visitor FieldVisitor) {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/f2c7990741e8850aaa71ec5f7d501f2cc6a5ec6b",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9,
            6
        ]
    },
    {
        "input": "\t\t\texpected:    `{\"tests\":[{\"structureTest\":\"structure-test-i0\",\"structureTestArgs\":null},{\"Command\":\"custom-test-i0\",\"TimeoutSeconds\":0,\"Dependencies\":null}]}` + \"\\n\",\n\t\t\texpected:    `{\"tests\":[{\"testType\":\"structure-test\",\"structureTest\":\"structure-test-i0\",\"structureTestArgs\":null},{\"testType\":\"custom-test\",\"Command\":\"custom-test-i0\",\"TimeoutSeconds\":0,\"Dependencies\":null}]}` + \"\\n\",\n\t\t\texpected: `{\"tests\":[{\"structureTest\":\"structure-test-i0\",\"structureTestArgs\":null},{\"Command\":\"custom-test-i0\",\"TimeoutSeconds\":0,\"Dependencies\":null}]}` + \"\\n\",\n\t\t\texpected: `{\"tests\":[{\"testType\":\"structure-test\",\"structureTest\":\"structure-test-i0\",\"structureTestArgs\":null},{\"testType\":\"custom-test\",\"Command\":\"custom-test-i0\",\"TimeoutSeconds\":0,\"Dependencies\":null}]}` + \"\\n\",\n",
        "class": "clone",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/51b296e57f911f34dc2cd14b3c6a6471b888a8fa",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\t\t\texpected:    `{\"tests\":[{\"structureTest\":\"structure-test-i0\",\"structureTestArgs\":null}]}` + \"\\n\",\n\t\t\texpected:    `{\"tests\":[{\"testType\":\"structure-test\",\"structureTest\":\"structure-test-i0\",\"structureTestArgs\":null}]}` + \"\\n\",\n\t\t\texpected: `{\"tests\":[{\"structureTest\":\"structure-test-i0\",\"structureTestArgs\":null}]}` + \"\\n\",\n\t\t\texpected: `{\"tests\":[{\"testType\":\"structure-test\",\"structureTest\":\"structure-test-i0\",\"structureTestArgs\":null}]}` + \"\\n\",\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/51b296e57f911f34dc2cd14b3c6a6471b888a8fa",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "\t\tif c, present := p.imageColors[tag.StripTag(container.Image)]; present {\n\t\tif c, present := p.imageColors[tag.StripTag(container.Image, false)]; present {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/fafdcd73c51cf7f95c86855c60474c50dffd7835",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2,
            5
        ]
    },
    {
        "input": "\t\tif c, present = a.config.PipelineForImage(tag.StripTag(container.Image)); present {\n\t\tif c, present = a.config.PipelineForImage(tag.StripTag(container.Image, false)); present {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/fafdcd73c51cf7f95c86855c60474c50dffd7835",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            2,
            3
        ]
    },
    {
        "input": "func StripTags(taggedImages []string) []string {\nfunc StripTags(taggedImages []string, ignoreDigest bool) []string {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/fafdcd73c51cf7f95c86855c60474c50dffd7835",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            12
        ]
    },
    {
        "input": "\t\ttag := StripTag(image)\n\t\ttag := StripTag(image, ignoreDigest)\nfunc StripTag(image string) string {\nfunc StripTag(image string, ignoreDigest bool) string {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/fafdcd73c51cf7f95c86855c60474c50dffd7835",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "func StripTag(image string) string {\nfunc StripTag(image string, ignoreDigest bool) string {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/fafdcd73c51cf7f95c86855c60474c50dffd7835",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "\t\t\ti := StripTags(test.images)\n\t\t\ti := StripTags(test.images, test.ignoreDigest)\nfunc StripTags(taggedImages []string) []string {\nfunc StripTags(taggedImages []string, ignoreDigest bool) []string {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/fafdcd73c51cf7f95c86855c60474c50dffd7835",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "\n\tfor _, path := range paths {\n\t\tname := filepath.Base(filepath.Dir(path))\n\n\tfor base, paths := range groupedPaths {\n\t\tname := filepath.Base(base)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/38c60b167ffd39558546314b72dc3aae1870dea6",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\t\t\tdescription:           \"charts dir is included when skipBuildDependencies is true\",\n\t\t\tfiles:                 []string{\"Chart.yaml\", \"charts/xyz.tar\", \"templates/deploy.yaml\"},\n\t\t\tdescription:           \"charts download dir is included when skipBuildDependencies is true\",\n\t\t\tfiles:                 []string{\"Chart.yaml\", \"charts/xyz.tar\", \"tmpcharts/xyz.tar\", \"templates/deploy.yaml\"},\n\t\t\tdescription:           \"charts dir is excluded when skipBuildDependencies is false\",\n\t\t\tfiles:                 []string{\"Chart.yaml\", \"charts/xyz.tar\", \"templates/deploy.yaml\"},\n\t\t\tdescription:           \"charts download dir is excluded when skipBuildDependencies is false\",\n\t\t\tfiles:                 []string{\"Chart.yaml\", \"charts/xyz.tar\", \"tmpcharts/xyz.tar\", \"templates/deploy.yaml\"},\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/dce71a50fabebb0d1e5e35d475529d0d21d4d3b8",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t\tif IsSupportedKubernetesFormat(path) {\n\t\tif IsSupportedKubernetesFileExtension(path) {\nfunc IsSupportedKubernetesFormat(n string) bool {\nfunc IsSupportedKubernetesFileExtension(n string) bool {\n\t\t\tif IsSupportedKubernetesFormat(test.filename) != test.expected {\n\t\t\tif IsSupportedKubernetesFileExtension(test.filename) != test.expected {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/7aff98d64a7b99dac7db465ab5567bb44c336b1d",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2,
            4
        ]
    },
    {
        "input": "func IsSupportedKubernetesFormat(n string) bool {\nfunc IsSupportedKubernetesFileExtension(n string) bool {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/7aff98d64a7b99dac7db465ab5567bb44c336b1d",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            4
        ]
    },
    {
        "input": "\t\t\tif IsSupportedKubernetesFormat(test.filename) != test.expected {\n\t\t\tif IsSupportedKubernetesFileExtension(test.filename) != test.expected {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/GoogleContainerTools/skaffold/commit/7aff98d64a7b99dac7db465ab5567bb44c336b1d",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            2
        ]
    },
    {
        "input": "\tPattern string            `json:\"pattern\"`\n\tPattern string            `json:\"likePattern\"`\n\tPattern     string            `json:\"pattern\"`\n\tExpression  string            `json:\"expression\"`\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/cayleygraph/cayley/commit/1267f83f020e8b5f1d69edaff79b4a972c70d7ea",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\t\tquery: &RegExp{Pattern: \"A\", From: &Vertex{Values: []quad.Value{}}},\n\t\tquery: &RegExp{Expression: \"A\", From: &Vertex{Values: []quad.Value{}}},\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/cayleygraph/cayley/commit/1267f83f020e8b5f1d69edaff79b4a972c70d7ea",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "// var _ Step = (*Out)(nil)\n// var _ PathStep = (*Out)(nil)\nvar _ Step = (*Out)(nil)\nvar _ PathStep = (*Out)(nil)\n// var _ Step = (*In)(nil)\n// var _ PathStep = (*In)(nil)\nvar _ Step = (*In)(nil)\nvar _ PathStep = (*In)(nil)\n",
        "class": "clone",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/cayleygraph/cayley/commit/40fd8006b782611866abfd2a1ddef40e26dbcfcd",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t\tREPL: func(qs graph.QuadStore) query.REPLSession {\n\t\t\treturn NewSession(qs)\n\t\t},\n\t\tREPL: func(qs graph.QuadStore) query.REPLSession {\n\t\t\treturn NewSession(qs)\n\t\t},\n\t\tREPL: func(qs graph.QuadStore) query.REPLSession {\n\t\t\treturn NewSession(qs)\n\t\t},\n\t\tREPL: func(qs graph.QuadStore) query.REPLSession {\n\t\t\treturn NewSession(qs)\n\t\t},\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/cayleygraph/cayley/commit/b57e43aab8ccfa836c21e633582258c8ddeca986",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3,
            4,
            6
        ]
    },
    {
        "input": "\tnp := p.clonePath().Both(preds...)\n\tnp := p.clonePath().BothWithTags(tags, preds...)\n\tnp := p.clonePath().Both(preds...)\n\tnp := p.clonePath().BothWithTags(tags, preds...)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/cayleygraph/cayley/commit/a4cb0cd44a6fcbe458bad74ce3e7670a03e99171",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "\t\tcont := ses.SendResult(&GremlinResult{metaresult: false, err: \"\", val: nil, actualResults: &tags})\n\t\tcont := ses.SendResult(&GremlinResult{metaresult: false, err: nil, val: nil, actualResults: &tags})\n\t\t\tcont := ses.SendResult(&GremlinResult{metaresult: false, err: \"\", val: nil, actualResults: &tags})\n\t\t\tcont := ses.SendResult(&GremlinResult{metaresult: false, err: nil, val: nil, actualResults: &tags})\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/cayleygraph/cayley/commit/8ccf842518419c3c0fb28c6432282f63580cf729",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\t\t\t\t\tpanic(halt)\n\t\t\t\t\tpanic(ErrKillTimeout)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/cayleygraph/cayley/commit/8ccf842518419c3c0fb28c6432282f63580cf729",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "\t\treturn nil, halt\n\t\treturn nil, ErrKillTimeout\n\t\t\t\t\tpanic(halt)\n\t\t\t\t\tpanic(ErrKillTimeout)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/cayleygraph/cayley/commit/8ccf842518419c3c0fb28c6432282f63580cf729",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\t\t\t\t\t\t\tfmt.Print(\"[-> ]\")\n\t\t\t\t\t\t\tfmt.Print(\"o--> \")\n\t\t\t\t\t\t\tfmt.Print(\"[ <-]\")\n\t\t\t\t\t\t\tfmt.Print(\" <--o\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/golang-migrate/migrate/commit/5ee5242bb1a680c3d2abe1f2f74aca39cf0e4b38",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\tgo pipep.Redirect(pipe1, pipe)\n\tpipep.Wait(pipe1)\n\tpipep.WaitAndRedirect(pipe1, pipe)\n\tgo pipep.Redirect(pipe1, pipe)\n\tpipep.Wait(pipe1)\n\tpipep.WaitAndRedirect(pipe1, pipe)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/golang-migrate/migrate/commit/5ee5242bb1a680c3d2abe1f2f74aca39cf0e4b38",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "func Redirect(fromPipe, toPipe chan interface{}) {\n\tif fromPipe != nil && toPipe != nil {\n// WaitAndRedirect waits for pipe to be closed and\n// redirects all messages from pipe to redirectPipe\n// while it waits.\nfunc WaitAndRedirect(pipe, redirectPipe chan interface{}) {\n\tif pipe != nil && redirectPipe != nil {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/golang-migrate/migrate/commit/5ee5242bb1a680c3d2abe1f2f74aca39cf0e4b38",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\t\t\tcase item, ok := <-fromPipe:\n\t\t\tcase item, ok := <-pipe:\nfunc Redirect(fromPipe, toPipe chan interface{}) {\n\tif fromPipe != nil && toPipe != nil {\n// WaitAndRedirect waits for pipe to be closed and\n// redirects all messages from pipe to redirectPipe\n// while it waits.\nfunc WaitAndRedirect(pipe, redirectPipe chan interface{}) {\n\tif pipe != nil && redirectPipe != nil {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/golang-migrate/migrate/commit/5ee5242bb1a680c3d2abe1f2f74aca39cf0e4b38",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "\t\t\tsourcePath: \"/empty.txt\", expected: false,\n\t\t\tsourcePath: \"/empty.txt\", expected: true,\n\t\t\tsourcePath: \"/tmp/empty.txt\", expected: false,\n\t\t\tsourcePath: \"/tmp/empty.txt\", expected: true,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/argoproj/argo-workflows/commit/4a654ca6914923656bd1dc21ca5b8c4aa75b9e25",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\t\t\t\t// fails because empty.txt is empty\n\t\t\t\t// fails because empty.txt is empty\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/argoproj/argo-workflows/commit/4a654ca6914923656bd1dc21ca5b8c4aa75b9e25",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\t\tlog.Infof(\"SIGTERM containerID %q ...\", containerID, syscall.SIGTERM.String())\n\t\tlog.Infof(\"SIGTERM containerID %q: %s\", containerID, syscall.SIGTERM.String())\n\t\tlog.Infof(\"SIGKILL containerID %q ...\", containerID, syscall.SIGKILL.String())\n\t\tlog.Infof(\"SIGKILL containerID %q: %s\", containerID, syscall.SIGKILL.String())\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/argoproj/argo-workflows/commit/159fe09c99c16738c0897f9d74087ec1b264954d",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\t\t\treturn errors.Errorf(errors.CodeBadRequest, \"%svalue is required\", prefix)\n\t\t\treturn errors.Errorf(errors.CodeBadRequest, \"%s%s.value is required\", prefix, param.Name)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.017699115044247787,
        "commit_url": "https://github.com/argoproj/argo-workflows/commit/c8667b5c81068326638a5e35c20336223b3894db",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\t\t\treturn errors.Errorf(errors.CodeBadRequest, \"%sfrom or artifact location is required\", prefix)\n\t\t\treturn errors.Errorf(errors.CodeBadRequest, \"%s%s.from or artifact location is required\", prefix, art.Name)\n\t\t\treturn errors.Errorf(errors.CodeBadRequest, \"%svalue is required\", prefix)\n\t\t\treturn errors.Errorf(errors.CodeBadRequest, \"%s%s.value is required\", prefix, param.Name)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.017699115044247787,
        "commit_url": "https://github.com/argoproj/argo-workflows/commit/c8667b5c81068326638a5e35c20336223b3894db",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "\t\trepoUrl := \"\"\n\t\tif woc.controller.Config.ArtifactRepository.Artifactory.RepoUrl != \"\" {\n\t\t\trepoUrl = woc.controller.Config.ArtifactRepository.Artifactory.RepoUrl + \"/\"\n\t\trepoURL := \"\"\n\t\tif woc.controller.Config.ArtifactRepository.Artifactory.RepoURL != \"\" {\n\t\t\trepoURL = woc.controller.Config.ArtifactRepository.Artifactory.RepoURL + \"/\"\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/argoproj/argo-workflows/commit/b324f9f52109b9aa29bc89d63810be6e421eb54f",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\t\tartUrl := fmt.Sprintf(\"%s%s/%s\", repoUrl, woc.wf.ObjectMeta.Name, pod.ObjectMeta.Name)\n\t\tartURL := fmt.Sprintf(\"%s%s/%s\", repoURL, woc.wf.ObjectMeta.Name, pod.ObjectMeta.Name)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/argoproj/argo-workflows/commit/b324f9f52109b9aa29bc89d63810be6e421eb54f",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            1,
            3
        ]
    },
    {
        "input": "\t\t\tURL:             artUrl,\n\t\t\tURL:             artURL,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/argoproj/argo-workflows/commit/b324f9f52109b9aa29bc89d63810be6e421eb54f",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\t\t\t\tservice.Cluster = \"default\"\n\t\t\t\tservice.Cluster = structs.ConsulDefaultCluster\n\t\t\t\t\tservice.Cluster = \"default\"\n\t\t\t\t\tservice.Cluster = structs.ConsulDefaultCluster\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/b697de9dda247e7c70ae41d9e3798cfdd2d99764",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t\t\tagent:      agent,\n\t\t\tmux:        http.NewServeMux(),\n\t\t\tlistener:   ln,\n\t\t\tlistenerCh: make(chan struct{}),\n\t\t\tlogger:     agent.httpLogger,\n\t\t\tAddr:       ln.Addr().String(),\n\t\t\twsUpgrader: wsUpgrader,\n\t\t\tagent:        agent,\n\t\t\teventAuditor: agent.auditor,\n\t\t\tmux:          http.NewServeMux(),\n\t\t\tlistener:     ln,\n\t\t\tlistenerCh:   make(chan struct{}),\n\t\t\tlogger:       agent.httpLogger,\n\t\t\tAddr:         ln.Addr().String(),\n\t\t\twsUpgrader:   wsUpgrader,\n\t\t\tagent:      agent,\n\t\t\tmux:        http.NewServeMux(),\n\t\t\tlistener:   agent.builtinListener,\n\t\t\tlistenerCh: make(chan struct{}),\n\t\t\tlogger:     agent.httpLogger,\n\t\t\tAddr:       \"builtin\",\n\t\t\twsUpgrader: wsUpgrader,\n\t\t\tagent:        agent,\n\t\t\teventAuditor: agent.auditor,\n\t\t\tmux:          http.NewServeMux(),\n\t\t\tlistener:     agent.builtinListener,\n\t\t\tlistenerCh:   make(chan struct{}),\n\t\t\tlogger:       agent.httpLogger,\n\t\t\tAddr:         \"builtin\",\n\t\t\twsUpgrader:   wsUpgrader,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/nomad/commit/ab3550f2464fa0b02977293fc5618f176bdc2fb5",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t// registrations will be made.\n\t// registrations will be made. This field may be updated.\n\t// registrations will be made.\n\t// registrations will be made. This field may be updated.\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/hashicorp/nomad/commit/a024b157967cf34e6949a44c1ebccdadca81e2bf",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\t\tlabels := append(baseLabels, metrics.Label{\n\t\tlabels := append(baseLabels, metrics.Label{ //nolint:gocritic\n\t\tlabels := append(baseLabels, metrics.Label{\n\t\tlabels := append(baseLabels, metrics.Label{ //nolint:gocritic\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/hashicorp/nomad/commit/e26f1c4591c219c89c18d95875cbcca855140abd",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "\treq := &CSISnapshotDeleteRequest{\n\t\tSnapshots: []*CSISnapshot{snap},\n\tqp := url.Values{}\n\tqp.Set(\"snapshot_id\", snap.ID)\n\tqp.Set(\"plugin_id\", snap.PluginID)\n\tfor k, v := range snap.Secrets {\n\t\tqp.Set(\"secret\", fmt.Sprintf(\"%v=%v\", k, v))\n\treq := &CSISnapshotDeleteRequest{\n\t\tSnapshots: []*CSISnapshot{snap},\n\tqp := url.Values{}\n\tqp.Set(\"snapshot_id\", snap.ID)\n\tqp.Set(\"plugin_id\", snap.PluginID)\n\tfor k, v := range snap.Secrets {\n\t\tqp.Set(\"secret\", fmt.Sprintf(\"%v=%v\", k, v))\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/hashicorp/nomad/commit/d61c267e4e7e92a3db325cadf3bd781d37e64354",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t_, err := v.client.delete(\"/v1/volumes/snapshot\", req, w)\n\t_, err := v.client.delete(\"/v1/volumes/snapshot?\"+qp.Encode(), nil, w)\n\t_, err := v.client.delete(\"/v1/volumes/snapshot\", req, w)\n\t_, err := v.client.delete(\"/v1/volumes/snapshot?\"+qp.Encode(), nil, w)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/hashicorp/nomad/commit/d61c267e4e7e92a3db325cadf3bd781d37e64354",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "type CSISnapshotDeleteRequest struct {\n\tSnapshots []*CSISnapshot\n\tWriteRequest\n}\n\ntype CSISnapshotDeleteRequest struct {\n\tSnapshots []*CSISnapshot\n\tWriteRequest\n}\n\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.2,
        "commit_url": "https://github.com/hashicorp/nomad/commit/d61c267e4e7e92a3db325cadf3bd781d37e64354",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "import { reduceToLargestUnit } from 'nomad-ui/helpers/format-bytes';\nimport { reduceBytes } from 'nomad-ui/utils/units';\nimport { reduceToLargestUnit } from 'nomad-ui/helpers/format-bytes';\nimport { reduceBytes } from 'nomad-ui/utils/units';\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/432ec44ba21fc1e5a2f2c5f32af0044610a636f5",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "\tif err := initKeyring(file, key2); err != nil {\n\tif err := initKeyring(file, key2, logger); err != nil {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/hashicorp/nomad/commit/614729bd4cd85f328be3f63b3ee744c9c6d7f6fc",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2,
            4
        ]
    },
    {
        "input": "\t\t\tif err := initKeyring(path, key); err != nil {\n\t\t\tif err := initKeyring(path, key, a.logger); err != nil {\n\tif err := initKeyring(file, key1); err != nil {\n\tif err := initKeyring(file, key1, logger); err != nil {\n\tif err := initKeyring(file, key2); err != nil {\n\tif err := initKeyring(file, key2, logger); err != nil {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/hashicorp/nomad/commit/614729bd4cd85f328be3f63b3ee744c9c6d7f6fc",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            2,
            3
        ]
    },
    {
        "input": "\tstoredMetadata, err := fsm.state.ClusterMetadata()\n\tws := memdb.NewWatchSet()\n\tstoredMetadata, err := fsm.state.ClusterMetadata(ws)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/bca5e69e75ea942c0435a74dfada8141f530f63c",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\tstoredMetadata, err = fsm.state.ClusterMetadata()\n\tstoredMetadata, err = fsm.state.ClusterMetadata(ws)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/bca5e69e75ea942c0435a74dfada8141f530f63c",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\tresult, err := state.ClusterMetadata()\n\tresult, err := state.ClusterMetadata(nil)\n\tout, err := state.ClusterMetadata()\n\tout, err := state.ClusterMetadata(nil)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/bca5e69e75ea942c0435a74dfada8141f530f63c",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "\tout, err := state.ClusterMetadata()\n\tout, err := state.ClusterMetadata(nil)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/bca5e69e75ea942c0435a74dfada8141f530f63c",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\twm, err := op.c.write(\"/v1/operator/license\", license, nil, q)\n\tr, err := op.c.newRequest(\"PUT\", \"/v1/operator/license\")\n\twm, err := op.c.write(\"/v1/operator/license\", license, nil, q)\n\tr, err := op.c.newRequest(\"PUT\", \"/v1/operator/license\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/hashicorp/nomad/commit/ef7b7b2a9bdfc28d1187414dd384bd35be4d3d67",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "  allocation: belongsTo(),\n  allocation: belongsTo(),\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/0dd5882c75853159c8cda742177da8da50a62df6",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\t\treturn false, \"\", fmt.Errorf(\"failed to create staging directory for volume (%s): %v\", vol.ID, err)\n\t\treturn \"\", false, fmt.Errorf(\"failed to create staging directory for volume (%s): %v\", vol.ID, err)\n\n\t\treturn false, \"\", fmt.Errorf(\"failed to create allocation directory for volume (%s): %v\", vol.ID, err)\n\t\treturn \"\", false, fmt.Errorf(\"failed to create allocation directory for volume (%s): %v\", vol.ID, err)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/nomad/commit/5d9f560f5946d8869e276bc416b4693647c94311",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t\treturn false, \"\", fmt.Errorf(\"mount point detection failed for volume (%s): %v\", vol.ID, err)\n\t\treturn \"\", false, fmt.Errorf(\"mount point detection failed for volume (%s): %v\", vol.ID, err)\n\t\treturn false, \"\", fmt.Errorf(\"mount point detection failed for volume (%s): %v\", vol.ID, err)\n\t\treturn \"\", false, fmt.Errorf(\"mount point detection failed for volume (%s): %v\", vol.ID, err)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/nomad/commit/5d9f560f5946d8869e276bc416b4693647c94311",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "\tlogger.Trace(\"Volume staging environment\", \"pre-existing_mount\", existingMount, \"staging_path\", stagingPath)\n\tlogger.Trace(\"Volume staging environment\", \"pre-existing_mount\", isMount, \"staging_path\", stagingPath)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/5d9f560f5946d8869e276bc416b4693647c94311",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "\tif existingMount {\n\tif isMount {\n\tlogger.Trace(\"Volume staging environment\", \"pre-existing_mount\", existingMount, \"staging_path\", stagingPath)\n\tlogger.Trace(\"Volume staging environment\", \"pre-existing_mount\", isMount, \"staging_path\", stagingPath)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/5d9f560f5946d8869e276bc416b4693647c94311",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "\t\t\tsrc = expandPath(task.TaskDir().Dir, src)\n\t\t\tsrc = expandPath(task.TaskDir().Dir, src, runtime.GOOS)\n\t\t\trequire.Equal(t, c.expected, filepath.ToSlash(expandPath(c.base, c.target)))\n\t\t\trequire.Equal(t, c.expected, filepath.ToSlash(expandPath(c.base, c.target, runtime.GOOS)))\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/hashicorp/nomad/commit/2a2bb0430ef2851c6d7b5b145ba2bdf2f22568f3",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\t\t\trequire.Equal(t, c.expected, filepath.ToSlash(expandPath(c.base, c.target)))\n\t\t\trequire.Equal(t, c.expected, filepath.ToSlash(expandPath(c.base, c.target, runtime.GOOS)))\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/hashicorp/nomad/commit/2a2bb0430ef2851c6d7b5b145ba2bdf2f22568f3",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0
        ]
    },
    {
        "input": "        Deadline: 0,\n        IgnoreSystemJobs: true,\n        DrainSpec: {\n          Deadline: 0,\n          IgnoreSystemJobs: true,\n        },\n        Deadline: -1000000000,\n        IgnoreSystemJobs: true,\n        DrainSpec: {\n          Deadline: -1000000000,\n          IgnoreSystemJobs: true,\n        },\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/hashicorp/nomad/commit/0b031f0b270dca8e970d4fe14a3a667564d46178",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "import { module, test } from 'qunit';\nimport { module, skip, test } from 'qunit';\nimport { module, test } from 'qunit';\nimport { module, skip, test } from 'qunit';\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/nomad/commit/e41a7f6765de9457b9f3a52fe8b2b2815a7c2302",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "    moment(event.time / 1000000).format('MM/DD/YY HH:mm:ss'),\n    moment(event.time / 1000000).format(\"MMM DD, 'YY HH:mm:ss ZZ\"),\n    moment(event.time / 1000000).format('MM/DD/YY HH:mm:ss'),\n    moment(event.time / 1000000).format(\"MMM DD, 'YY HH:mm:ss ZZ\"),\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/nomad/commit/cc1b83c980626814fee4f45669e68e9ac5b6136e",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "      moment(allocation.createTime / 1000000).format('MM/DD HH:mm:ss'),\n      moment(allocation.createTime / 1000000).format('MMM DD HH:mm:ss ZZ'),\n      moment(allocation.createTime / 1000000).format('MM/DD HH:mm:ss'),\n      moment(allocation.createTime / 1000000).format('MMM DD HH:mm:ss ZZ'),\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/nomad/commit/cc1b83c980626814fee4f45669e68e9ac5b6136e",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\tdestroyh, ok := h.(interfaces.RunnerDestroyHook)\n\tpostrunh, ok := h.(interfaces.RunnerPostrunHook)\nvar _ interfaces.RunnerDestroyHook = (*allocHealthWatcherHook)(nil)\nvar _ interfaces.RunnerPostrunHook = (*allocHealthWatcherHook)(nil)\n\t// Destroy\n\trequire.NoError(destroyh.Destroy())\n\t// Postrun\n\trequire.NoError(postrunh.Postrun())\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/75ac7c4be0fcd9a2389b2c4bbe44cd88a08a9d1c",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            2,
            5
        ]
    },
    {
        "input": "\t// Destroy\n\trequire.NoError(destroyh.Destroy())\n\t// Postrun\n\trequire.NoError(postrunh.Postrun())\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/75ac7c4be0fcd9a2389b2c4bbe44cd88a08a9d1c",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            0,
            1,
            4,
            7,
            10,
            12,
            13
        ]
    },
    {
        "input": "\tctx, _ := context.WithCancel(context.Background())\n\tctx, cancel := context.WithCancel(context.Background())\n\tdefer cancel()\n\tctx1, _ := context.WithCancel(context.Background())\n\tctx1, cancel1 := context.WithCancel(context.Background())\n\tdefer cancel1()\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/hashicorp/nomad/commit/fab76c6c0b05d5b1b83350bb16760d0cb4a8a098",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "\td.nomadConfig = cfg\n\tif cfg != nil {\n\t\td.nomadConfig = cfg.Driver\n\t}\n\tr.nomadConfig = cfg\n\tif cfg != nil {\n\t\tr.nomadConfig = cfg.Driver\n\t}\n\td.nomadConfig = cfg\n\tif cfg != nil {\n\t\td.nomadConfig = cfg.Driver\n\t}\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/hashicorp/nomad/commit/b837bf3ce3b95c2a350580055cf77a0ba5c3a5e0",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3,
            5
        ]
    },
    {
        "input": "  bufferSize: 100,\n\n  bufferSize: 100,\n\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/9a102b73b9f1479a7280ab259cc49e8997d4b6ce",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\t\treturn checkSetContainsAny(ctx, lVal, rVal)\n\tcase structs.AffinitySetContainsAll:\n\t\treturn checkSetContainsAny(lVal, rVal)\n\tcase structs.AffinitySetContainsAll, structs.ConstraintSetContains:\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/db7a8b691fe0dbf6673da9a3cd5c075b9d9e79e6",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "func checkSetContainsAny(ctx Context, lVal, rVal interface{}) bool {\nfunc checkSetContainsAny(lVal, rVal interface{}) bool {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/db7a8b691fe0dbf6673da9a3cd5c075b9d9e79e6",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0
        ]
    },
    {
        "input": "\tassert.Contains(\"rpc error: EOF\", err.Error())\n\tassert.True(connectionReset(err.Error()))\n\t\tassert.Contains(\"rpc error: EOF\", err.Error())\n\t\tassert.True(connectionReset(err.Error()))\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/028ba9f423cd924a7d84d5ba0790e2fd3e3243a9",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "func (w *deploymentWatcher) handleRollbackValidity(j *structs.Job, desc string) (*structs.Job, string) {\n\n// handleRollbackValidity checks if the job being rolled back to has the same spec as the existing job\n// Returns a modified description and job accordingly.\nfunc (w *deploymentWatcher) handleRollbackValidity(rollbackJob *structs.Job, desc string) (*structs.Job, string) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/hashicorp/nomad/commit/04feeef1cc1d8dc3e2fa2ef71723a686c5551a7c",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3
        ]
    },
    {
        "input": "\tif w.j.SpecChanged(j) {\n\t\tdesc = structs.DeploymentStatusDescriptionRollback(desc, j.Version)\n\tif w.j.SpecChanged(rollbackJob) {\n\t\tdesc = structs.DeploymentStatusDescriptionRollback(desc, rollbackJob.Version)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8,
        "commit_url": "https://github.com/hashicorp/nomad/commit/04feeef1cc1d8dc3e2fa2ef71723a686c5551a7c",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0,
            2,
            3
        ]
    },
    {
        "input": "\t\tdesc = structs.DeploymentStatusDescriptionRollbackNoop(desc, j.Version)\n\t\tj = nil\n\t\tdesc = structs.DeploymentStatusDescriptionRollbackNoop(desc, rollbackJob.Version)\n\t\trollbackJob = nil\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8,
        "commit_url": "https://github.com/hashicorp/nomad/commit/04feeef1cc1d8dc3e2fa2ef71723a686c5551a7c",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            1,
            3
        ]
    },
    {
        "input": "\treturn j, desc\n\treturn rollbackJob, desc\nfunc (w *deploymentWatcher) handleRollbackValidity(j *structs.Job, desc string) (*structs.Job, string) {\n\n// handleRollbackValidity checks if the job being rolled back to has the same spec as the existing job\n// Returns a modified description and job accordingly.\nfunc (w *deploymentWatcher) handleRollbackValidity(rollbackJob *structs.Job, desc string) (*structs.Job, string) {\n\tif w.j.SpecChanged(j) {\n\t\tdesc = structs.DeploymentStatusDescriptionRollback(desc, j.Version)\n\tif w.j.SpecChanged(rollbackJob) {\n\t\tdesc = structs.DeploymentStatusDescriptionRollback(desc, rollbackJob.Version)\n\t\tdesc = structs.DeploymentStatusDescriptionRollbackNoop(desc, j.Version)\n\t\tj = nil\n\t\tdesc = structs.DeploymentStatusDescriptionRollbackNoop(desc, rollbackJob.Version)\n\t\trollbackJob = nil\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/04feeef1cc1d8dc3e2fa2ef71723a686c5551a7c",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            2
        ]
    },
    {
        "input": "    findAll('.breadcrumb')[1].textContent,\n    findAll('.breadcrumb')[1].textContent.trim(),\n    findAll('.breadcrumb')[2].textContent,\n    findAll('.breadcrumb')[2].textContent.trim(),\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/hashicorp/nomad/commit/efbe06431fcc07766f53f14bb19c9353de63f69c",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "\t\t\tAutoRegister:      true,\n\t\t\tAutoAdvertise:     true,\n\t\t\tAutoRegister:      true,\n\t\t\tAutoAdvertise:     true,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/nomad/commit/f1a40c0deb1eb15df507b7502c0dd176182d00a7",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "\tif a.config.Consul.AutoRegister && a.config.Consul.ServerServiceName != \"\" {\n\tif a.config.Consul.AutoAdvertise {\n\tif a.config.Consul.AutoRegister && a.config.Consul.ClientServiceName != \"\" {\n\tif a.config.Consul.AutoAdvertise {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/f1a40c0deb1eb15df507b7502c0dd176182d00a7",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\tif b.AutoRegister {\n\t\tresult.AutoRegister = true\n\tif b.AutoAdvertise {\n\t\tresult.AutoAdvertise = true\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/hashicorp/nomad/commit/f1a40c0deb1eb15df507b7502c0dd176182d00a7",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "\t\t\tcs.Percent = pid.cpuStatsTotal.Percent(cpuStats.Total() * float64(time.Second))\n\t\t\tcs.Percent = np.cpuStatsTotal.Percent(cpuStats.Total() * float64(time.Second))\n\t\t\tcs.SystemMode = pid.cpuStatsSys.Percent(cpuStats.System * float64(time.Second))\n\t\t\tcs.UserMode = pid.cpuStatsUser.Percent(cpuStats.User * float64(time.Second))\n\t\t\tcs.SystemMode = np.cpuStatsSys.Percent(cpuStats.System * float64(time.Second))\n\t\t\tcs.UserMode = np.cpuStatsUser.Percent(cpuStats.User * float64(time.Second))\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/d31034941a7ba33a5e4d303d0d8170bc1ef1f049",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t\te.exitState = &ProcessState{Pid: 0, ExitCode: 0, Time: time.Now()}\n\t\te.exitState = &ProcessState{Pid: 0, ExitCode: 0, IsolationConfig: ic, Time: time.Now()}\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.125,
        "commit_url": "https://github.com/hashicorp/nomad/commit/03dcb7f5410ec17f317ff5a9af97205627e9029b",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\te.exitState = &ProcessState{Pid: 0, ExitCode: exitCode, Signal: signal, Time: time.Now()}\n\te.exitState = &ProcessState{Pid: 0, ExitCode: exitCode, Signal: signal, IsolationConfig: ic, Time: time.Now()}\n\t\te.exitState = &ProcessState{Pid: 0, ExitCode: 0, Time: time.Now()}\n\t\te.exitState = &ProcessState{Pid: 0, ExitCode: 0, IsolationConfig: ic, Time: time.Now()}\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.125,
        "commit_url": "https://github.com/hashicorp/nomad/commit/03dcb7f5410ec17f317ff5a9af97205627e9029b",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "\treturn &LimitReadCloser{Reader: io.LimitReader(f, limit), Closer: f}, nil\n\treturn &FileReadCloser{Reader: io.LimitReader(f, limit), Closer: f}, nil\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/91869fb79bd6ff3bed31d4fdd2dcf57ba1587588",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "type LimitReadCloser struct {\n// FileReadCloser wraps a LimitReader so that a file is closed once it has been\n// read\ntype FileReadCloser struct {\n\treturn &LimitReadCloser{Reader: io.LimitReader(f, limit), Closer: f}, nil\n\treturn &FileReadCloser{Reader: io.LimitReader(f, limit), Closer: f}, nil\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/91869fb79bd6ff3bed31d4fdd2dcf57ba1587588",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\ts1 := testServer(t, nil)\n\ts1 := testServer(t, func(c *Config) {\n\t\tc.NumSchedulers = 0 // Prevent automatic dequeue\n\t})\n\ts1 := testServer(t, nil)\n\ts1 := testServer(t, func(c *Config) {\n\t\tc.NumSchedulers = 0 // Prevent automatic dequeue\n\t})\n\ts1 := testServer(t, nil)\n\ts1 := testServer(t, func(c *Config) {\n\t\tc.NumSchedulers = 0 // Prevent automatic dequeue\n\t})\n\ts1 := testServer(t, nil)\n\ts1 := testServer(t, func(c *Config) {\n\t\tc.NumSchedulers = 0 // Prevent automatic dequeue\n\t})\n\ts1 := testServer(t, nil)\n\ts1 := testServer(t, func(c *Config) {\n\t\tc.NumSchedulers = 0 // Prevent automatic dequeue\n\t})\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.23076923076923078,
        "commit_url": "https://github.com/hashicorp/nomad/commit/0681acbf6921e95caeec87bf518ac7bd3061ce1e",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4
        ]
    },
    {
        "input": "\t\tResources: &structs.Resources{\n\t\t\tMemoryMB: 1024,\n\t\t\tCPU:      512,\n\t\t},\n\t\tResources: basicResources,\n\t\tResources: &structs.Resources{\n\t\t\tMemoryMB: 1024,\n\t\t\tCPU:      512,\n\t\t},\n\t\tResources: basicResources,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/nomad/commit/559462b49f14a2abf37015f88958ff3467461610",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "\t// Guard against nil\n\tif n == nil {\n\t\treturn map[string]int{}\n\t}\n\t// Guard against nil\n\tif n == nil {\n\t\treturn []int{}\n\t}\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/927a8336887f721eabc17665913982d64a7360b8",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "func TestMapDynamicPortsNil(t *testing.T) {\n\tvar resources *NetworkResource\n\n\texpected := map[string]int{}\n\tactual := resources.MapDynamicPorts()\n\n\tif !reflect.DeepEqual(expected, actual) {\n\t\tt.Fatalf(\"Expected %#v; found %#v\", expected, actual)\n\t}\n}\n\nfunc TestListStaticPortsDynamicNil(t *testing.T) {\n\tvar resources *NetworkResource\n\n\texpected := []int{}\n\tactual := resources.ListStaticPorts()\n\n\tif !reflect.DeepEqual(expected, actual) {\n\t\tt.Fatalf(\"Expected %#v; found %#v\", expected, actual)\n\t}\n}\n\n",
        "class": "clone",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/hashicorp/nomad/commit/927a8336887f721eabc17665913982d64a7360b8",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\t\tlogger.Printf(\"[ERROR] nomad: failed to start RPC layer: %s\", err)\n\t\tlogger.Printf(\"[ERR] nomad: failed to start RPC layer: %s\", err)\n\t\tlogger.Printf(\"[ERROR] nomad: failed to start Raft: %s\", err)\n\t\tlogger.Printf(\"[ERR] nomad: failed to start Raft: %s\", err)\n\t\tlogger.Printf(\"[ERROR] nomad: failed to start serf WAN: %s\", err)\n\t\tlogger.Printf(\"[ERR] nomad: failed to start serf WAN: %s\", err)\n\t\tlogger.Printf(\"[ERROR] nomad: failed to start workers: %s\", err)\n\t\tlogger.Printf(\"[ERR] nomad: failed to start workers: %s\", err)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/hashicorp/nomad/commit/3c1bb50da3546c37cfb019888ed5762c3d1f5e76",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            10,
            11,
            12
        ]
    },
    {
        "input": "\tif err := InitIgnoreList(true); err != nil {\n\tif err := InitIgnoreList(); err != nil {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/GoogleContainerTools/kaniko/commit/401616bb38d94fa861bfb0387eef578d75ade2e1",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            4
        ]
    },
    {
        "input": "func InitIgnoreList(detectFilesystem bool) error {\nfunc InitIgnoreList() error {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/GoogleContainerTools/kaniko/commit/401616bb38d94fa861bfb0387eef578d75ade2e1",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            1,
            4
        ]
    },
    {
        "input": "\terr = InitIgnoreList(true)\n\terr = InitIgnoreList()\n\tif err := InitIgnoreList(true); err != nil {\n\tif err := InitIgnoreList(); err != nil {\nfunc InitIgnoreList(detectFilesystem bool) error {\nfunc InitIgnoreList() error {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/GoogleContainerTools/kaniko/commit/401616bb38d94fa861bfb0387eef578d75ade2e1",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            1,
            2
        ]
    },
    {
        "input": "\t\t\tif uid < 0 {\n\t\t\t\tuid = int64(int(fi.Sys().(*syscall.Stat_t).Uid))\n\t\t\t}\n\t\t\tif gid < 0 {\n\t\t\t\tgid = int64(int(fi.Sys().(*syscall.Stat_t).Gid))\n\t\t\t}\n\t\t\tuid, gid = DetermineTargetFileOwnership(fi, uid, gid)\n\tif uid < 0 {\n\t\tuid = int64(fi.Sys().(*syscall.Stat_t).Uid)\n\t}\n\tif gid < 0 {\n\t\tgid = int64(fi.Sys().(*syscall.Stat_t).Gid)\n\t}\n\tuid, gid = DetermineTargetFileOwnership(fi, uid, gid)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/GoogleContainerTools/kaniko/commit/ac4c80d2416d7486c9a0bc9b95ef2cab31601370",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\tOneTimeSetup func(currentCfg Config) error\n\tPerSessionSetup func(currentCfg Config) error\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getlantern/lantern/commit/80540824462acc542ce3a86fdf63d1236e7cfa04",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            8,
            6
        ]
    },
    {
        "input": "\t\tif m.OneTimeSetup != nil {\n\t\t\terr := m.OneTimeSetup(cfg)\n\t\t\tif err != nil {\n\t\tif m.PerSessionSetup != nil {\n\t\t\tif err := m.PerSessionSetup(cfg); err != nil {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/getlantern/lantern/commit/80540824462acc542ce3a86fdf63d1236e7cfa04",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8,
            5
        ]
    },
    {
        "input": "\t\tif m.OneTimeSetup != nil {\n\t\t\terr := m.OneTimeSetup(copied)\n\t\tif m.PerSessionSetup != nil {\n\t\t\terr := m.PerSessionSetup(copied)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8,
        "commit_url": "https://github.com/getlantern/lantern/commit/80540824462acc542ce3a86fdf63d1236e7cfa04",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            5,
            6
        ]
    },
    {
        "input": "\t\t\ttimedOut := isTimeout(err)\n\t\t\tif timedOut {\n\t\t\t\t// Ignore timeouts when using deadline based on IdleTimeout\n\t\t\thitMaxDeadline := isTimeout(err) && !time.Now().Before(maxDeadline)\n\t\t\tif hitMaxDeadline {\n\t\t\t\t// Ignore timeouts when encountering deadline based on\n\t\t\t\t// IdleTimeout\n\t\t\ttimedOut := isTimeout(err)\n\t\t\tif timedOut {\n\t\t\t\t// Ignore timeouts when using deadline based on IdleTimeout\n\t\t\thitMaxDeadline := isTimeout(err) && !time.Now().Before(maxDeadline)\n\t\t\tif hitMaxDeadline {\n\t\t\t\t// Ignore timeouts when encountering deadline based on\n\t\t\t\t// IdleTimeout\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getlantern/lantern/commit/f5cc036f44869fe098e54811da76e4f172a188e7",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\t\t\tif n == 0 || !timedOut {\n\t\t\tif n == 0 || !hitMaxDeadline {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getlantern/lantern/commit/f5cc036f44869fe098e54811da76e4f172a188e7",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\tif index >= 0 && index < int64(len(self.value)) {\n\tif index >= 0 && index < int64(len(self.value16)) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getlantern/lantern/commit/3240efeb62ddf99d77f102190e6c19d297a10f7a",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            8,
            9,
            10,
            6
        ]
    },
    {
        "input": "\tif index >= 0 && index < int64(len(self.value)) {\n\t\treturn toValue(string(self.value[index]))\n\tif index >= 0 && index < int64(len(self.value16)) {\n\t\treturn toValue(string(self.value16[index]))\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.875,
        "commit_url": "https://github.com/getlantern/lantern/commit/3240efeb62ddf99d77f102190e6c19d297a10f7a",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8,
            9,
            10,
            4
        ]
    },
    {
        "input": "\t\t\ttoValue(string(self.value[index])),\n\t\t\ttoValue(string(self.value16[index])),\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getlantern/lantern/commit/3240efeb62ddf99d77f102190e6c19d297a10f7a",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            8,
            10,
            4,
            6
        ]
    },
    {
        "input": "\tfor index, _ := range self.value {\n\tfor index, _ := range self.value16 {\n\tif index >= 0 && index < int64(len(self.value)) {\n\tif index >= 0 && index < int64(len(self.value16)) {\n\t\t\ttoValue(string(self.value[index])),\n\t\t\ttoValue(string(self.value16[index])),\n\tif index >= 0 && index < int64(len(self.value)) {\n\tif index >= 0 && index < int64(len(self.value16)) {\n\tif index >= 0 && index < int64(len(self.value)) {\n\t\treturn toValue(string(self.value[index]))\n\tif index >= 0 && index < int64(len(self.value16)) {\n\t\treturn toValue(string(self.value16[index]))\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getlantern/lantern/commit/3240efeb62ddf99d77f102190e6c19d297a10f7a",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            8,
            9,
            4,
            6
        ]
    },
    {
        "input": "func getIdentifierReference(environment _environment, name string, strict bool) _reference {\nfunc getIdentifierReference(environment _environment, name string, strict bool, node _node) _reference {\n\treturn getIdentifierReference(environment.Outer(), name, strict)\n\treturn getIdentifierReference(environment.Outer(), name, strict, node)\n\treturn getIdentifierReference(self, name, false)\n\treturn getIdentifierReference(self, name, false, nil)\n\treference := getIdentifierReference(self.LexicalEnvironment(), name, false)\n\treference := getIdentifierReference(self.LexicalEnvironment(), name, false, node)\n\t\tleft := getIdentifierReference(self.LexicalEnvironment(), node.Identifier, false)\n\t\tleft := getIdentifierReference(self.LexicalEnvironment(), node.Identifier, false, node)\n\t\t\t\t\tinto = toValue(getIdentifierReference(self.LexicalEnvironment(), identifier, false))\n\t\t\t\t\tinto = toValue(getIdentifierReference(self.LexicalEnvironment(), identifier, false, node))\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getlantern/lantern/commit/c6e45a7118288a09e1b34e68b9574f7e66efd035",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2,
            3,
            5,
            6,
            7
        ]
    },
    {
        "input": "\treturn getIdentifierReference(environment.Outer(), name, strict)\n\treturn getIdentifierReference(environment.Outer(), name, strict, node)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getlantern/lantern/commit/c6e45a7118288a09e1b34e68b9574f7e66efd035",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            3,
            5,
            6,
            7
        ]
    },
    {
        "input": "\treference := getIdentifierReference(self.LexicalEnvironment(), name, false)\n\treference := getIdentifierReference(self.LexicalEnvironment(), name, false, node)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getlantern/lantern/commit/c6e45a7118288a09e1b34e68b9574f7e66efd035",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            0,
            2,
            3,
            6,
            7
        ]
    },
    {
        "input": "\t\t\t\t\tinto = toValue(getIdentifierReference(self.LexicalEnvironment(), identifier, false))\n\t\t\t\t\tinto = toValue(getIdentifierReference(self.LexicalEnvironment(), identifier, false, node))\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/getlantern/lantern/commit/c6e45a7118288a09e1b34e68b9574f7e66efd035",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            0,
            2,
            3,
            5,
            6
        ]
    },
    {
        "input": "\tIs(err, \"ReferenceError: xyzzy is not defined (line 6)\")\n\tIs(err, \"ReferenceError: xyzzy is not defined (line 7)\")\n\tIs(err, \"ReferenceError: xyzzy is not defined (line 3)\")\n\tIs(err, \"ReferenceError: xyzzy is not defined (line 4)\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/getlantern/lantern/commit/c6e45a7118288a09e1b34e68b9574f7e66efd035",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "\t\t\tif filepath.IsAbs(fn) {\n\t\t\tif strings.HasPrefix(filepath.ToSlash(fn), \"/\") {\n\t\t\t\tif !filepath.IsAbs(ifn) {\n\t\t\t\tif !strings.HasPrefix(ifn, \"/\") {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/1f3b7e86ef3e454c4655442111bd313adc1e4974",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "\tgs := gsc.(*snmp.GosnmpWrapper)\n\tgs := gsc.(snmp.GosnmpWrapper)\n\tgs = gsc.(*snmp.GosnmpWrapper)\n\tgs = gsc.(snmp.GosnmpWrapper)\n\tgs = gsc.(*snmp.GosnmpWrapper)\n\tgs = gsc.(snmp.GosnmpWrapper)\n\tgs := gsc.(*snmp.GosnmpWrapper)\n\tgs := gsc.(snmp.GosnmpWrapper)\n\tgs := gsc.(*snmp.GosnmpWrapper)\n\tgs := gsc.(snmp.GosnmpWrapper)\n\t\t\tgs := gsc.(*snmp.GosnmpWrapper)\n\t\t\tgs := gsc.(snmp.GosnmpWrapper)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.8,
        "commit_url": "https://github.com/influxdata/telegraf/commit/0dd99b2157d3cc4338cda94efd945ea5a46cc402",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4,
            5,
            6,
            7,
            8
        ]
    },
    {
        "input": "\tif m, err = d.buildMap(&gs, d.ifXTable); err == nil {\n\tif m, err = d.buildMap(gs, d.ifXTable); err == nil {\n\tif m, err = d.buildMap(&gs, d.ifTable); err == nil {\n\tif m, err = d.buildMap(gs, d.ifTable); err == nil {\n",
        "class": "clone",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/0dd99b2157d3cc4338cda94efd945ea5a46cc402",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "\td.ifTable, err = d.makeTable(\"IF-MIB::ifDescr\")\n\n\td.ifTable, err = d.makeTable(\"1.3.6.1.2.1.2.2.1.2\")\n\td.ifXTable, err = d.makeTable(\"IF-MIB::ifName\")\n\td.ifXTable, err = d.makeTable(\"1.3.6.1.2.1.31.1.1.1.1\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/3ddc3c6b5192250ca8e1d82183b9b34f89aa8a96",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\t\treturn fmt.Errorf(\"looking up ifDescr in local MIB: %w\", err)\n\t\treturn fmt.Errorf(\"preparing ifTable: %v\", err)\n\t\treturn fmt.Errorf(\"looking up ifName in local MIB: %w\", err)\n\t\treturn fmt.Errorf(\"preparing ifXTable: %v\", err)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/3ddc3c6b5192250ca8e1d82183b9b34f89aa8a96",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\t\t\treturn nil, fmt.Errorf(\"field %s is missing\", column)\n\t\t\treturn nil, errors.New(\"ifName field is missing\")\n\t\t\treturn nil, fmt.Errorf(\"field %s isn't a string\", column)\n\t\t\treturn nil, errors.New(\"ifName field isn't a string\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/3ddc3c6b5192250ca8e1d82183b9b34f89aa8a96",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            12
        ]
    },
    {
        "input": "\tif e.GetCreationTimestamp().Second() == 0 && e.GetCreationTimestamp().Nanosecond() == 0 {\n\tcreationTs := e.GetCreationTimestamp()\n\tif creationTs.IsZero() {\n\tif i.GetCreationTimestamp().Second() == 0 && i.GetCreationTimestamp().Nanosecond() == 0 {\n\tcreationTs := i.GetCreationTimestamp()\n\tif creationTs.IsZero() {\n\tif p.GetCreationTimestamp().Second() == 0 && p.GetCreationTimestamp().Nanosecond() == 0 {\n\tcreationTs := p.GetCreationTimestamp()\n\tif creationTs.IsZero() {\n\tif s.GetCreationTimestamp().Second() == 0 && s.GetCreationTimestamp().Nanosecond() == 0 {\n\tcreationTs := s.GetCreationTimestamp()\n\tif creationTs.IsZero() {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/ecd4d3782c4ad16baf546cfbf5f287fce234c4e1",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            3,
            5
        ]
    },
    {
        "input": "\t\tmap[string]string{\"index\": \"v1\"})\n\t\tmap[string]string{\"index\": \"v1\", \"name\": \"elasticsearch_telegraf\"})\n\t\tmap[string]string{\"index\": \"v2\"})\n\t\tmap[string]string{\"index\": \"v2\", \"name\": \"elasticsearch_telegraf\"})\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/influxdata/telegraf/commit/1775e1cdc692ae08cfad7668b02807cea3bd4ed3",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\terr := make(multiError, 0)\n\tmerr := make(multiError, 0)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/influxdata/telegraf/commit/21b488a3d3900313198e857fe5f4ea669e7825df",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            6,
            7
        ]
    },
    {
        "input": "\t\t\terr = append(err, in.(error))\n\t\t\tmerr = append(merr, in.(error))\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/influxdata/telegraf/commit/21b488a3d3900313198e857fe5f4ea669e7825df",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            5,
            7
        ]
    },
    {
        "input": "\tif len(err) > 0 {\n\tif len(merr) > 0 {\n\terr := make(multiError, 0)\n\tmerr := make(multiError, 0)\n\t\t\terr = append(err, in.(error))\n\t\t\tmerr = append(merr, in.(error))\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/influxdata/telegraf/commit/21b488a3d3900313198e857fe5f4ea669e7825df",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            5,
            6
        ]
    },
    {
        "input": "const MaxInt = int(^uint(0) >> 1)\nconst MaxInt64 = int64(^uint64(0) >> 1)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/fe4d3cd1176c7bdb5ebddb4573fc9ede1668309c",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            3
        ]
    },
    {
        "input": "\t\t\tif v <= uint64(MaxInt) {\n\t\t\tif v <= uint64(MaxInt64) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/fe4d3cd1176c7bdb5ebddb4573fc9ede1668309c",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            1,
            3
        ]
    },
    {
        "input": "\t\t\t\treturn appendIntField(buf, int64(MaxInt)), nil\n\t\t\t\treturn appendIntField(buf, int64(MaxInt64)), nil\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/fe4d3cd1176c7bdb5ebddb4573fc9ede1668309c",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            1,
            2
        ]
    },
    {
        "input": "\t\tif buf[i] == '=' && !quoted {\n\t\tif buf[i] == '=' && quotes != 1 {\n\t\t\tquotes = 0\n\t\tif buf[i] == ',' && !quoted {\n\t\tif buf[i] == ',' && quotes != 1 {\n\t\tif buf[i] == ' ' && !quoted {\n\t\tif buf[i] == ' ' && quotes != 1 {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/influxdata/telegraf/commit/a411306fba0dc87778e64392b57c844e0477df2b",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4,
            5
        ]
    },
    {
        "input": "\tgo ra.Run(&acc, make(chan struct{}))\n\tgo ra.Run(&acc, time.Now(), make(chan struct{}))\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/influxdata/telegraf/commit/573bd4aa322ebcdbf6d3caf83fe4b4938e3eda27",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5,
            6
        ]
    },
    {
        "input": "\t\tra.Run(&acc, shutdown)\n\t\tra.Run(&acc, time.Now(), shutdown)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/influxdata/telegraf/commit/573bd4aa322ebcdbf6d3caf83fe4b4938e3eda27",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            4,
            5
        ]
    },
    {
        "input": "\tlog.Printf(\"Cranking default interval, gathered %d metrics from %d plugins in %s\\n\",\n\t\tlen(bp.Points), counter, elapsed)\n\tlog.Printf(\"Cranking default (%s) interval, gathered %d metrics from %d plugins in %s\\n\",\n\t\ta.Interval, len(bp.Points), counter, elapsed)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.1,
        "commit_url": "https://github.com/influxdata/telegraf/commit/b01c28ebc6236369485bec1129e33a222c02200c",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2
        ]
    },
    {
        "input": "\t\tlog.Printf(\"Cranking separate interval, gathered %d metrics from %s in %s\\n\",\n\t\t\tlen(bp.Points), plugin.name, elapsed)\n\t\tlog.Printf(\"Cranking separate (%s) interval, gathered %d metrics from %s in %s\\n\",\n\t\t\tplugin.config.Interval, len(bp.Points), plugin.name, elapsed)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.1,
        "commit_url": "https://github.com/influxdata/telegraf/commit/b01c28ebc6236369485bec1129e33a222c02200c",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0,
            2
        ]
    },
    {
        "input": "\tif ag.Debug {\n\t\tlog.Printf(\"Debug: enabled\")\n\t\tlog.Printf(\"Agent Config: Interval:%s, Debug:%#v, Hostname:%#v, \"+\n\t\t\t\"Precision:%#v, UTC: %#v\\n\",\n\t\t\tag.Interval, ag.Debug, ag.Hostname, ag.Precision, ag.UTC)\n\t}\n\tlog.Printf(\"Agent Config: Interval:%s, Debug:%#v, Hostname:%#v, \"+\n\t\t\"Precision:%#v, UTC: %#v\\n\",\n\t\tag.Interval, ag.Debug, ag.Hostname, ag.Precision, ag.UTC)\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/b01c28ebc6236369485bec1129e33a222c02200c",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            1
        ]
    },
    {
        "input": "\tlist, err := s.dockerClient.ListContainers(opts)\n\tcontainers, err := s.dockerClient.ListContainers(opts)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/12420db4b9e166c099b1ed8c981f56b06fad796a",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\tfor _, cont := range list {\n\t\tctu, err := docker.CgroupCPUDocker(cont.ID)\n\tfor _, container := range containers {\n\t\tctu, err := docker.CgroupCPUDocker(container.ID)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8333333333333334,
        "commit_url": "https://github.com/influxdata/telegraf/commit/12420db4b9e166c099b1ed8c981f56b06fad796a",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2,
            4,
            5,
            6,
            7
        ]
    },
    {
        "input": "\t\tmem, err := docker.CgroupMemDocker(cont.ID)\n\t\tmem, err := docker.CgroupMemDocker(container.ID)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/12420db4b9e166c099b1ed8c981f56b06fad796a",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            3,
            5,
            6,
            7
        ]
    },
    {
        "input": "\t\tname := strings.Join(cont.Names, \" \")\n\t\tname := strings.Join(container.Names, \" \")\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/12420db4b9e166c099b1ed8c981f56b06fad796a",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            3,
            4,
            6,
            7
        ]
    },
    {
        "input": "\t\t\tId:      cont.ID,\n\t\t\tId:      container.ID,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/12420db4b9e166c099b1ed8c981f56b06fad796a",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            7
        ]
    },
    {
        "input": "\t\t\tCommand: cont.Command,\n\t\t\tCommand: container.Command,\n\t\t\tLabels:  container.Labels,\n\tfor _, cont := range list {\n\t\tctu, err := docker.CgroupCPUDocker(cont.ID)\n\tfor _, container := range containers {\n\t\tctu, err := docker.CgroupCPUDocker(container.ID)\n\t\tmem, err := docker.CgroupMemDocker(cont.ID)\n\t\tmem, err := docker.CgroupMemDocker(container.ID)\n\t\tname := strings.Join(cont.Names, \" \")\n\t\tname := strings.Join(container.Names, \" \")\n\t\t\tId:      cont.ID,\n\t\t\tId:      container.ID,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/influxdata/telegraf/commit/12420db4b9e166c099b1ed8c981f56b06fad796a",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            6
        ]
    },
    {
        "input": "\t\treturn nil, err\n\t\treturn err\n\t\treturn nil, err\n\t\treturn err\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/influxdata/telegraf/commit/609cba2cd5732fa193655d5ebd61d8ac51f7b633",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\t\tif err := newConfigFile(); err != nil {\n\t\tpath := ko.Strings(\"config\")[0]\n\t\tif err := newConfigFile(path); err != nil {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/knadh/listmonk/commit/5e2c24b6620b1275e6e262ef075f200cb3b93e50",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "\t\treturn nil, fmt.Errorf(\"error reading i18n language file: %v\", err)\n\t\treturn i, true, fmt.Errorf(\"error reading i18n language file: %s: %v\", lang, err)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.1,
        "commit_url": "https://github.com/knadh/listmonk/commit/c479a90c4234244b21026145351c69f11de384db",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            3,
            5
        ]
    },
    {
        "input": "\t\treturn nil, fmt.Errorf(\"error loading i18n language file: %v\", err)\n\t\treturn i, true, fmt.Errorf(\"error loading i18n language file: %s: %v\", lang, err)\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.1,
        "commit_url": "https://github.com/knadh/listmonk/commit/c479a90c4234244b21026145351c69f11de384db",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            3,
            4
        ]
    },
    {
        "input": "func initFS(staticDir string) stuffbin.FileSystem {\nfunc initFS(staticDir, i18nDir string) stuffbin.FileSystem {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/knadh/listmonk/commit/c479a90c4234244b21026145351c69f11de384db",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            13,
            14
        ]
    },
    {
        "input": "\tfs := initFS(\"\")\n\tfs := initFS(\"\", \"\")\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/knadh/listmonk/commit/c479a90c4234244b21026145351c69f11de384db",
        "target_edit_idx": 13,
        "propagatable_edit_idx": [
            8,
            14
        ]
    },
    {
        "input": "\tfs = initFS(ko.String(\"static-dir\"))\n\tfs = initFS(ko.String(\"static-dir\"), ko.String(\"i18n-dir\"))\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/knadh/listmonk/commit/c479a90c4234244b21026145351c69f11de384db",
        "target_edit_idx": 14,
        "propagatable_edit_idx": [
            8,
            13
        ]
    },
    {
        "input": "\tif err = exec.Command(\"route\", \"-n\", \"add\", \"-net\", c.Cidr.String(), \"-interface\", c.Device).Run(); err != nil {\n\tif err = exec.Command(\"/sbin/route\", \"-n\", \"add\", \"-net\", c.Cidr.String(), \"-interface\", c.Device).Run(); err != nil {\n\t\tif err = exec.Command(\"route\", \"-n\", \"add\", \"-net\", r.route.String(), \"-interface\", c.Device).Run(); err != nil {\n\t\tif err = exec.Command(\"/sbin/route\", \"-n\", \"add\", \"-net\", r.route.String(), \"-interface\", c.Device).Run(); err != nil {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/slackhq/nebula/commit/df69371620ef8fdf0fc4693274f9b524c8250d0e",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "                            format(\"Catalog \\\"%s\\\" does not support custom partitioning and cannot be used as a partitioning provider\", partitioningProviderCatalog),\n                            format(\n                                    \"Catalog \\\"%s\\\" cannot be used as a partitioning provider: %s\",\n                                    partitioningProviderCatalog,\n                                    e.getMessage()),\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/3a92b67b1610ed58d220a9cc47b9bb9ab42bdd74",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "            stage.transitionToSchedulingSplits();\n            stage.transitionToFinishedTaskScheduling();\n        stage.transitionToSchedulingSplits();\n        stage.transitionToFinishedTaskScheduling();\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/e86a7e12de367c11eba0b873a775ba35f70297e4",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "            SymbolMapper mapper = new SymbolMapper(mapping.entrySet().stream()\n                    .collect(toImmutableMap(entry -> new Symbol(entry.getKey()), entry -> new Symbol(entry.getValue()))));\n            SymbolMapper mapper = new SymbolMapper(mapping);\n            SymbolMapper mapper = new SymbolMapper(mapping.entrySet().stream()\n                    .collect(toImmutableMap(entry -> new Symbol(entry.getKey()), entry -> new Symbol(entry.getValue()))));\n            SymbolMapper mapper = new SymbolMapper(mapping);\n            SymbolMapper mapper = new SymbolMapper(mapping.entrySet().stream()\n                    .collect(toImmutableMap(entry -> new Symbol(entry.getKey()), entry -> new Symbol(entry.getValue()))));\n            SymbolMapper mapper = new SymbolMapper(mapping);\n            SymbolMapper mapper = new SymbolMapper(mapping.entrySet().stream()\n                    .collect(toImmutableMap(entry -> new Symbol(entry.getKey()), entry -> new Symbol(entry.getValue()))));\n            SymbolMapper mapper = new SymbolMapper(mapping);\n            SymbolMapper mapper = new SymbolMapper(mapping.entrySet().stream()\n                    .collect(toImmutableMap(entry -> new Symbol(entry.getKey()), entry -> new Symbol(entry.getValue()))));\n            SymbolMapper mapper = new SymbolMapper(mapping);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/a2b385f963d9dc5bfe9c8fbec1e6602794e2396f",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            11,
            12,
            13,
            14
        ]
    },
    {
        "input": "            completeInfo = completeInfo && stageInfo.isCompleteInfo();\n            completeInfo = completeInfo && stageInfo.isFinalStageInfo();\n        boolean completeInfo = getAllStages(rootStage).stream().allMatch(StageInfo::isCompleteInfo);\n        boolean completeInfo = getAllStages(rootStage).stream().allMatch(StageInfo::isFinalStageInfo);\n        checkArgument(stageInfo.isCompleteInfo(), \"finalTaskInfos are not all done\");\n        checkArgument(stageInfo.isFinalStageInfo(), \"finalTaskInfos are not all done\");\n        assertTrue(stageInfo.isCompleteInfo());\n        assertTrue(stageInfo.isFinalStageInfo());\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/prestodb/presto/commit/9b128b02790be80a7496185d64de056cd395fbd7",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0,
            3,
            4
        ]
    },
    {
        "input": "        checkArgument(stageInfo.isCompleteInfo(), \"finalTaskInfos are not all done\");\n        checkArgument(stageInfo.isFinalStageInfo(), \"finalTaskInfos are not all done\");\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/prestodb/presto/commit/9b128b02790be80a7496185d64de056cd395fbd7",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            4
        ]
    },
    {
        "input": "            BucketBalancerConfig config,\n            BucketBalancerConfig balancerConfig,\n            MetadataConfig metadataConfig,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/c1e9c8654e14be7f51ffc4a0ad778cb06875f492",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "        return analyzeExpressionsWithSymbols(session, metadata, sqlParser, types, expressions, parameters, warningCollector, isDescribe).getExpressionTypes();\n        return analyzeExpressions(session, metadata, sqlParser, types, expressions, parameters, warningCollector, isDescribe).getExpressionTypes();\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/e2085d79d270b7d5c99f396d847f963df3e04225",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3
        ]
    },
    {
        "input": "            try (Connection connection = createConnection(\"blackhole\", \"default\");\n            try (Connection connection = createConnection(\"blackhole\", \"blackhole\");\n        try (Connection connection = createConnection(\"blackhole\", \"default\");\n        try (Connection connection = createConnection(\"blackhole\", \"blackhole\");\n        try (Connection connection = createConnection(\"blackhole\", \"default\");\n        try (Connection connection = createConnection(\"blackhole\", \"blackhole\");\n            try (Connection connection = createConnection(\"blackhole\", \"default\");\n            try (Connection connection = createConnection(\"blackhole\", \"blackhole\");\n        try (Connection connection = createConnection(\"blackhole\", \"default\");\n        try (Connection connection = createConnection(\"blackhole\", \"blackhole\");\n        try (Connection connection = createConnection(\"blackhole\", \"default\");\n        try (Connection connection = createConnection(\"blackhole\", \"blackhole\");\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.07142857142857142,
        "commit_url": "https://github.com/prestodb/presto/commit/2bb9a017cbfc2eebb6aefce375d2e432ee353e28",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8,
            9,
            10,
            11,
            12
        ]
    },
    {
        "input": "                ExchangeNode exchangeNode = partitionedExchange(\n                ExchangeNode exchangeNode = systemPartitionedExchange(\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/e170666c79343883a7d470747d49eb35e86d7854",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            8,
            9
        ]
    },
    {
        "input": "        ExchangeNode remoteExchange1 = partitionedExchange(new PlanNodeId(\"re1\"), REMOTE, ts1, ImmutableList.of(new Symbol(\"orderkey\")), Optional.empty());\n        ExchangeNode remoteExchange2 = partitionedExchange(new PlanNodeId(\"re2\"), REMOTE, ts2, ImmutableList.of(new Symbol(\"orderkey_0\")), Optional.empty());\n        ExchangeNode localExchange = partitionedExchange(new PlanNodeId(\"le\"), LOCAL, remoteExchange2, ImmutableList.of(new Symbol(\"orderkey_0\")), Optional.empty());\n        ExchangeNode remoteExchange1 = systemPartitionedExchange(new PlanNodeId(\"re1\"), REMOTE, ts1, ImmutableList.of(new Symbol(\"orderkey\")), Optional.empty());\n        ExchangeNode remoteExchange2 = systemPartitionedExchange(new PlanNodeId(\"re2\"), REMOTE, ts2, ImmutableList.of(new Symbol(\"orderkey_0\")), Optional.empty());\n        ExchangeNode localExchange = systemPartitionedExchange(new PlanNodeId(\"le\"), LOCAL, remoteExchange2, ImmutableList.of(new Symbol(\"orderkey_0\")), Optional.empty());\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/e170666c79343883a7d470747d49eb35e86d7854",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            2,
            3,
            4,
            5,
            9
        ]
    },
    {
        "input": "        StageInfo stageInfo = stateMachine.getStageInfo(ImmutableList::of, ImmutableList::of);\n        StageInfo stageInfo = stateMachine.getStageInfo(ImmutableList::of);\n    public StageInfo getStageInfo(Supplier> taskInfosSupplier, Supplier> subStageInfosSupplier)\n    public StageInfo getStageInfo(Supplier> taskInfosSupplier)\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/cfe7c42728a3364462da465bb5e613f703128a85",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "            session.getTransactionId().ifPresent(autoCommit ? transactionManager::asyncAbort : transactionManager::fail);\n            session.getTransactionId().ifPresent(transactionId -> {\n                if (transactionManager.isAutoCommit(transactionId)) {\n                    transactionManager.asyncAbort(transactionId);\n                }\n                else {\n                    transactionManager.fail(transactionId);\n                }\n            });\n            session.getTransactionId().ifPresent(autoCommit ? transactionManager::asyncAbort : transactionManager::fail);\n            session.getTransactionId().ifPresent(transactionId -> {\n                if (transactionManager.isAutoCommit(transactionId)) {\n                    transactionManager.asyncAbort(transactionId);\n                }\n                else {\n                    transactionManager.fail(transactionId);\n                }\n            });\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/bcf0324f5357dda8e79d2e30e816fdf39dde5d7b",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "            if (!canSkipHashGeneration(node.getDistinctSymbols())) {\n            if (canSkipHashGeneration(node.getDistinctSymbols())) {\n            if (!canSkipHashGeneration(node.getDistinctSymbols())) {\n            if (canSkipHashGeneration(node.getDistinctSymbols())) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/032575a1f2d47de2cc034716de645ce3c1b14281",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "import java.util.List;\nimport java.util.List;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/prestodb/presto/commit/592f4559610a2560dc18ebc02aeb447ef9f6039c",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "import static com.google.common.base.MoreObjects.toStringHelper;\nimport static com.google.common.base.MoreObjects.toStringHelper;\nimport static java.lang.String.format;\nimport static com.google.common.base.MoreObjects.toStringHelper;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/05e14b7f5a828b31f6cc9d92b6262600ee59e108",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2,
            4
        ]
    },
    {
        "input": "        for (int groupId = 0; groupId < groupingSetOrdinals.size(); groupId++) {\n            assertEquals(calculateGrouping(groupId, groupingOrdinals, groupingSetOrdinals), 7L);\n        for (Set groupingSet : groupingSetOrdinals) {\n            assertEquals(calculateGrouping(groupingSet, groupingOrdinals), 7L);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/c134f2f46810a6d27826d24d842f47e7b8756758",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            1,
            4,
            7,
            8,
            9
        ]
    },
    {
        "input": "        for (int groupId = 0; groupId < groupingSetOrdinals.size(); groupId++) {\n            assertEquals(calculateGrouping(groupId, groupingOrdinals, groupingSetOrdinals), 0L);\n        for (Set groupingSet : groupingSetOrdinals) {\n            assertEquals(calculateGrouping(groupingSet, groupingOrdinals), 0L);\n                    .map(groupingSets::indexOf)\n                    .map(groupId -> String.valueOf(calculateGrouping(groupId, columns, groupingSets)))\n                    .map(groupingSet -> String.valueOf(calculateGrouping(groupingSet, columns)))\n    static long calculateGrouping(long groupId, List columns, List> groupingSetDescriptors)\n    static long calculateGrouping(Set groupingSet, List columns)\n        for (int groupId = 0; groupId < groupingSetOrdinals.size(); groupId++) {\n            assertEquals(calculateGrouping(groupId, groupingOrdinals, groupingSetOrdinals), 7L);\n        for (Set groupingSet : groupingSetOrdinals) {\n            assertEquals(calculateGrouping(groupingSet, groupingOrdinals), 7L);\n            assertEquals(Long.valueOf(calculateGrouping(groupId, groupingOrdinals, groupingSetOrdinals)), expectedResults.get(groupId));\n            Set groupingSet = groupingSetOrdinals.get(groupId);\n            assertEquals(Long.valueOf(calculateGrouping(groupingSet, groupingOrdinals)), expectedResults.get(groupId));\n            assertEquals(Long.valueOf(calculateGrouping(groupId, fortyIntegers, groupingSetOrdinals)), expectedResults.get(groupId));\n            Set groupingSet = groupingSetOrdinals.get(groupId);\n            assertEquals(Long.valueOf(calculateGrouping(groupingSet, fortyIntegers)), expectedResults.get(groupId));\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/c134f2f46810a6d27826d24d842f47e7b8756758",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            1,
            4,
            6,
            8,
            9
        ]
    },
    {
        "input": "            assertEquals(Long.valueOf(calculateGrouping(groupId, groupingOrdinals, groupingSetOrdinals)), expectedResults.get(groupId));\n            Set groupingSet = groupingSetOrdinals.get(groupId);\n            assertEquals(Long.valueOf(calculateGrouping(groupingSet, groupingOrdinals)), expectedResults.get(groupId));\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/c134f2f46810a6d27826d24d842f47e7b8756758",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            1,
            4,
            6,
            7,
            9
        ]
    },
    {
        "input": "            assertEquals(Long.valueOf(calculateGrouping(groupId, fortyIntegers, groupingSetOrdinals)), expectedResults.get(groupId));\n            Set groupingSet = groupingSetOrdinals.get(groupId);\n            assertEquals(Long.valueOf(calculateGrouping(groupingSet, fortyIntegers)), expectedResults.get(groupId));\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/c134f2f46810a6d27826d24d842f47e7b8756758",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            1,
            4,
            6,
            7,
            8
        ]
    },
    {
        "input": "import static com.facebook.presto.spi.StandardErrorCode.QUERY_TOO_MANY_STAGES;\nimport static com.facebook.presto.spi.StandardErrorCode.QUERY_HAS_TOO_MANY_STAGES;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/85013d8a135c8ce2097392101fc56268e3f0f54c",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2
        ]
    },
    {
        "input": "    public synchronized void process(Iterable queries)\n    public synchronized void process(Iterable runningQueries)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/3cf24e9e9b698be4658e0ce5100ab976629d2492",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12
        ]
    },
    {
        "input": "        for (QueryExecution query : queries) {\n        for (QueryExecution query : runningQueries) {\n    public synchronized void process(Iterable queries)\n    public synchronized void process(Iterable runningQueries)\n        for (QueryExecution query : queries) {\n        for (QueryExecution query : runningQueries) {\n                callOomKiller(queries);\n                callOomKiller(runningQueries);\n        updateNodes(updateAssignments(queries));\n        updateNodes(updateAssignments(runningQueries));\n    private synchronized void callOomKiller(Iterable queries)\n    private synchronized void callOomKiller(Iterable runningQueries)\n        List queryMemoryInfoList = Streams.stream(queries)\n        List queryMemoryInfoList = Streams.stream(runningQueries)\n            Optional chosenQuery = Streams.stream(queries).filter(query -> chosenQueryId.get().equals(query.getQueryId())).collect(toOptional());\n            Optional chosenQuery = Streams.stream(runningQueries).filter(query -> chosenQueryId.get().equals(query.getQueryId())).collect(toOptional());\n    Optional chooseQueryToKill(List queries, List nodes);\n    Optional chooseQueryToKill(List runningQueries, List nodes);\n    public Optional chooseQueryToKill(List queries, List nodes)\n    public Optional chooseQueryToKill(List runningQueries, List nodes)\n    public Optional chooseQueryToKill(List queries, List nodes)\n    public Optional chooseQueryToKill(List runningQueries, List nodes)\n        for (QueryMemoryInfo query : queries) {\n        for (QueryMemoryInfo query : runningQueries) {\n    public Optional chooseQueryToKill(List queries, List nodes)\n    public Optional chooseQueryToKill(List runningQueries, List nodes)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/3cf24e9e9b698be4658e0ce5100ab976629d2492",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12
        ]
    },
    {
        "input": "                .setCreatesOfNonManagedTablesEnabled(true));\n                .setCreatesOfNonManagedTablesEnabled(true)\n                .setHdfsWireEncryptionEnabled(false));\n                .setCreatesOfNonManagedTablesEnabled(false);\n                .setCreatesOfNonManagedTablesEnabled(false)\n                .setHdfsWireEncryptionEnabled(true);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/prestodb/presto/commit/4c8602504be07fe0ae8a67088f40bf11cbb6ff5f",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "        return buffer.size() + size;\n        return buffer.estimateOutputDataSize() + size;\n        return buffer.size();\n        return buffer.estimateOutputDataSize();\n        return buffer.size();\n        return buffer.estimateOutputDataSize();\n        return buffer.size();\n        return buffer.estimateOutputDataSize();\n        return buffer.size();\n        return buffer.estimateOutputDataSize();\n        return buffer.size();\n        return buffer.estimateOutputDataSize();\n        return buffer.size() + (Long.BYTES * size);\n        return buffer.estimateOutputDataSize() + (Long.BYTES * size);\n        return buffer.size() + (Long.BYTES * numLiterals);\n        return buffer.estimateOutputDataSize() + (Long.BYTES * numLiterals);\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/72cd069e1d71ea861a45113fb71ce820b9c1ea9f",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            1,
            3,
            4,
            5,
            6,
            7,
            8
        ]
    },
    {
        "input": "        return buffer.size();\n        return buffer.estimateOutputDataSize();\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.4166666666666667,
        "commit_url": "https://github.com/prestodb/presto/commit/72cd069e1d71ea861a45113fb71ce820b9c1ea9f",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            5,
            6,
            7,
            8
        ]
    },
    {
        "input": "        return buffer.size() + (Long.BYTES * numLiterals);\n        return buffer.estimateOutputDataSize() + (Long.BYTES * numLiterals);\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/prestodb/presto/commit/72cd069e1d71ea861a45113fb71ce820b9c1ea9f",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            5,
            6,
            7
        ]
    },
    {
        "input": "    Map> getPartitionColumnStatistics(String databaseName, String tableName, List columnNames, List partitionValues)\n    Map> getPartitionColumnStatistics(String databaseName, String tableName, List partitionNames, List columnNames)\n    public Map> getPartitionColumnStatistics(String databaseName, String tableName, List columnNames, List partitionValues)\n    public Map> getPartitionColumnStatistics(String databaseName, String tableName, List partitionNames, List columnNames)\n    public Map> getPartitionColumnStatistics(String databaseName, String tableName, List columnNames, List partitionValues)\n    public Map> getPartitionColumnStatistics(String databaseName, String tableName, List partitionNames, List columnNames)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/prestodb/presto/commit/6efaa261a643a8ed1059b1adb4a6f902789a462e",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            3,
            5
        ]
    },
    {
        "input": "     * @return the system memory used so far in table read\n     * @return the memory used so far in table read\n     * @return the system memory used so far in table read\n     * @return the memory used so far in table read\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/b2085eed20749a84eb31548e6ecc181892fda059",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // Tpch connector currently does not support create table\n    }\n\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // Cassandra connector currently does not support create table\n    }\n\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // Kafka connector currently does not support create table\n    }\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // Mysql connector currently does not support create table\n    }\n\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // PostgreSQL connector currently does not support create table\n    }\n\n\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // Redis connector currently does not support create table\n    }\n\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // Redis connector currently does not support create table\n    }\n\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // Tpch connector currently does not support create table\n    }\n\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // Tpch connector currently does not support create table\n    }\n\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // Local connector currently does not support create table\n    }\n\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // Tpch connector currently does not support create table\n    }\n\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // Local connector currently does not support create table\n    }\n\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // Tpch connector currently does not support create table\n    }\n\n    @Override\n    public void testShowTablesLikeWithEscape()\n    {\n        // Thrift connector currently does not support create table\n    }\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6470588235294118,
        "commit_url": "https://github.com/prestodb/presto/commit/349ece155af66abc38f149a8903b2b6b3a7fcdd8",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            5,
            6,
            8,
            9,
            10,
            11,
            12,
            13,
            14
        ]
    },
    {
        "input": "                    registry,\n                    preGeneratedExpressions);\n                    registry);\n                    registry,\n                    preGeneratedExpressions);\n                    registry);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/e4e97d97a6368e31cdb813975efebd7b8d0c6f52",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "        return memoryManager.isFull();\n        return memoryManager.isOverutilized();\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/e562d1eb813b3876102ab53aceb119b2e4905845",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "            TableLayout layout = getLayout(showPartitions, showPartitions.getTable(), showPartitions.getWhere())\n                    .orElseThrow(() -> new SemanticException(NOT_SUPPORTED, showPartitions, \"Could not find layout for table: %s\", table));\n            TableLayout layout = getLayoutFromFilterScanQuery(showPartitions, showPartitions.getTable(), showPartitions.getWhere())\n                    .orElseGet(() -> getLayoutWithoutPartitionsFromMetadata(showPartitions, showPartitions.getTable(), tableHandle));\n        private Optional getLayout(Node node, QualifiedName tableName, Optional where)\n        private Optional getLayoutFromFilterScanQuery(Node node, QualifiedName tableName, Optional where)\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/f2b7f88404f5d87ef016372de508b96800cf4482",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "    public static Block remove(\n    public Block remove(\n    public static Block remove(\n    public Block remove(\n    public static Block remove(\n    public Block remove(\n    public static Block remove(\n    public Block remove(\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/fa175379988ef538dc204ece2a93a139c6219bf9",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5,
            6,
            7
        ]
    },
    {
        "input": "        assertPlanWithOptimizerFiltering(\n        assertPlan(\n        assertPlanWithOptimizerFiltering(\n        assertPlan(\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/6942e9b8831c65a26562d3d5abfd4f94d3d81e20",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "                if (trackedObjects.decrementReference(object) == 0) {\n                if (trackedObjects.decrementAndGet(object) == 0) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/ef54384da315f803f08dd8cd617349a54da0cff8",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "    public int decrementReference(Object key)\n    public int decrementAndGet(Object key)\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/ef54384da315f803f08dd8cd617349a54da0cff8",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0
        ]
    },
    {
        "input": "    public HdfsConfigurationUpdater(HiveClientConfig hiveClientConfig, S3ConfigurationUpdater s3ConfigurationUpdater)\n    public HdfsConfigurationUpdater(HiveClientConfig config, S3ConfigurationUpdater s3ConfigurationUpdater)\n        HiveClientConfig hiveClientConfig = new HiveClientConfig();\n        HiveClientConfig config = new HiveClientConfig();\n            hiveClientConfig.setMetastoreSocksProxy(HostAndPort.fromString(proxy));\n            config.setMetastoreSocksProxy(HostAndPort.fromString(proxy));\n        HiveCluster hiveCluster = new TestingHiveCluster(hiveClientConfig, host, port);\n        HiveCluster hiveCluster = new TestingHiveCluster(config, host, port);\n        HdfsConfiguration hdfsConfiguration = new HiveHdfsConfiguration(new HdfsConfigurationUpdater(hiveClientConfig, s3Config));\n        HivePartitionManager hivePartitionManager = new HivePartitionManager(connectorId, TYPE_MANAGER, hiveClientConfig);\n        HdfsConfiguration hdfsConfiguration = new HiveHdfsConfiguration(new HdfsConfigurationUpdater(config, s3Config));\n        HivePartitionManager hivePartitionManager = new HivePartitionManager(connectorId, TYPE_MANAGER, config);\n        hdfsEnvironment = new HdfsEnvironment(hdfsConfiguration, hiveClientConfig, new NoHdfsAuthentication());\n        hdfsEnvironment = new HdfsEnvironment(hdfsConfiguration, config, new NoHdfsAuthentication());\n                new BoundedExecutor(executor, hiveClientConfig.getMaxSplitIteratorThreads()),\n                new BoundedExecutor(executor, config.getMaxSplitIteratorThreads()),\n                hiveClientConfig.getMaxOutstandingSplits(),\n                hiveClientConfig.getMinPartitionBatchSize(),\n                hiveClientConfig.getMaxPartitionBatchSize(),\n                hiveClientConfig.getMaxInitialSplits(),\n                hiveClientConfig.getRecursiveDirWalkerEnabled());\n                config.getMaxOutstandingSplits(),\n                config.getMinPartitionBatchSize(),\n                config.getMaxPartitionBatchSize(),\n                config.getMaxInitialSplits(),\n                config.getRecursiveDirWalkerEnabled());\n                getDefaultHiveFileWriterFactories(hiveClientConfig),\n                getDefaultHiveFileWriterFactories(config),\n                new HiveSessionProperties(hiveClientConfig));\n        pageSourceProvider = new HivePageSourceProvider(hiveClientConfig, hdfsEnvironment, getDefaultHiveRecordCursorProvider(hiveClientConfig), getDefaultHiveDataStreamFactories(hiveClientConfig), TYPE_MANAGER);\n                new HiveSessionProperties(config));\n        pageSourceProvider = new HivePageSourceProvider(config, hdfsEnvironment, getDefaultHiveRecordCursorProvider(config), getDefaultHiveDataStreamFactories(config), TYPE_MANAGER);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/8766ebd3a8d70e9ff73ecf723325fd53e6b82eaa",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2,
            3,
            4,
            5,
            6,
            9,
            10,
            11,
            12
        ]
    },
    {
        "input": "                hiveClientConfig,\n                config,\n                hiveClientConfig,\n                config,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/8766ebd3a8d70e9ff73ecf723325fd53e6b82eaa",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "        addStatsListener(queryExecution);\n        addStatsListeners(queryExecution);\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/dd60f3ea04eba012a6b16a0becbf092ba1e7610a",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "                        LateralJoinNode.Type.INNER),\n                        LateralJoinNode.Type.INNER,\n                        query),\n                    LateralJoinNode.Type.INNER);\n                    LateralJoinNode.Type.INNER,\n                    node.getOriginSubquery());\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/5fe1fbf3e97d9852397c8ab2b27a361097712886",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "import static com.facebook.presto.hive.HiveErrorCode.HIVE_METASTORE_ERROR;\nimport static com.facebook.presto.hive.HiveErrorCode.HIVE_PARTITION_DROPPED_DURING_QUERY;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/b9255006fbdc0ad650760b2d24bcc9e5da35a83e",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "    static int getSliceArrayRetainedSizeInBytes(Slice[] values)\n    private static int getSliceArrayRetainedSizeInBytes(Slice[] values, boolean valueSlicesAreDistinct)\n    {\n        if (valueSlicesAreDistinct) {\n            return getDistinctSliceArrayRetainedSize(values);\n        }\n        return getSliceArrayRetainedSizeInBytes(values);\n    }\n\n    // when the slices are not distinct we need to do reference counting to calculate the total retained size\n    private static int getSliceArrayRetainedSizeInBytes(Slice[] values)\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/08e7fa36f53e4880536a70ce383ead5bb0d76429",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "import com.facebook.presto.ExceededMemoryLimitException;\nimport com.facebook.presto.ExceededMemoryLimitException;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/9b1691e9845b40b318e1857439de08c5a1542fab",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "import com.facebook.presto.spi.PrestoException;\nimport com.facebook.presto.spi.PrestoException;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/9b1691e9845b40b318e1857439de08c5a1542fab",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "import static com.facebook.presto.spi.StandardErrorCode.INVALID_FUNCTION_ARGUMENT;\nimport static com.facebook.presto.spi.StandardErrorCode.INVALID_FUNCTION_ARGUMENT;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/9b1691e9845b40b318e1857439de08c5a1542fab",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "import static java.lang.String.format;\nimport static java.lang.String.format;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/9b1691e9845b40b318e1857439de08c5a1542fab",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "        try {\n            pairs.add(key, value, position, position);\n        }\n        catch (ExceededMemoryLimitException e) {\n            throw new PrestoException(INVALID_FUNCTION_ARGUMENT, format(\"The result of map_agg may not exceed %s\", e.getMaxMemory()));\n        }\n        pairs.add(key, value, position, position);\n        try {\n            pairs.add(key, value, position, position);\n        }\n        catch (ExceededMemoryLimitException e) {\n            throw new PrestoException(INVALID_FUNCTION_ARGUMENT, format(\"The result of map_agg may not exceed %s\", e.getMaxMemory()));\n        }\n        pairs.add(key, value, position, position);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/9b1691e9845b40b318e1857439de08c5a1542fab",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "                try {\n                    pairs.add(keys, values, i, i);\n                }\n                catch (ExceededMemoryLimitException e) {\n                    throw new PrestoException(INVALID_FUNCTION_ARGUMENT, format(\"The result of map_agg may not exceed %s\", e.getMaxMemory()));\n                }\n                pairs.add(keys, values, i, i);\n                try {\n                    pairs.add(keys, values, i, i);\n                }\n                catch (ExceededMemoryLimitException e) {\n                    throw new PrestoException(INVALID_FUNCTION_ARGUMENT, format(\"The result of map_agg may not exceed %s\", e.getMaxMemory()));\n                }\n                pairs.add(keys, values, i, i);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/9b1691e9845b40b318e1857439de08c5a1542fab",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "        assertEquals(rootAX.getWaitingQueuedQueries(), 0);\n        assertEquals(rootAY.getWaitingQueuedQueries(), 0);\n        assertEquals(rootAX.getWaitingQueuedQueries(), 6);\n        assertEquals(rootAY.getWaitingQueuedQueries(), 6);\n        assertEquals(rootBX.getWaitingQueuedQueries(), 0);\n        assertEquals(rootBY.getWaitingQueuedQueries(), 0);\n        assertEquals(rootBX.getWaitingQueuedQueries(), 6);\n        assertEquals(rootBY.getWaitingQueuedQueries(), 6);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/prestodb/presto/commit/2ef1fcbc101655a2424086861815b1e8ec10bc4d",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "        private String fastInequalityJoin;\n        private String fastInequalityJoins;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/340988cf8fb3af2c0439ec8d74567e847ac240de",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "            groups.add(group0);\n            groups.add(ImmutableList.copyOf(group0));\n            groups.add(group1);\n            groups.add(ImmutableList.copyOf(group1));\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/prestodb/presto/commit/fe9f465133d31fd2d7dba3b2bc88d58361ae4db7",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "                                new ExistsPredicate(simpleQuery(selectList(new LongLiteral(\"1\")))),\n                                new ExistsPredicate(simpleQuery(selectList(new LongLiteral(\"2\"))))))));\n                                exists(simpleQuery(selectList(new LongLiteral(\"1\")))),\n                                exists(simpleQuery(selectList(new LongLiteral(\"2\"))))))));\n                                                new ExistsPredicate(simpleQuery(selectList(new LongLiteral(\"1\")))),\n                                                new ExistsPredicate(simpleQuery(selectList(new LongLiteral(\"2\")))))))));\n                                                exists(simpleQuery(selectList(new LongLiteral(\"1\")))),\n                                                exists(simpleQuery(selectList(new LongLiteral(\"2\")))))))));\n                                        new NotExpression(new ExistsPredicate(simpleQuery(selectList(new LongLiteral(\"1\"))))),\n                                        new ExistsPredicate(simpleQuery(selectList(new LongLiteral(\"2\"))))))));\n                                        new NotExpression(exists(simpleQuery(selectList(new LongLiteral(\"1\"))))),\n                                        exists(simpleQuery(selectList(new LongLiteral(\"2\"))))))));\n    }\n\n    private static ExistsPredicate exists(Query query)\n    {\n        return new ExistsPredicate(new SubqueryExpression(query));\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/prestodb/presto/commit/6c4a2791119cda59faa284af5397706b42cdcf04",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            11,
            12
        ]
    },
    {
        "input": "        QuantifiedComparisonExpression subqueryQuantifiedComparison = new QuantifiedComparisonExpression(\n\n        checkState(quantifiedComparison.getSubquery() instanceof SubqueryExpression);\n        SubqueryExpression quantifiedSubquery = (SubqueryExpression) quantifiedComparison.getSubquery();\n\n        SubqueryExpression uncoercedQuantifiedSubquery = uncoercedSubquery(quantifiedSubquery);\n        PlanBuilder subqueryPlan = createPlanBuilder(uncoercedQuantifiedSubquery);\n        subqueryPlan = subqueryPlan.appendProjections(ImmutableList.of(quantifiedSubquery), symbolAllocator, idAllocator);\n\n        QuantifiedComparisonExpression coercedQuantifiedComparison = new QuantifiedComparisonExpression(\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/4faa4fb3e9dd8f8536bfd429842ac25f00922e07",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            3
        ]
    },
    {
        "input": "                Assignments.of(subqueryQuantifiedComparisonSymbol, subqueryQuantifiedComparison),\n                Assignments.of(coercedQuantifiedComparisonSymbol, coercedQuantifiedComparison),\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/prestodb/presto/commit/4faa4fb3e9dd8f8536bfd429842ac25f00922e07",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            1,
            2
        ]
    },
    {
        "input": "                                                node(EnforceSingleRowNode.class,\n                                                        node(AggregationNode.class,\n                                                                anyTree(\n                                                                        node(ValuesNode.class)))).withSymbol(\"min\", \"MIN\").withSymbol(\"max\", \"MAX\")\n                                        )))));\n                                                node(AggregationNode.class,\n                                                        anyTree(\n                                                                node(ValuesNode.class)))).withSymbol(\"min\", \"MIN\").withSymbol(\"max\", \"MAX\")\n                                ))));\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/f065b55f528a5cd3950f682639b7adfc8f34ed7d",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8,
            9,
            5,
            7
        ]
    },
    {
        "input": "                        anyTree(\n                                node(AggregationNode.class,\n                                        node(ValuesNode.class)))))\n                        node(AggregationNode.class,\n                                node(ValuesNode.class))))\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/f065b55f528a5cd3950f682639b7adfc8f34ed7d",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8,
            9,
            5,
            6
        ]
    },
    {
        "input": "                                        node(EnforceSingleRowNode.class,\n                                                node(AggregationNode.class,\n                                                        anyTree(\n                                                                node(ValuesNode.class))).withSymbol(function, functionAlias)\n                                        ))))));\n                                        node(AggregationNode.class,\n                                                anyTree(\n                                                        node(ValuesNode.class))).withSymbol(function, functionAlias)\n                                )))));\n                                node(EnforceSingleRowNode.class,\n                                        node(AggregationNode.class,\n                                                node(ValuesNode.class)).withSymbol(function, functionAlias)\n                                )))));\n                                node(AggregationNode.class,\n                                        node(ValuesNode.class)).withSymbol(function, functionAlias)\n                        ))));\n                                                node(EnforceSingleRowNode.class,\n                                                        node(AggregationNode.class,\n                                                                anyTree(\n                                                                        node(ValuesNode.class)))).withSymbol(\"min\", \"MIN\").withSymbol(\"max\", \"MAX\")\n                                        )))));\n                                                node(AggregationNode.class,\n                                                        anyTree(\n                                                                node(ValuesNode.class)))).withSymbol(\"min\", \"MIN\").withSymbol(\"max\", \"MAX\")\n                                ))));\n                                                node(EnforceSingleRowNode.class,\n                                                        node(AggregationNode.class,\n                                                                anyTree(\n                                                                        node(ValuesNode.class)))).withSymbol(\"min\", \"MIN\").withSymbol(\"max\", \"MAX\")\n                                        )))));\n                                                node(AggregationNode.class,\n                                                        anyTree(\n                                                                node(ValuesNode.class)))).withSymbol(\"min\", \"MIN\").withSymbol(\"max\", \"MAX\")\n                                ))));\n                        anyTree(\n                                node(AggregationNode.class,\n                                        node(ValuesNode.class)))))\n                        node(AggregationNode.class,\n                                node(ValuesNode.class))))\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/f065b55f528a5cd3950f682639b7adfc8f34ed7d",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9,
            5,
            6,
            7
        ]
    },
    {
        "input": "                                node(EnforceSingleRowNode.class,\n                                        node(AggregationNode.class,\n                                                node(ValuesNode.class)).withSymbol(function, functionAlias)\n                                )))));\n                                node(AggregationNode.class,\n                                        node(ValuesNode.class)).withSymbol(function, functionAlias)\n                        ))));\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/f065b55f528a5cd3950f682639b7adfc8f34ed7d",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            8,
            5,
            6,
            7
        ]
    },
    {
        "input": "            return new MappedPageSource(systemTable.pageSource(systemTransaction.getTransactionHandle(), session, newContraint), userToSystemFieldIndex.build());\n            return new MappedPageSource(systemTable.pageSource(systemTransaction.getConnectorTransactionHandle(), session, newContraint), userToSystemFieldIndex.build());\n    public ConnectorTransactionHandle getTransactionHandle()\n    public TransactionId getTransactionId()\n    {\n        return transactionId;\n    }\n\n    @JsonProperty\n    public ConnectorTransactionHandle getConnectorTransactionHandle()\n            return new RecordPageSource(new MappedRecordSet(toRecordSet(systemTransaction.getTransactionHandle(), systemTable, session, newContraint), userToSystemFieldIndex.build()));\n            return new RecordPageSource(new MappedRecordSet(toRecordSet(systemTransaction.getConnectorTransactionHandle(), systemTable, session, newContraint), userToSystemFieldIndex.build()));\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/prestodb/presto/commit/3e6eca2968f53d5607a19610914c0f5facb066f4",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            9,
            2
        ]
    },
    {
        "input": "        return Objects.hash(connectorId, transactionHandle);\n        return Objects.hash(connectorId, transactionId);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/3e6eca2968f53d5607a19610914c0f5facb066f4",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            12,
            13
        ]
    },
    {
        "input": "import static com.facebook.presto.execution.scheduler.NodeSchedulerConfig.LEGACY_NETWORK_TOPOLOGY;\nimport static com.facebook.presto.execution.scheduler.NodeSchedulerConfig.NetworkTopologyType.FLAT;\nimport static com.facebook.presto.execution.scheduler.NodeSchedulerConfig.NetworkTopologyType.LEGACY;\nimport static com.facebook.presto.execution.scheduler.NodeSchedulerConfig.LEGACY_NETWORK_TOPOLOGY;\nimport static com.facebook.presto.execution.scheduler.NodeSchedulerConfig.NetworkTopologyType.LEGACY;\nimport static com.facebook.presto.execution.scheduler.NodeSchedulerConfig.LEGACY_NETWORK_TOPOLOGY;\nimport static com.facebook.presto.execution.scheduler.NodeSchedulerConfig.NetworkTopologyType.BENCHMARK;\nimport static com.facebook.presto.execution.scheduler.NodeSchedulerConfig.NetworkTopologyType.FLAT;\nimport static com.facebook.presto.execution.scheduler.NodeSchedulerConfig.NetworkTopologyType.LEGACY;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/23d1af0ca34f0592b91d77e4fd9255f9031550fc",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            12,
            7
        ]
    },
    {
        "input": "                .setNetworkTopology(LEGACY_NETWORK_TOPOLOGY)\n                .setNetworkTopology(LEGACY)\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8181818181818182,
        "commit_url": "https://github.com/prestodb/presto/commit/23d1af0ca34f0592b91d77e4fd9255f9031550fc",
        "target_edit_idx": 13,
        "propagatable_edit_idx": [
            9,
            5
        ]
    },
    {
        "input": "        TranslationMap translations = copyTranslations(subPlan);\n        TranslationMap translations = subPlan.copyTranslations();\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/00c741c2570db5fc015a0e78deadf76ccdbf2796",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            8,
            2,
            3,
            5
        ]
    },
    {
        "input": "import com.google.common.collect.Iterables;\nimport com.google.common.collect.ImmutableSet;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.1111111111111111,
        "commit_url": "https://github.com/prestodb/presto/commit/2f5b11dd08963a2cae243189ba6a274f69db4466",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "    private final Set sourceIds;\n    private final Optional sourceId;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/2f5b11dd08963a2cae243189ba6a274f69db4466",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            9,
            10
        ]
    },
    {
        "input": "        PlanNodeId planNodeId = Iterables.getOnlyElement(driverFactory.getSourceIds());\n        PlanNodeId planNodeId = driverFactory.getSourceId().get();\n                PlanNodeId sourcePlanNodeId = Iterables.getOnlyElement(driverFactory.getSourceIds());\n                PlanNodeId sourcePlanNodeId = driverFactory.getSourceId().get();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/2f5b11dd08963a2cae243189ba6a274f69db4466",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            12
        ]
    },
    {
        "input": "import com.google.common.collect.ImmutableMap;\nimport com.google.common.collect.ImmutableMap;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/4bf399ab194fa7b86b53ca2bfa6d46aaf1536c49",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "                    config.setIdleTimeout(new Duration(2, SECONDS));\n                    config.setIdleTimeout(new Duration(30, SECONDS));\n                    config.setIdleTimeout(new Duration(2, SECONDS));\n                    config.setIdleTimeout(new Duration(30, SECONDS));\n                    config.setIdleTimeout(new Duration(2, SECONDS));\n                    config.setIdleTimeout(new Duration(30, SECONDS));\n                    config.setIdleTimeout(new Duration(2, SECONDS));\n                    config.setIdleTimeout(new Duration(30, SECONDS));\n                    config.setIdleTimeout(new Duration(2, SECONDS));\n                    config.setIdleTimeout(new Duration(30, SECONDS));\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/fd2bf7d972c703a603f7ec043b96649347f7e184",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4
        ]
    },
    {
        "input": "            executeDeletes(uuids, (uuid) -> {\n                backupStore.get().deleteShard(uuid);\n                dao.updatePurgedShard(uuid);\n            });\n            long start = System.nanoTime();\n            executeDeletes(uuids);\n            dao.updatePurgedShards(uuids);\n            log.info(\"Purged %s backup shards in %s\", uuids.size(), nanosSince(start));\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/850e460b62b03b6586213758a47ea7318e94f6a2",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8,
            6
        ]
    },
    {
        "input": "    private void executeDeletes(List uuids, Consumer consumer)\n    private void executeDeletes(List uuids)\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/850e460b62b03b6586213758a47ea7318e94f6a2",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            6,
            7
        ]
    },
    {
        "input": "    void updateCleanedShard(@Bind(\"shardUuid\") UUID shardUuid);\n    void updateCleanedShards(@Bind(\"shardUuid\") Iterable shardUuids);\n    void updatePurgedShard(@Bind(\"shardUuid\") UUID shardUuid);\n    void updatePurgedShards(@Bind(\"shardUuid\") Iterable shardUuids);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.2,
        "commit_url": "https://github.com/prestodb/presto/commit/850e460b62b03b6586213758a47ea7318e94f6a2",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            13
        ]
    },
    {
        "input": "        super(message);\n        super(ALREADY_EXISTS, message);\n        super(message);\n        super(ALREADY_EXISTS, message);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/660fe0b36c907c471a8c75ffbea97bd29f7042d6",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "                throw new PrestoException(HIVE_WRITER_ERROR, \"Table format changed during insert\");\n                throw new PrestoException(HIVE_CONCURRENT_MODIFICATION_DETECTED, \"Table format changed during insert\");\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/648f5f909a8f59f165c6955a3064b082c224e046",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            8,
            4,
            7
        ]
    },
    {
        "input": "import static com.facebook.presto.sql.analyzer.SemanticErrorCode.MULTIPLE_FIELDS_FROM_SCALAR_SUBQUERY;\nimport static com.facebook.presto.sql.analyzer.SemanticErrorCode.MULTIPLE_FIELDS_FROM_SUBQUERY;\n                throw new SemanticException(MULTIPLE_FIELDS_FROM_SCALAR_SUBQUERY,\n                throw new SemanticException(MULTIPLE_FIELDS_FROM_SUBQUERY,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/dfb85e1136c924f3779157964b9a43db2fe7a2ad",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "            if (transactionMetadata.isLegacyTransaction() && !autoCommitContext) {\n            if (transactionMetadata.isSingleStatementWritesOnly() && !autoCommitContext) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/aab539f136498d37a4f9c8f566135455e5af296d",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "        this.sizeInBytes = INSTANCE_SIZE + dictionary.getRetainedSizeInBytes() + ids.getRetainedSize();\n        this.retainedSizeInBytes = INSTANCE_SIZE + dictionary.getRetainedSizeInBytes() + ids.getRetainedSize();\n\n        if (dictionaryIsCompacted) {\n            this.sizeInBytes = this.retainedSizeInBytes;\n        }\n        else {\n            int sizeInBytes = 0;\n            boolean[] isReferenced = getReferencedPositions();\n            for (int position = 0; position < isReferenced.length; position++) {\n                if (isReferenced[position] && !dictionary.isNull(position)) {\n                    sizeInBytes += dictionary.getLength(position);\n                }\n            }\n            this.sizeInBytes = sizeInBytes + ids.length();\n        }\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/e5984cd8738d925994251fcf49ff90b77225d6bf",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "    @Override\n    public void setup(String host, int port, String databaseName, String timeZone)\n    public void initialize(String host, int port, String databaseName, String timeZone)\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/06f15a11212c6c77482e92b901a006212231d808",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2,
            4,
            6
        ]
    },
    {
        "input": "        super.setup(host, port, databaseName, timeZone);\n        setup(host, port, databaseName, timeZone);\n        super.setup(host, port, databaseName, timeZone);\n        setup(host, port, databaseName, timeZone);\n        super.setup(host, port, databaseName, timeZone);\n        setup(host, port, databaseName, timeZone);\n        super.setup(host, port, databaseName, timeZone);\n        setup(host, port, databaseName, timeZone);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/prestodb/presto/commit/06f15a11212c6c77482e92b901a006212231d808",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3,
            5,
            7
        ]
    },
    {
        "input": "    @Override\n    public void setup(String host, int port, String databaseName, String timeZone)\n    public void initialize(String host, int port, String databaseName, String timeZone)\n    @Override\n    public void setup(String host, int port, String databaseName, String timeZone)\n    public void initialize(String host, int port, String databaseName, String timeZone)\n    @Override\n    public void setup(String host, int port, String databaseName, String timeZone)\n    public void initialize(String host, int port, String databaseName, String timeZone)\n    @Override\n    public void setup(String host, int port, String databaseName, String timeZone)\n    public void initialize(String host, int port, String databaseName, String timeZone)\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/06f15a11212c6c77482e92b901a006212231d808",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            2,
            6
        ]
    },
    {
        "input": "        checkArgument(allowCorruptWritesForTesting || timeZone.equals(DateTimeZone.getDefault()),\n                \"To write Hive data, your JVM timezone must match the Hive storage timezone. Add -Duser.timezone=%s to your JVM arguments\",\n                timeZone.getID());\n        verifyJvmTimeZone();\n        checkArgument(allowCorruptWritesForTesting || timeZone.equals(DateTimeZone.getDefault()),\n                \"To write Hive data, your JVM timezone must match the Hive storage timezone. Add -Duser.timezone=%s to your JVM arguments\",\n                timeZone.getID());\n        verifyJvmTimeZone();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/ddc382726b8ac239300b8ad45bce4134a3b09c14",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "    private static ColumnStatistics toColumnStatistics(OrcProto.ColumnStatistics statistics)\n    private static ColumnStatistics toColumnStatistics(OrcProto.ColumnStatistics statistics, boolean isRowGroup)\n                toColumnStatistics(footer.getStatisticsList()));\n                toColumnStatistics(footer.getStatisticsList(), false));\n        return new RowGroupIndex(positions.build(), toColumnStatistics(rowIndexEntry.getStatistics()));\n        return new RowGroupIndex(positions.build(), toColumnStatistics(rowIndexEntry.getStatistics(), true));\n    private static List toColumnStatistics(List columnStatistics)\n    private static List toColumnStatistics(List columnStatistics, final boolean isRowGroup)\n                return toColumnStatistics(columnStatistics);\n                return toColumnStatistics(columnStatistics, isRowGroup);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/9816d71ecf03880eff640fdc732aba621fc4f483",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3
        ]
    },
    {
        "input": "                toStringStatistics(statistics.getStringStatistics()),\n                toStringStatistics(statistics.getStringStatistics(), isRowGroup),\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/9816d71ecf03880eff640fdc732aba621fc4f483",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "    private static StringStatistics toStringStatistics(OrcProto.StringStatistics stringStatistics)\n    private static StringStatistics toStringStatistics(OrcProto.StringStatistics stringStatistics, boolean isRowGroup)\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/9816d71ecf03880eff640fdc732aba621fc4f483",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "        if (!enabled) {\n        if (!isOptimizedReaderEnabled(session, enabled)) {\n        if (!enabled) {\n        if (!isOptimizedReaderEnabled(session, enabled)) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/77e90b083f6daf760d3326a0c427ed2dfe7f91bd",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "            Map callSites = (Map) handle.invokeExact();\n            checkNotNull(callSites, \"'callSites' field in %s is null\", callerLookup.lookupClass().getName());\n            Map bindings = (Map) handle.invokeExact();\n            checkNotNull(bindings, \"'callSites' field in %s is null\", callerLookup.lookupClass().getName());\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/f533e2b2c8a050744eff15b11b196a708382b4ad",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5,
            7,
            9,
            10,
            11
        ]
    },
    {
        "input": "import com.facebook.presto.spi.block.BlockCursor;\nimport com.facebook.presto.spi.block.BlockCursor;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.125,
        "commit_url": "https://github.com/prestodb/presto/commit/83bc1c0480e649b37324ff69f7f1fcec64852d05",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "import static com.facebook.presto.connector.dual.DualMetadata.DUAL_METADATA_MANAGER;\nimport static com.facebook.presto.connector.dual.DualMetadata.DUAL_METADATA_MANAGER;\nimport static com.facebook.presto.connector.dual.DualMetadata.DUAL_METADATA_MANAGER;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/d55cc33d723c4a829dafcd5f3d7eb89a9c036040",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            11,
            7
        ]
    },
    {
        "input": "                DUAL_METADATA_MANAGER,\n                metadata,\n                DUAL_METADATA_MANAGER,\n                metadata,\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/d55cc33d723c4a829dafcd5f3d7eb89a9c036040",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            14
        ]
    },
    {
        "input": "            Map symbolToInputMapping,\n            Map symbolToInputMappings,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/23622ad857d3e76638842f2dc1230450ce9f3f8b",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "                .setMinErrorDuration(new Duration(1, TimeUnit.MINUTES)));\n                .setMinErrorDuration(new Duration(1, TimeUnit.MINUTES))\n                .setMaxResponseSize(new HttpClientConfig().getMaxContentLength()));\n                .setMinErrorDuration(new Duration(13, TimeUnit.SECONDS));\n                .setMinErrorDuration(new Duration(13, TimeUnit.SECONDS))\n                .setMaxResponseSize(new DataSize(1, Unit.KILOBYTE));\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/prestodb/presto/commit/5220225c11761a3a60af6e23b917cda11cb1bc51",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "    private static final int VARIABLE_BINARY_MAX = 1024 * 1024 * 1024;\n    private static final int VARCHAR_MAX = 1024 * 1024 * 1024;\n                builder.setPrecision(VARIABLE_BINARY_MAX);\n                builder.setPrecision(VARCHAR_MAX);\n                builder.setColumnDisplaySize(VARIABLE_BINARY_MAX);\n                builder.setColumnDisplaySize(VARCHAR_MAX);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/725995c98b89eed484dc22921ee1922381317791",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2
        ]
    },
    {
        "input": "            throw new IllegalArgumentException(\"Expected parameter type to be FIXED_INT_64 or DOUBLE, but was \" + parameterType);\n            throw new IllegalArgumentException(\"Expected parameter type to be BIGINT or DOUBLE, but was \" + parameterType);\n            throw new IllegalArgumentException(\"Expected parameter type to be FIXED_INT_64 or DOUBLE, but was \" + parameterType);\n            throw new IllegalArgumentException(\"Expected parameter type to be BIGINT or DOUBLE, but was \" + parameterType);\n            throw new IllegalArgumentException(\"Expected parameter type to be FIXED_INT_64 or DOUBLE, but was \" + parameterType);\n            throw new IllegalArgumentException(\"Expected parameter type to be BIGINT or DOUBLE, but was \" + parameterType);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.875,
        "commit_url": "https://github.com/prestodb/presto/commit/725995c98b89eed484dc22921ee1922381317791",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            12,
            13
        ]
    },
    {
        "input": "            throw new IllegalArgumentException(\"Expected parameter type to be FIXED_INT_64 or DOUBLE\");\n            throw new IllegalArgumentException(\"Expected parameter type to be BIGINT or DOUBLE\");\n            throw new IllegalArgumentException(\"Expected parameter type to be FIXED_INT_64 or DOUBLE\");\n            throw new IllegalArgumentException(\"Expected parameter type to be BIGINT or DOUBLE\");\n                throw new IllegalArgumentException(\"Expected parameter type to be FIXED_INT_64 or DOUBLE\");\n                throw new IllegalArgumentException(\"Expected parameter type to be BIGINT or DOUBLE\");\n            throw new IllegalArgumentException(\"Expected parameter type to be FIXED_INT_64 or DOUBLE\");\n            throw new IllegalArgumentException(\"Expected parameter type to be BIGINT or DOUBLE\");\n            throw new IllegalArgumentException(\"Expected parameter type to be FIXED_INT_64 or DOUBLE\");\n            throw new IllegalArgumentException(\"Expected parameter type to be BIGINT or DOUBLE\");\n                throw new IllegalArgumentException(\"Expected parameter type to be FIXED_INT_64 or DOUBLE\");\n                throw new IllegalArgumentException(\"Expected parameter type to be BIGINT or DOUBLE\");\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.8888888888888888,
        "commit_url": "https://github.com/prestodb/presto/commit/725995c98b89eed484dc22921ee1922381317791",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            7,
            8,
            9,
            10,
            11
        ]
    },
    {
        "input": "import com.facebook.presto.spi.classloader.ClassLoaderSafeConnectorHandleResolver;\nimport com.facebook.presto.spi.classloader.ClassLoaderSafeConnectorMetadata;\nimport com.facebook.presto.spi.classloader.ClassLoaderSafeConnectorRecordSetProvider;\nimport com.facebook.presto.spi.classloader.ClassLoaderSafeConnectorSplitManager;\nimport com.facebook.presto.spi.classloader.ThreadContextClassLoader;\nimport com.facebook.presto.spi.classloader.ClassLoaderSafeConnectorHandleResolver;\nimport com.facebook.presto.spi.classloader.ClassLoaderSafeConnectorMetadata;\nimport com.facebook.presto.spi.classloader.ClassLoaderSafeConnectorRecordSetProvider;\nimport com.facebook.presto.spi.classloader.ClassLoaderSafeConnectorSplitManager;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/4ec36cf02d8fa3c62ec20dcc61672a5ea66acf54",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "        ColumnMetadata columnMetadata = dao.getColumnMetadata(columnId);\n        ColumnMetadata columnMetadata = dao.getColumnMetadata(tableId, columnId);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/prestodb/presto/commit/8a141f82c475f666f354ecab7c83bc4cf5a3de1b",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "            // clear null flag after evaluating condition\n            // if conditionValue and conditionValue was not null\n                // clear null flag after evaluating condition\n                // if conditionValue and conditionValue was not null\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/ea94b0a4592b4ca7c3c560e0920f7844c753cf02",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "            print(indent, \"- Exchange[%s] => [%s]\", node.getSourceFragmentId(), formatOutputs(node.getOutputSymbols()));\n            print(indent, \"- Exchange[%s] => [%s]\", node.getSourceFragmentIds(), formatOutputs(node.getOutputSymbols()));\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/d837961b585059a13b4ed7d4d921986d390393cb",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            13
        ]
    },
    {
        "input": "                return input.getSourceFragmentId();\n                return input.getSourceFragmentIds();\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/d837961b585059a13b4ed7d4d921986d390393cb",
        "target_edit_idx": 13,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "        return new Tuple(slice.slice(offset, ENTRY_SIZE), TupleInfo.SINGLE_DOUBLE);\n\n        // TODO: add Slices.copyOf() to airlift\n        Slice copy = Slices.allocate(ENTRY_SIZE);\n        copy.setBytes(0, slice, offset, ENTRY_SIZE);\n\n        return new Tuple(copy, TupleInfo.SINGLE_DOUBLE);\n        return new Tuple(slice.slice(offset, ENTRY_SIZE), TupleInfo.SINGLE_LONG);\n\n        // TODO: add Slices.copyOf() to airlift\n        Slice copy = Slices.allocate(ENTRY_SIZE);\n        copy.setBytes(0, slice, offset, ENTRY_SIZE);\n\n        return new Tuple(copy, TupleInfo.SINGLE_LONG);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/prestodb/presto/commit/d95defb38df02082cc090c46e9a96e6bdd8b2645",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "    public void invalidateAll(Iterable keys) {\n    public void invalidateAll(Iterable keys) {\n    public void invalidateAll(Iterable keys) {\n    public void invalidateAll(Iterable keys) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/ben-manes/caffeine/commit/5821cdb5e4d468896781e34d592147c2ba369ab6",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "      return (policy == null) ? (policy = new UnboundedPolicy<>()) : policy;\n      return (policy == null) ? (policy = new UnboundedPolicy<>(cache.isRecordingStats)) : policy;\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/ben-manes/caffeine/commit/c22108de320e1816456694cdbff903cbd1d758e3",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "          new BulkLoader(context.loader())), ticker);\n          new BulkLoader(context.loader())),\n          ticker, context.isRecordingStats());\n          new SingleLoader(context.loader())), ticker);\n          new SingleLoader(context.loader())),\n          ticker, context.isRecordingStats());\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/ben-manes/caffeine/commit/c22108de320e1816456694cdbff903cbd1d758e3",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "        Node demoted = admittor.admit(node.key, headWarm.next) ? headWarm.next : node;\n        Node demoted = admittor.admit(node.key, headWarm.next.key) ? headWarm.next : node;\n      Node demoted = admittor.admit(node.key, headHot.next) ? headHot.next : node;\n      Node demoted = admittor.admit(node.key, headHot.next.key) ? headHot.next : node;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/ben-manes/caffeine/commit/89bd8f359268227df60c0f33a46a22e78211b37d",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "        primaryData.put(key, node);\n        mainData.put(key, node);\n        primaryData.put(key, node);\n        mainData.put(key, node);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/ben-manes/caffeine/commit/89bd8f359268227df60c0f33a46a22e78211b37d",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "    this.userDetailsPresenter.initialize(this.userId);\n    this.userDetailsPresenter.initialize();\n    userDetailsPresenter.initialize(FAKE_USER_ID);\n    userDetailsPresenter.initialize();\n  public void initialize(int userId) {\n    this.userId = userId;\n  public void initialize() {\n      this.userDetailsPresenter.initialize(this.userId);\n      this.userDetailsPresenter.initialize();\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/android10/Android-CleanArchitecture/commit/0e594d2dcbe0742c969bf14fc4073ccc62ba2f34",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            3,
            5
        ]
    },
    {
        "input": "      this.userDetailsPresenter.initialize(this.userId);\n      this.userDetailsPresenter.initialize();\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/android10/Android-CleanArchitecture/commit/0e594d2dcbe0742c969bf14fc4073ccc62ba2f34",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            0,
            3,
            4
        ]
    },
    {
        "input": "  Context getContext();\n  Context context();\n",
        "class": "function_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/android10/Android-CleanArchitecture/commit/12d03b14168794460137b1cac232422f660949aa",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            5,
            6
        ]
    },
    {
        "input": "  @Override public Context getContext() {\n  @Override public Context context() {\n",
        "class": "function_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/android10/Android-CleanArchitecture/commit/12d03b14168794460137b1cac232422f660949aa",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5
        ]
    },
    {
        "input": "            if (isWriteableDirectory(dataDir)) {\n            if (isWritableDirectory(dataDir)) {\n    private static boolean isWriteableDirectory(File file) {\n    private static boolean isWritableDirectory(File file) {\n                    if (isWriteableDirectory(cacheDir)) {\n                    if (isWritableDirectory(cacheDir)) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/mockito/mockito/commit/49c3b4ffd25f574cbd64a2f85b9ea4b9bfbfe623",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8,
            7
        ]
    },
    {
        "input": "        StackTraceFilter stackTraceFilter, Throwable stackTraceHolder) {\n        StackTraceElement filtered = stackTraceFilter.filterFirst(stackTraceHolder);\n        StackTraceFilter stackTraceFilter, Throwable stackTraceHolder, boolean isInline) {\n        StackTraceElement filtered = stackTraceFilter.filterFirst(stackTraceHolder, isInline);\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/mockito/mockito/commit/fd6f88f129003ccbf4dc175f7b76a4bdec9ff493",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "                        return stackTraceElement;\n                        if (shouldSkip) {\n                            shouldSkip = false;\n                        } else {\n                            return stackTraceElement;\n                        }\n                return stackTraceElement;\n                if (shouldSkip) {\n                    shouldSkip = false;\n                } else {\n                    return stackTraceElement;\n                }\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.16666666666666666,
        "commit_url": "https://github.com/mockito/mockito/commit/fd6f88f129003ccbf4dc175f7b76a4bdec9ff493",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "                \"Please remove unnecessary stubbings. More info: javadoc for UnnecessaryStubbingException class.\"\n                \"Please remove unnecessary stubbings or use 'silent' option. More info: javadoc for UnnecessaryStubbingException class.\"\n                        \"Please remove unnecessary stubbings. More info: javadoc for UnnecessaryStubbingException class.\",\n                        \"Please remove unnecessary stubbings or use 'silent' option. More info: javadoc for UnnecessaryStubbingException class.\",\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/mockito/mockito/commit/0d24b6391fe99d1af7cf176b1c09f295cda964d0",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "    boolean apply(StackTraceElement candidate);\n    boolean isOut(StackTraceElement candidate);\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/mockito/mockito/commit/2997ad883e74012265862aa2949c8971a520326c",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            4,
            5,
            8,
            9
        ]
    },
    {
        "input": "            if (CLEANER.apply(element)) {\n            if (CLEANER.isOut(element)) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.8333333333333334,
        "commit_url": "https://github.com/mockito/mockito/commit/2997ad883e74012265862aa2949c8971a520326c",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            1,
            4,
            5,
            8,
            9
        ]
    },
    {
        "input": "\t\tassertThat(cleaner.apply(type(className))).describedAs(\"Must be rejected %s\", className).isFalse();\n\t\tassertThat(cleaner.isOut(type(className))).describedAs(\"Must be rejected %s\", className).isFalse();\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.8,
        "commit_url": "https://github.com/mockito/mockito/commit/2997ad883e74012265862aa2949c8971a520326c",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            4,
            8,
            9
        ]
    },
    {
        "input": "                return defaultCleaner.apply(candidate);\n                return defaultCleaner.isOut(candidate);\n    boolean apply(StackTraceElement candidate);\n    boolean isOut(StackTraceElement candidate);\n\tpublic boolean apply(StackTraceElement candidate) {\n\tpublic boolean isOut(StackTraceElement candidate) {\n            if (CLEANER.apply(element)) {\n            if (CLEANER.isOut(element)) {\n\t\tassertThat(cleaner.apply(type(className))).describedAs(\"Must be accepted %s\", className).isTrue();\n\t\tassertThat(cleaner.isOut(type(className))).describedAs(\"Must be accepted %s\", className).isTrue();\n\t\tassertThat(cleaner.apply(type(className))).describedAs(\"Must be rejected %s\", className).isFalse();\n\t\tassertThat(cleaner.isOut(type(className))).describedAs(\"Must be rejected %s\", className).isFalse();\n\t\t\tpublic boolean apply(StackTraceElement candidate) {\n\t\t\tpublic boolean isOut(StackTraceElement candidate) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/mockito/mockito/commit/2997ad883e74012265862aa2949c8971a520326c",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            4,
            5,
            8
        ]
    },
    {
        "input": "            if (name.isSurrogate()) {\n            if (name.isDefault()) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/mockito/mockito/commit/39d09ae87b2cd2a02d44dc11164da6138661cb95",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            3,
            4
        ]
    },
    {
        "input": "    //TODO: needs to go to exported package\n    //TODO: needs to go to exported package\n//TODO: needs to go to exported package\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/mockito/mockito/commit/166b0edcffec5f6e0a1dbe643b0f78d872eae55a",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            4
        ]
    },
    {
        "input": " * of cases it's not necessary. Let's say you've stubbed foo.bar()\n * of cases it's not necessary: Let's say you've stubbed foo.bar()\n     * of cases it's not necessary. Let's say you've stubbed foo.bar()\n     * of cases it's not necessary: Let's say you've stubbed foo.bar()\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/mockito/mockito/commit/e837d723231af6ceb1ab1c2516c249834c6c23be",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": " * verifyNoMoreInteractions() should not be used in every method. \n * verifyNoMoreInteractions() should not be used in every test method. \n     * verifyNoMoreInteractions() should not be used in every method. \n     * verifyNoMoreInteractions() should not be used in every test method. \n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/mockito/mockito/commit/e837d723231af6ceb1ab1c2516c249834c6c23be",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "    public static  T createMock(Class classToMock, MockingProgress progress, String optionalMockName, T optionalInstance) {\n        if (optionalMockName == null) {\n            optionalMockName = toInstanceName(classToMock);\n    public static  T createMock(Class classToMock, MockingProgress progress, String mockName, T optionalInstance) {\n        if (mockName == null) {\n            mockName = toInstanceName(classToMock);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/mockito/mockito/commit/e837d723231af6ceb1ab1c2516c249834c6c23be",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "      scheduler.handle(schedulerEvent);\n      ((SchedulerWrapper)scheduler).propagatedHandle(schedulerEvent);\n      scheduler.handle(schedulerEvent);\n      ((SchedulerWrapper)scheduler).propagatedHandle(schedulerEvent);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/apache/hadoop/commit/adbaf48082d366bd5f9f0b1baca6b54e76a9d84e",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "    getUser(application.getUser()).getResourceUsage().decAMUsed(nodeLabel,\n    User user = getUser(application.getUser());\n    if (user == null) {\n      return;\n    }\n\n    user.getResourceUsage().decAMUsed(nodeLabel,\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.1111111111111111,
        "commit_url": "https://github.com/apache/hadoop/commit/e220e88eca26311af707f7969da36d402f022a8d",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "    queue.activeQueue();\n    queue.activateQueue();\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/23772d946bdf26a72fb611a9719afe743cdebd52",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2,
            4
        ]
    },
    {
        "input": "        1, 1, 1, 9, 1, 7, 0F);\n        1, 1, 1, 9, 1, 7, 0F, 1);\n        1, 1, 1, 9, 1, 7, 0F);\n        1, 1, 1, 9, 1, 7, 0F, 1);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/hadoop/commit/eb72628e151b70c6513723f37f87c7855a624876",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "    assertTrue(outStr.contains(\"has 0 CORRUPT files\"));\n    assertTrue(outStr.contains(\"has 0 CORRUPT blocks\"));\n    assertTrue(outStr.contains(\"has 3 CORRUPT files\"));\n    assertTrue(outStr.contains(\"has 3 CORRUPT blocks\"));\n    assertTrue(outStr.contains(\"has 0 CORRUPT files\"));\n    assertTrue(outStr.contains(\"has 0 CORRUPT blocks\"));\n    assertTrue(outStr.contains(\"has 0 CORRUPT files\"));\n    assertTrue(outStr.contains(\"has 0 CORRUPT blocks\"));\n    assertTrue(outStr.contains(\"has 0 CORRUPT files\"));\n    assertTrue(outStr.contains(\"has 0 CORRUPT blocks\"));\n    assertTrue(outStr.contains(\"has 1 CORRUPT files\"));\n    assertTrue(outStr.contains(\"has 1 CORRUPT blocks\"));\n    assertTrue(outStr.contains(\"has 1 CORRUPT files\"));\n    assertTrue(outStr.contains(\"has 1 CORRUPT blocks\"));\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.8571428571428571,
        "commit_url": "https://github.com/apache/hadoop/commit/ed74479ea56ba2113d40b32f28be5c963f2928fa",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4,
            5,
            6,
            7,
            10,
            11
        ]
    },
    {
        "input": "  DELEGATION_TOKEN_ISSUED(\n      StoreStatisticNames.DELEGATION_TOKEN_ISSUED,\n  DELEGATION_TOKENS_ISSUED(\n      StoreStatisticNames.DELEGATION_TOKENS_ISSUED,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/28cc912a5c18a4f06ef6b66a252f4d3905a6adc8",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            3,
            4,
            5
        ]
    },
    {
        "input": "        Statistic.DELEGATION_TOKEN_ISSUED);\n        Statistic.DELEGATION_TOKENS_ISSUED);\n  DELEGATION_TOKEN_ISSUED(\n      StoreStatisticNames.DELEGATION_TOKEN_ISSUED,\n  DELEGATION_TOKENS_ISSUED(\n      StoreStatisticNames.DELEGATION_TOKENS_ISSUED,\nimport static org.apache.hadoop.fs.s3a.Statistic.DELEGATION_TOKEN_ISSUED;\nimport static org.apache.hadoop.fs.s3a.Statistic.DELEGATION_TOKENS_ISSUED;\n          DELEGATION_TOKEN_ISSUED.getSymbol(), () ->\n          DELEGATION_TOKENS_ISSUED.getSymbol(), () ->\n          Statistic.DELEGATION_TOKEN_ISSUED);\n          Statistic.DELEGATION_TOKENS_ISSUED);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/28cc912a5c18a4f06ef6b66a252f4d3905a6adc8",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            5
        ]
    },
    {
        "input": "      Path keytabOnhdfs = new Path(keytabURI);\n      if (!fileSystem.getFileSystem().exists(keytabOnhdfs)) {\n      Path keytabPath = new Path(keytabURI);\n      if (!fileSystem.getFileSystem().exists(keytabPath)) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/apache/hadoop/commit/89689c52c39cdcc498d04508dbd235c6036ec17c",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3,
            4,
            5
        ]
    },
    {
        "input": "          + \"localization, uri = \" + keytabOnhdfs);\n          + \"localization, uri = \" + keytabPath);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/hadoop/commit/89689c52c39cdcc498d04508dbd235c6036ec17c",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            2,
            3,
            4
        ]
    },
    {
        "input": "    int numExpectedElements = 24;\n    int numExpectedElements = 25;\n      numExpectedElements = 42;\n      numExpectedElements = 43;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/hadoop/commit/d4874585f4eb8620b64855d466ae82148ded0038",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "      flushInternal();\n      flushInternal(false);\n      flushInternal();\n      flushInternal(false);\n      flushInternal();\n      flushInternal(true);\n  private synchronized void flushInternal() throws IOException {\n  private synchronized void flushInternal(boolean isClose) throws IOException {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/1edf1914acb74e45f6717c703f519cb382aae173",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            3,
            5,
            6
        ]
    },
    {
        "input": "    flushWrittenBytesToService();\n    flushWrittenBytesToService(isClose);\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/1edf1914acb74e45f6717c703f519cb382aae173",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "    flushWrittenBytesToServiceInternal(position, false);\n    flushWrittenBytesToServiceInternal(position, false, isClose);\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/hadoop/commit/1edf1914acb74e45f6717c703f519cb382aae173",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "      this.flushWrittenBytesToServiceInternal(this.lastTotalAppendOffset, true);\n      this.flushWrittenBytesToServiceInternal(this.lastTotalAppendOffset, true,\n        false/*Async flush on close not permitted*/);\n    flushWrittenBytesToServiceInternal(position, false);\n    flushWrittenBytesToServiceInternal(position, false, isClose);\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/hadoop/commit/1edf1914acb74e45f6717c703f519cb382aae173",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "      client.flush(path, offset, retainUncommitedData);\n      client.flush(path, offset, retainUncommitedData, isClose);\n  public AbfsRestOperation flush(final String path, final long position, boolean retainUncommittedData)\n  public AbfsRestOperation flush(final String path, final long position, boolean retainUncommittedData, boolean isClose)\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/hadoop/commit/1edf1914acb74e45f6717c703f519cb382aae173",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "  @Ignore(\"TODO:HDDS-1147\")\n  @Ignore(\"TODO:HDDS-1147\")\n  @Ignore(\"TODO:HDDS-1147\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/c1e5b1921235316780dc439293b5fa1d3718ba3a",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            6
        ]
    },
    {
        "input": "    Assert.assertEquals(ResultCodes.KEY_RENAME_ERROR, omException);\n    Assert.assertEquals(ResultCodes.KEY_ALREADY_EXISTS,\n        omException.getResult());\n    Assert.assertEquals(ResultCodes.KEY_RENAME_ERROR, omException);\n    Assert.assertEquals(ResultCodes.INVALID_KEY_NAME, omException.getResult());\n    Assert.assertEquals(ResultCodes.KEY_RENAME_ERROR, omException);\n    Assert.assertEquals(ResultCodes.INVALID_KEY_NAME, omException.getResult());\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/c1e5b1921235316780dc439293b5fa1d3718ba3a",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4,
            5
        ]
    },
    {
        "input": "   * @param nameNodeUri the URI of the NN to get a proxy for.\n   * @param nnAddr the address of the NN to get a proxy for.\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/c3efc299fe8a23eff49441f938834fccea89969b",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "      } catch (IOException | YarnException e) {\n      } catch (IOException e) {\n    } catch (IOException | YarnException e) {\n    } catch (IOException e) {\n      LOG.error(\"Failed to publish Container metrics for container \"\n          + container.getContainerId());\n      if (LOG.isDebugEnabled()) {\n        LOG.debug(\"Failed to publish Container metrics for container \"\n            + container.getContainerId(), e);\n      }\n    } catch (YarnException e) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/9119b3cf8f883aa2d5df534afc0c50249fed03c6",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "            + container.getContainerId(), e);\n            + container.getContainerId());\n        if (LOG.isDebugEnabled()) {\n          LOG.debug(\"Failed to publish Container metrics for container \"\n              + container.getContainerId(), e);\n        }\n      } catch (YarnException e) {\n        LOG.error(\"Failed to publish Container metrics for container \"\n            + container.getContainerId(), e.getMessage());\n        if (LOG.isDebugEnabled()) {\n          LOG.debug(\"Failed to publish Container metrics for container \"\n              + container.getContainerId(), e);\n        }\n          + container.getContainerId(), e);\n          + container.getContainerId(), e.getMessage());\n      if (LOG.isDebugEnabled()) {\n        LOG.debug(\"Failed to publish Container metrics for container \"\n            + container.getContainerId(), e);\n      }\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.2,
        "commit_url": "https://github.com/apache/hadoop/commit/9119b3cf8f883aa2d5df534afc0c50249fed03c6",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "    } catch (Exception e) {\n    } catch (NotFoundException | ForbiddenException e) {\n      throw new WebApplicationException(e,\n          Response.Status.INTERNAL_SERVER_ERROR);\n    } catch (IOException e) {\n    } catch (Exception e) {\n    } catch (NotFoundException e) {\n      throw new WebApplicationException(e,\n          Response.Status.INTERNAL_SERVER_ERROR);\n    } catch (IOException e) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/hadoop/commit/9119b3cf8f883aa2d5df534afc0c50249fed03c6",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "  byte[] getDBKeyForKey(String volume, String bucket, String key);\n  byte[] getDBKeyBytes(String volume, String bucket, String key);\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/c52019c291bf153e94007b89163b395f699b1763",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            8,
            9,
            10,
            7
        ]
    },
    {
        "input": "      byte[] keyKey = metadataManager.getDBKeyForKey(\n      byte[] keyKey = metadataManager.getDBKeyBytes(\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/apache/hadoop/commit/c52019c291bf153e94007b89163b395f699b1763",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            0,
            8,
            10,
            7
        ]
    },
    {
        "input": "        LOG.error(\"Cannot get mount point: {}\", e.getMessage());\n        LOG.error(\"Cannot get mount point\", e);\n        LOG.error(\"Cannot get mount point: {}\", e.getMessage());\n        LOG.error(\"Cannot get mount point\", e);\n        LOG.error(\"Cannot get mount point: {}\", e.getMessage());\n        LOG.error(\"Cannot get mount point\", e);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/apache/hadoop/commit/c4d3636c21acaeb2b7d56d19cd4996aa25151bd1",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            6,
            7
        ]
    },
    {
        "input": "import org.apache.hadoop.mapreduce.MRConfig;\nimport org.apache.hadoop.mapreduce.MRConfig;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.16666666666666666,
        "commit_url": "https://github.com/apache/hadoop/commit/995cba65fe29966583e36f9491d9a27b323918ae",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "  private File[] cleanTokenPasswordFile(JobConf conf) throws Exception {\n  private File[] cleanTokenPasswordFile() throws Exception {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/hadoop/commit/995cba65fe29966583e36f9491d9a27b323918ae",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            3,
            5,
            6
        ]
    },
    {
        "input": "    result[0] = new File(conf.get(MRConfig.LOCAL_DIR) + Path.SEPARATOR\n        + \"jobTokenPassword\");\n    result[0] = new File(\"./jobTokenPassword\");\n    result[1] = new File(conf.get(MRConfig.LOCAL_DIR) + Path.SEPARATOR\n        + \".jobTokenPassword.crc\");\n    result[1] = new File(\"./.jobTokenPassword.crc\");\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/995cba65fe29966583e36f9491d9a27b323918ae",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "  private Resource capatibility;\n  private Resource capability;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/afd8caba2730262cb8c5d7c4a5d2d1081b671f1d",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            10
        ]
    },
    {
        "input": "  public MockNM(String nodeIdStr, Resource capatibility,\n  public MockNM(String nodeIdStr, Resource capability,\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/afd8caba2730262cb8c5d7c4a5d2d1081b671f1d",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            4,
            5,
            6,
            7,
            8,
            9,
            10
        ]
    },
    {
        "input": "      capatibility = Resources.clone(newResource);\n      capability = Resources.clone(newResource);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/apache/hadoop/commit/afd8caba2730262cb8c5d7c4a5d2d1081b671f1d",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            7,
            8,
            9,
            10
        ]
    },
    {
        "input": "    return capatibility.getMemorySize();\n    return capability.getMemorySize();\n  private Resource capatibility;\n  private Resource capability;\n  public MockNM(String nodeIdStr, Resource capatibility,\n  public MockNM(String nodeIdStr, Resource capability,\n    this(nodeIdStr, capatibility, resourceTracker,\n    this(nodeIdStr, capability, resourceTracker,\n  public MockNM(String nodeIdStr, Resource capatibility,\n  public MockNM(String nodeIdStr, Resource capability,\n    this.capatibility = capatibility;\n    this.capability = capability;\n    req.setResource(capatibility);\n    req.setResource(capability);\n      capatibility = Resources.clone(newResource);\n      capability = Resources.clone(newResource);\n        \"Success\", 0, capatibility);\n        \"Success\", 0, capability);\n      capatibility = Resources.clone(newResource);\n      capability = Resources.clone(newResource);\n    return capatibility.getVirtualCores();\n    return capability.getVirtualCores();\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/apache/hadoop/commit/afd8caba2730262cb8c5d7c4a5d2d1081b671f1d",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            10
        ]
    },
    {
        "input": "    return pendingMutations;\n    return new LinkedList<>(pendingMutations);\n    return pendingMutations;\n    return new LinkedList<>(pendingMutations);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/4d8abd84f40a6124e7b05b34c14b4035309623ef",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "    aQueue.addAppSchedulable(app1);\n    aQueue.addApp(app1, true);\n    bQueue.addAppSchedulable(app2);\n    bQueue.addApp(app2, true);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/a92ef030a2707182e90acee644e47c8ef7e1fd8d",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "          s1.getMinShare(), s1.getDemand());\n          s1.getMinShare(), demand1);\n          s2.getMinShare(), s2.getDemand());\n          s2.getMinShare(), demand2);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/hadoop/commit/4a574e9a84f2e997038452b22f2ad2a2d42e8ac8",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "    if (label == null) {\n      label = RMNodeLabelsManager.NO_LABEL;\n    if (label == null || label.equals(NL)) {\n      return normalize(usageNoLabel.resArr[type.idx]);\n    if (label == null) {\n      label = RMNodeLabelsManager.NO_LABEL;\n    if (label == null || label.equals(NL)) {\n      return usageNoLabel;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/ee89ac84e68d3e181b75c63f74a0444f9d28146f",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "    client.setKeyProviderUri(null);\n    mockClient.setKeyProviderUri(null);\n    mockClient.setKeyProviderUri(null);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/apache/hadoop/commit/cef2815cf48154fe82f44082dcbdce6373c81284",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4,
            5
        ]
    },
    {
        "input": "    // Nullify the cached value for key provider uri on client\n    cluster.getFileSystem().getClient().setKeyProviderUri(null);\n    // Nullify the cached value for key provider uri on client\n    cluster.getFileSystem().getClient().setKeyProviderUri(null);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/cef2815cf48154fe82f44082dcbdce6373c81284",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "    Assert.assertTrue(\"Delete should suceed\",\n    Assert.assertTrue(\"Delete should succeed\",\n    Assert.assertTrue(\"Delete should suceed\",\n    Assert.assertTrue(\"Delete should succeed\",\n    Assert.assertTrue(\"Delete should suceed\",\n    Assert.assertTrue(\"Delete should succeed\",\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/apache/hadoop/commit/e4f34ecb049a252fb1084c4c7f404d710b221969",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            3
        ]
    },
    {
        "input": "    assertTrue(\"validateOrderNoFap() should have suceeded\",\n    assertTrue(\"validateOrderNoFap() should have succeeded\",\n    assertTrue(\"validateOrderNoFap() should have suceeded\",\n    assertTrue(\"validateOrderNoFap() should have succeeded\",\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/hadoop/commit/e4f34ecb049a252fb1084c4c7f404d710b221969",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "import org.eclipse.jetty.util.log.Log;\nimport org.eclipse.jetty.util.log.Log;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/e514fc432a424c57bdce16cad1d5b1d2e010f34e",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "    Log.getLog().info(\"Running with seed: \" + seed);\n    LOG.info(\"Running with seed: \" + seed);\n    Log.getLog().info(\"Running with seed: \" + seed);\n    LOG.info(\"Running with seed: \" + seed);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/e514fc432a424c57bdce16cad1d5b1d2e010f34e",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": " *     DistributedCache.addCacheArchive(new URI(\"/myapp/mytar.tar\", job);\n *     DistributedCache.addCacheArchive(new URI(\"/myapp/mytgz.tgz\", job);\n *     DistributedCache.addCacheArchive(new URI(\"/myapp/mytargz.tar.gz\", job);\n *     DistributedCache.addCacheArchive(new URI(\"/myapp/mytar.tar\"), job);\n *     DistributedCache.addCacheArchive(new URI(\"/myapp/mytgz.tgz\"), job);\n *     DistributedCache.addCacheArchive(new URI(\"/myapp/mytargz.tar.gz\"), job);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/hadoop/commit/34a931c0fa5853fbcaadf0211d6bbee881715748",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            0,
            2,
            3
        ]
    },
    {
        "input": " *     DistributedCache.addCacheArchive(new URI(\"/myapp/map.zip\", job);\n *     DistributedCache.addCacheArchive(new URI(\"/myapp/map.zip\"), job);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/hadoop/commit/34a931c0fa5853fbcaadf0211d6bbee881715748",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            1,
            3
        ]
    },
    {
        "input": "    this.dispatcher = new AsyncDispatcher();\n    this.dispatcher = new AsyncDispatcher(\"NM Event dispatcher\");\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.15789473684210525,
        "commit_url": "https://github.com/apache/hadoop/commit/a59df15757fac7f917cb96fc8fcfeb7017475e4f",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            3,
            5,
            6,
            7,
            8,
            9,
            10
        ]
    },
    {
        "input": "    dispatcher = new AsyncDispatcher();\n    dispatcher = new AsyncDispatcher(\"NM ContainerManager dispatcher\");\n    dispatcher = new AsyncDispatcher();\n    dispatcher = new AsyncDispatcher(\"NodeLabelManager dispatcher\");\n    this.dispatcher = new AsyncDispatcher();\n    this.dispatcher = new AsyncDispatcher(\"NM Event dispatcher\");\n    dispatcher = new AsyncDispatcher();\n    dispatcher = new AsyncDispatcher(\"NM Timeline dispatcher\");\n    return new AsyncDispatcher();\n    return new AsyncDispatcher(\"RM Event dispatcher\");\n      return new AsyncDispatcher();\n      return new AsyncDispatcher(\"RM ApplicationHistory dispatcher\");\n      return new AsyncDispatcher();\n      return new AsyncDispatcher(\"RM Timeline dispatcher\");\n    dispatcher = new AsyncDispatcher();\n    dispatcher = new AsyncDispatcher(\"RM StateStore dispatcher\");\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.15789473684210525,
        "commit_url": "https://github.com/apache/hadoop/commit/a59df15757fac7f917cb96fc8fcfeb7017475e4f",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            3,
            4,
            6,
            7,
            8,
            9,
            10
        ]
    },
    {
        "input": "    return new AsyncDispatcher();\n    return new AsyncDispatcher(\"RM Event dispatcher\");\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.15789473684210525,
        "commit_url": "https://github.com/apache/hadoop/commit/a59df15757fac7f917cb96fc8fcfeb7017475e4f",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            6,
            8,
            9,
            10
        ]
    },
    {
        "input": "      return new AsyncDispatcher();\n      return new AsyncDispatcher(\"RM ApplicationHistory dispatcher\");\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.15789473684210525,
        "commit_url": "https://github.com/apache/hadoop/commit/a59df15757fac7f917cb96fc8fcfeb7017475e4f",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            6,
            7,
            9,
            10
        ]
    },
    {
        "input": "      return new AsyncDispatcher();\n      return new AsyncDispatcher(\"RM Timeline dispatcher\");\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.15789473684210525,
        "commit_url": "https://github.com/apache/hadoop/commit/a59df15757fac7f917cb96fc8fcfeb7017475e4f",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            6,
            7,
            8,
            10
        ]
    },
    {
        "input": "    dispatcher = new AsyncDispatcher();\n    dispatcher = new AsyncDispatcher(\"RM StateStore dispatcher\");\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.15789473684210525,
        "commit_url": "https://github.com/apache/hadoop/commit/a59df15757fac7f917cb96fc8fcfeb7017475e4f",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            6,
            7,
            8,
            9
        ]
    },
    {
        "input": "      if (oldState != newState) {\n      if (newState != null && oldState != newState) {\n      if (oldState != newState) {\n      if (newState != null && oldState != newState) {\n      if (oldState != newState) {\n      if (newState != null && oldState != newState) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/9262797e86453fc04b7ca3710b73b21fcdf9e6b4",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            11,
            7
        ]
    },
    {
        "input": "    savedException = null;\n    savedException = null;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/apache/hadoop/commit/64a2d5be91a7f344aadf820481c542c967bc46a8",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "        if (group != null && !pc.containsGroup(group)) {\n        if (group != null && !pc.isMemberOfGroup(group)) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/2550371f66c49fe0e40aadaa68744311270084ce",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "    String[] names = INode.getPathNames(file1.toString());\n    byte[][] components = INode.getPathComponents(names);\n    byte[][] components = INode.getPathComponents(file1.toString());\n    String[] names = INode.getPathNames(file1.toString());\n    byte[][] components = INode.getPathComponents(names);\n    byte[][] components = INode.getPathComponents(file1.toString());\n    String[] names = INode.getPathNames(file3.toString());\n    byte[][] components = INode.getPathComponents(names);\n    byte[][] components = INode.getPathComponents(file3.toString());\n    String[] names = INode.getPathNames(file1.toString());\n    byte[][] components = INode.getPathComponents(names);\n    byte[][] components = INode.getPathComponents(file1.toString());\n    names = INode.getPathNames(file1.toString());\n    components = INode.getPathComponents(names);\n    components = INode.getPathComponents(file1.toString());\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/hadoop/commit/bd3dcf46e263b6e6aa3fca6a5d9936cc49e3280f",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            8,
            10,
            11,
            13
        ]
    },
    {
        "input": "    String[] names = INode.getPathNames(snapshotPath);\n    byte[][] components = INode.getPathComponents(names);\n    byte[][] components = INode.getPathComponents(snapshotPath);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/apache/hadoop/commit/bd3dcf46e263b6e6aa3fca6a5d9936cc49e3280f",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            9,
            12,
            7
        ]
    },
    {
        "input": "        Long time = DateTime.now().minusDays(7).toDate().getTime();\n        Long time = DateTime.now(DateTimeZone.UTC).minusDays(7).toDate().getTime();\n            .must(QueryBuilders.rangeQuery(\"endTime\").lt(LocalDate.now().minusDays(archiveTtlDays).toString()).gte(LocalDate.now().minusDays(archiveTtlDays).minusDays(1).toString()))\n            .must(QueryBuilders.rangeQuery(\"endTime\").lt(LocalDate.now(ZoneOffset.UTC).minusDays(archiveTtlDays).toString()).gte(LocalDate.now(ZoneOffset.UTC).minusDays(archiveTtlDays).minusDays(1).toString()))\n                .must(QueryBuilders.rangeQuery(\"endTime\").lt(LocalDate.now().minusDays(archiveTtlDays).toString()).gte(LocalDate.now().minusDays(archiveTtlDays).minusDays(1).toString()))\n                .must(QueryBuilders.rangeQuery(\"endTime\").lt(LocalDate.now(ZoneOffset.UTC).minusDays(archiveTtlDays).toString()).gte(LocalDate.now(ZoneOffset.UTC).minusDays(archiveTtlDays).minusDays(1).toString()))\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/conductor-oss/conductor/commit/8bc7ba77df81c7b70b87aaeea2a9bb21fed2a5f6",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            2,
            4
        ]
    },
    {
        "input": "        Object jsonObject = payload;\n        Object jsonObject = payloadObject;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/conductor-oss/conductor/commit/abef8caf810c9da38c72e0e2e159ce1327e38db3",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "        closeClustered(vertices);\n        close(vertices);\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/011d271bf470600989a59a605dee05ae92034170",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            5,
            6
        ]
    },
    {
        "input": "        closeClustered(Collections.singletonList(vertx));\n        close(Collections.singletonList(vertx));\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/011d271bf470600989a59a605dee05ae92034170",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            1,
            5,
            6
        ]
    },
    {
        "input": "  protected void closeClustered(List clustered) throws Exception {\n    CountDownLatch latch = new CountDownLatch(clustered.size());\n    for (Vertx clusteredVertx : clustered) {\n  protected void close(List instances) throws Exception {\n    CountDownLatch latch = new CountDownLatch(instances.size());\n    for (Vertx clusteredVertx : instances) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/011d271bf470600989a59a605dee05ae92034170",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            5
        ]
    },
    {
        "input": "    testUseThreadPool(true);\n    testUseThreadPool(true, true);\n  private void testUseThreadPool(boolean useWorkerThreads) throws Exception {\n  private void testUseThreadPool(boolean useWorkerThreads, boolean useSni) throws Exception {\n    testUseThreadPool(false);\n    testUseThreadPool(false, false);\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/73e8566cb23ebd09bc7973d0728e0c3f7b1ead22",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8,
            6
        ]
    },
    {
        "input": "  private void testUseThreadPool(boolean useWorkerThreads) throws Exception {\n  private void testUseThreadPool(boolean useWorkerThreads, boolean useSni) throws Exception {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/73e8566cb23ebd09bc7973d0728e0c3f7b1ead22",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            6,
            7
        ]
    },
    {
        "input": "    testCancelWaiterBeforeConnection(false);\n    testCancelWaiterBeforeConnection(false, 0);\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/796fd7b98c97530b88eff398ff3f924f6f9c06ab",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            4,
            6
        ]
    },
    {
        "input": "  public void testCancelWaiterBeforeConnection(boolean success) throws Exception {\n  public void testCancelWaiterBeforeConnection(boolean success, int extra) throws Exception {\n    if (!success && extra > 0) {\n      throw new IllegalArgumentException();\n    }\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/796fd7b98c97530b88eff398ff3f924f6f9c06ab",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            4,
            5
        ]
    },
    {
        "input": "  private void connected(ContextInternal context, Channel ch, Promise connectHandler, SocketAddress remoteAddress, String applicationLayerProtocol) {\n  private void connected(ContextInternal context, Channel ch, Promise connectHandler, SocketAddress remoteAddress, String applicationLayerProtocol, boolean registerWriteHandlers) {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/8127c39ca7aee54a7d743025795450ce530d2000",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "                if(isCompressionSupported) {\n                if (isCompressionSupported) {\n                if(isDecompressionSupported) {\n                if (isDecompressionSupported) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/4db94b350b872dbf51589a8d8f4f148448d2b054",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "  private void testUpgradeToClearText(HttpMethod method, Buffer expected) throws Exception {\n  @Test\n  public void testUpgradeToClearTextWithCompression() throws Exception {\n    Buffer expected = Buffer.buffer(TestUtils.randomAlphaString(8192));\n    testUpgradeToClearText(HttpMethod.PUT, expected, options -> options.setCompressionSupported(true));\n  }\n\n  private void testUpgradeToClearText(HttpMethod method, Buffer expected, Handler optionsConfig) throws Exception {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/4db94b350b872dbf51589a8d8f4f148448d2b054",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            3,
            4
        ]
    },
    {
        "input": "      listener.onEvict();\n      // Eagerly evict from the pool\n      tryEvict();\n      listener.onEvict();\n      // Eagerly evict from the pool\n      tryEvict();\n      listener.onEvict();\n      conn.tryEvict();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/d97c5ed970c527e5b66445f9a992adbf28daa5be",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            4
        ]
    },
    {
        "input": "    checkShutdownHandler();\n    checkShutdown();\n    checkShutdownHandler();\n    checkShutdown();\n    checkShutdownHandler();\n    checkShutdown();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/d97c5ed970c527e5b66445f9a992adbf28daa5be",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            6,
            7
        ]
    },
    {
        "input": "        handler.handle(response);\n        context.dispatch(response, handler);\n          headHandler.handle(response);\n          context.dispatch(response, headHandler);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/0f817d056fb151761c5d5a40bcd2a1acbb0898d2",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "    this.channelGroup = new DefaultChannelGroup(vertx.getAcceptorEventLoopGroup().next());\n    this.channelGroup = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);\n    this.channelGroup = new DefaultChannelGroup(vertx.getAcceptorEventLoopGroup().next());\n    this.channelGroup = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/71c6cff74ab1bd7eb4641a1f6eb87ca90e199fe6",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "    return !isSSL();\n    return !isSsl();\n      wsURL = HttpUtils.getWebSocketLocation(request, isSSL());\n      wsURL = HttpUtils.getWebSocketLocation(request, isSsl());\n        h.scheme(conn.isSSL() ? \"https\" : \"http\");\n        h.scheme(conn.isSsl() ? \"https\" : \"http\");\n    return conn.isSSL();\n    return conn.isSsl();\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.375,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/3a6b91e327dce02540ac8c3128cd0b080f9edd22",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            2
        ]
    },
    {
        "input": "  public WebSocketMetric upgrade(HttpServerMetric requestMetric, ServerWebSocket serverWebSocket) {\n    requests.remove(requestMetric);\n    WebSocketMetric metric = new WebSocketMetric(requestMetric.socket, serverWebSocket);\n    webSockets.put(serverWebSocket, metric);\n    return metric;\n  }\n\n  @Override\n  public WebSocketMetric connected(SocketMetric socketMetric, ServerWebSocket serverWebSocket) {\n  public WebSocketMetric connected(SocketMetric socketMetric, HttpServerMetric requestMetric, ServerWebSocket serverWebSocket) {\n    if (!requests.remove(requestMetric)) {\n      throw new IllegalStateException();\n    }\n  default W connected(S socketMetric, ServerWebSocket serverWebSocket) {\n  default W connected(S socketMetric, R requestMetric, ServerWebSocket serverWebSocket) {\n          public Void connected(Void socketMetric, ServerWebSocket serverWebSocket) {\n          public Void connected(Void socketMetric, Void requestMetric, ServerWebSocket serverWebSocket) {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/e3e5f3cf8d0d5aa79d235fd0b31ea9a6e15cb5e5",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            6,
            7
        ]
    },
    {
        "input": "      synchronized (lock) {\n        allConnections.remove(conn);\n      }\n      allConnections.remove(conn);\n      synchronized (lock) {\n        availableConnections.add(conn);\n      }\n      availableConnections.add(conn);\n      synchronized (lock) {\n        allConnections.add(conn);\n      }\n      allConnections.add(conn);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/d4244c97f878a5c32ff49909c35fda59f04c3682",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            9,
            5
        ]
    },
    {
        "input": "      FileStreamChannel fileChannel = new FileStreamChannel(ar -> {\n      Future result = Future.future();\n      result.setHandler(ar -> {\n      FileStreamChannel fileChannel = new FileStreamChannel(ar -> {\n      Future result = Future.future();\n      result.setHandler(ar -> {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/77bf582d05fe5c971c115edf6f4f9adb6824ce9d",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "      ctx.channel().eventLoop().register(fileChannel);\n      fileChannel.pipeline().fireUserEventTriggered(raf);\n      ctx.channel()\n        .eventLoop()\n        .register(fileChannel)\n        .addListener((ChannelFutureListener) future -> {\n        if (future.isSuccess()) {\n          fileChannel.pipeline().fireUserEventTriggered(raf);\n        } else {\n          result.tryFail(future.cause());\n        }\n      });\n      handlerContext.channel().eventLoop().register(fileChannel);\n      fileChannel.pipeline().fireUserEventTriggered(raf);\n      handlerContext.channel()\n        .eventLoop()\n        .register(fileChannel)\n        .addListener((ChannelFutureListener) future -> {\n          if (future.isSuccess()) {\n            fileChannel.pipeline().fireUserEventTriggered(raf);\n          } else {\n            result.tryFail(future.cause());\n          }\n        });\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/77bf582d05fe5c971c115edf6f4f9adb6824ce9d",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "  public EventBusOptions setKeyStoreOptions(KeyCertOptions options) {\n    super.setKeyStoreOptions(options);\n  public EventBusOptions setKeyCertOptions(KeyCertOptions options) {\n    super.setKeyCertOptions(options);\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/0b90f95afd369b67e88fb67f38c0b79777c69c44",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2,
            4,
            6,
            8,
            10
        ]
    },
    {
        "input": "  public HttpClientOptions setTrustStoreOptions(TrustOptions options) {\n    super.setTrustStoreOptions(options);\n  public HttpClientOptions setTrustOptions(TrustOptions options) {\n    super.setTrustOptions(options);\n  public EventBusOptions setTrustStoreOptions(TrustOptions options) {\n    super.setTrustStoreOptions(options);\n  public EventBusOptions setTrustOptions(TrustOptions options) {\n    super.setTrustOptions(options);\n  public HttpServerOptions setTrustStoreOptions(TrustOptions options) {\n    super.setTrustStoreOptions(options);\n  public HttpServerOptions setTrustOptions(TrustOptions options) {\n    super.setTrustOptions(options);\n  public NetClientOptions setTrustStoreOptions(TrustOptions options) {\n    super.setTrustStoreOptions(options);\n  public NetClientOptions setTrustOptions(TrustOptions options) {\n    super.setTrustOptions(options);\n  public NetServerOptions setTrustStoreOptions(TrustOptions options) {\n    super.setTrustStoreOptions(options);\n  public NetServerOptions setTrustOptions(TrustOptions options) {\n    super.setTrustOptions(options);\n  public TCPSSLOptions setTrustStoreOptions(TrustOptions options) {\n  public TCPSSLOptions setTrustOptions(TrustOptions options) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.36363636363636365,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/0b90f95afd369b67e88fb67f38c0b79777c69c44",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            1,
            5,
            7,
            9,
            11
        ]
    },
    {
        "input": "  public HttpServerOptions setTrustStoreOptions(TrustOptions options) {\n    super.setTrustStoreOptions(options);\n  public HttpServerOptions setTrustOptions(TrustOptions options) {\n    super.setTrustOptions(options);\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.4666666666666667,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/0b90f95afd369b67e88fb67f38c0b79777c69c44",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            1,
            3,
            7,
            9,
            11
        ]
    },
    {
        "input": "  public NetServerOptions setKeyStoreOptions(KeyCertOptions options) {\n    super.setKeyStoreOptions(options);\n  public NetServerOptions setKeyCertOptions(KeyCertOptions options) {\n    super.setKeyCertOptions(options);\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/0b90f95afd369b67e88fb67f38c0b79777c69c44",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            0,
            2,
            4,
            6,
            10
        ]
    },
    {
        "input": "  public TCPSSLOptions setTrustStoreOptions(TrustOptions options) {\n  public TCPSSLOptions setTrustOptions(TrustOptions options) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.26666666666666666,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/0b90f95afd369b67e88fb67f38c0b79777c69c44",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            1,
            3,
            5,
            7,
            9
        ]
    },
    {
        "input": "  final VertxImpl.NamedWorkerPool pool;\n  final VertxImpl.SharedWorkerPool pool;\n  public NamedWorkerExecutor(ContextImpl context, VertxImpl.NamedWorkerPool pool) {\n  public NamedWorkerExecutor(ContextImpl context, VertxImpl.SharedWorkerPool pool) {\n  private final Map namedWorkerPools;\n  private final Map namedWorkerPools;\n  class NamedWorkerPool extends WorkerPool {\n  class SharedWorkerPool extends WorkerPool {\n    public NamedWorkerPool(String name, ExecutorService workerExec, ThreadPoolMetrics workerMetrics) {\n    public SharedWorkerPool(String name, ExecutorService workerExec, ThreadPoolMetrics workerMetrics) {\n    NamedWorkerPool namedWorkerPool = namedWorkerPools.get(name);\n    if (namedWorkerPool == null) {\n    SharedWorkerPool sharedWorkerPool = namedWorkerPools.get(name);\n    if (sharedWorkerPool == null) {\n      namedWorkerPools.put(name, namedWorkerPool = new NamedWorkerPool(name, workerExec, workerMetrics));\n      namedWorkerPools.put(name, sharedWorkerPool = new SharedWorkerPool(name, workerExec, workerMetrics));\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/9ea1dd20ae15aa77d03ffa6de50992a2124b2c68",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            5,
            8,
            9
        ]
    },
    {
        "input": "  class NamedWorkerPool extends WorkerPool {\n  class SharedWorkerPool extends WorkerPool {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/9ea1dd20ae15aa77d03ffa6de50992a2124b2c68",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            5,
            8,
            9
        ]
    },
    {
        "input": "    NamedWorkerPool namedWorkerPool = namedWorkerPools.get(name);\n    if (namedWorkerPool == null) {\n    SharedWorkerPool sharedWorkerPool = namedWorkerPools.get(name);\n    if (sharedWorkerPool == null) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/9ea1dd20ae15aa77d03ffa6de50992a2124b2c68",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            5,
            9,
            10,
            11
        ]
    },
    {
        "input": "    NamedWorkerExecutor namedExec = new NamedWorkerExecutor(context, namedWorkerPool);\n    NamedWorkerExecutor namedExec = new NamedWorkerExecutor(context, sharedWorkerPool);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/9ea1dd20ae15aa77d03ffa6de50992a2124b2c68",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            8,
            9,
            10
        ]
    },
    {
        "input": "  private volatile HttpClientConnection conn;\n  private volatile Object lock;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.7142857142857143,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/f46c7f602e249a44543c381a7633d2a0be82a3d6",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2
        ]
    },
    {
        "input": "    client.getNow(DEFAULT_HTTP_PORT, DEFAULT_HTTP_HOST, \"/\", res -> {\n    client.getNow(DEFAULT_HTTP_PORT, DEFAULT_HTTP_HOST, \"/1\", res -> {\n      client.getNow(DEFAULT_HTTP_PORT, DEFAULT_HTTP_HOST, \"/\", res -> {\n      client.getNow(DEFAULT_HTTP_PORT, DEFAULT_HTTP_HOST, \"/4\", res -> {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/f46c7f602e249a44543c381a7633d2a0be82a3d6",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            12
        ]
    },
    {
        "input": "    public Void requestBegin(SocketAddress localAddress, SocketAddress remoteAddress, HttpClientRequest request) {\n    public Void requestBegin(Void socketMetric, SocketAddress localAddress, SocketAddress remoteAddress, HttpClientRequest request) {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/fc2fff20017f66001e85376a011484f082f51611",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            5,
            7
        ]
    },
    {
        "input": "      public void listening(SocketAddress localAddress) {\n      }\n\n      public void listening(SocketAddress localAddress) {\n      }\n\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/fc2fff20017f66001e85376a011484f082f51611",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "            public void handle(final HttpServerFileUpload event) {\n              event.dataHandler(new Handler() {\n            public void handle(final HttpServerFileUpload up) {\n              up.dataHandler(new Handler() {\n              tu.azzert(event.name().equals(\"file\"));\n              tu.azzert(event.filename().equals(\"tmp-0.txt\"));\n              tu.azzert(event.contentType().equals(\"image/gif\"));\n              tu.azzert(up.name().equals(\"file\"));\n              tu.azzert(up.filename().equals(\"tmp-0.txt\"));\n              tu.azzert(up.contentType().equals(\"image/gif\"));\n              up.endHandler(new Handler() {\n                @Override\n                public void handle(Void v) {\n                  tu.azzert(up.size() == content.length());\n                }\n              });\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/eclipse-vertx/vert.x/commit/63e42823d7cf6af3bfa2660e81851ddcff052fbf",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "                return generateFactory(queryModel, executionContext);\n                return generateFactory(queryModel, executionContext, isSelect);\n        RecordCursorFactory updateToDataCursorFactory = generateFactory(selectQueryModel, executionContext);\n        RecordCursorFactory updateToDataCursorFactory = generateFactory(selectQueryModel, executionContext, false);\n        return generateFactory(queryModel, executionContext);\n        return generateFactory(queryModel, executionContext, false);\n    protected RecordCursorFactory generateFactory(QueryModel selectQueryModel, SqlExecutionContext executionContext) throws SqlException {\n        return codeGenerator.generate(selectQueryModel, executionContext);\n    protected RecordCursorFactory generateFactory(\n            QueryModel selectQueryModel,\n            SqlExecutionContext executionContext,\n            boolean isSelect\n    ) throws SqlException {\n        RecordCursorFactory factory = codeGenerator.generate(selectQueryModel, executionContext);\n        if (isSelect) {\n            return new RegisteredRecordCursorFactory(queryRegistry, query, factory);\n        } else {\n            return factory;\n        }\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/questdb/questdb/commit/8283a5db82ba3b8b7f5b9ecec06e5baa8f00941f",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            5,
            6,
            7
        ]
    },
    {
        "input": "            // normalize the path to use '/' on all OSes\n            return Paths.get(resource.toURI()).toFile().getAbsolutePath().replace('\\\\', '/');\n            return Paths.get(resource.toURI()).toFile().getAbsolutePath();\n            // normalize the path to use '/' on all OSes\n            return Paths.get(resource.toURI()).toFile().getAbsolutePath().replace('\\\\', '/');\n            return Paths.get(resource.toURI()).toFile().getAbsolutePath();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/questdb/questdb/commit/dc6d8bc9db568553e5800f8227a4ab240c5feb4d",
        "target_edit_idx": 13,
        "propagatable_edit_idx": [
            14
        ]
    },
    {
        "input": "                } catch (Throwable th) {\n                } catch (Throwable e) {\n                    throw th;\n                    throw e;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/questdb/questdb/commit/fe9c38a1a7a83d4a09d4006ac8b7e0b0d0cc624b",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "        if ((sink.getLevel() & this.level) != 0) {\n            int l = sink.length();\n\n        final int l = sink.length();\n        if ((sink.getLevel() & this.level) != 0 && l > 0) {\n        if ((sink.getLevel() & this.level) != 0) {\n            int l = sink.length();\n        final int l = sink.length();\n        if ((sink.getLevel() & this.level) != 0 && l > 0) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/questdb/questdb/commit/841aadb4ec9fc91a1af1d1a28cfc60ca24e6c91a",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "                    rollDeadlineFunction = this::getNextDayDealine;\n                    rollDeadlineFunction = this::getNextDayDeadline;\n    private long getNextDayDealine() {\n    private long getNextDayDeadline() {\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/questdb/questdb/commit/841aadb4ec9fc91a1af1d1a28cfc60ca24e6c91a",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "            removeColumnFiles(name, REMOVE_OR_LOG);\n\n            if (type == ColumnType.SYMBOL) {\n                removeSymbolMapFilesQuiet(name);\n            }\n\n            removeColumnFiles(name, type, REMOVE_OR_LOG);\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/questdb/questdb/commit/e5a5e7c1895a919f84f9177b41c1e3f6172ee1d5",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2,
            4
        ]
    },
    {
        "input": "    private void removeColumnFiles(CharSequence name, RemoveFileLambda removeLambda) {\n    private void removeColumnFiles(CharSequence columnName, int columnType, RemoveFileLambda removeLambda) {\n        if (type == ColumnType.SYMBOL) {\n            removeSymbolMapFilesLoud(name);\n        }\n\n        removeColumnFiles(name, REMOVE_OR_EXCEPTION);\n        removeColumnFiles(name, type, REMOVE_OR_EXCEPTION);\n            removeColumnFiles(name, REMOVE_OR_LOG);\n\n            if (type == ColumnType.SYMBOL) {\n                removeSymbolMapFilesQuiet(name);\n            }\n\n            removeColumnFiles(name, type, REMOVE_OR_LOG);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/questdb/questdb/commit/e5a5e7c1895a919f84f9177b41c1e3f6172ee1d5",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            2,
            3
        ]
    },
    {
        "input": "                    partitionCount = findDefaultPartitionCount();\n                    countDefaultPartitions();\n            partitionCount = findDefaultPartitionCount();\n            countDefaultPartitions();\n",
        "class": "clone",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/questdb/questdb/commit/1b6a0839ecda9d559f6a15f55d9be8c7bf0dbb55",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "            Batch b = p.readBatch(1);\n            Batch b = new Batch(p.read(1), q);\n            Batch b = p.readBatch(10);\n            Batch b = new Batch(p.read(10), q);\n            Batch b = tp.readBatch(1);\n            Batch b = new Batch(tp.read(1), q);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/elastic/logstash/commit/04786557883a415e2f95c7c43572f498ad14c986",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            12,
            13
        ]
    },
    {
        "input": "    private volatile String generatedId;\n    private volatile String generatedId;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/elastic/logstash/commit/0458c665f4215c17f786b4692ef1b6fa9b269825",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "    public List getSortedVerticesBefore(Vertex end) throws InvalidIRException {\n    public List getSortedVerticesBefore(Vertex end) {\n    public List getSortedVerticesAfter(Vertex start) throws InvalidIRException {\n    public List getSortedVerticesAfter(Vertex start) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/elastic/logstash/commit/96b4c20e07b390b7ed01e584d337a8c0a07335f4",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "    private int queueMaxSizeInBytes;\n    private long queueMaxSizeInBytes;\n    private int queueMaxSizeInBytes;\n    private long queueMaxSizeInBytes;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/elastic/logstash/commit/d7c8a19bd677e9386d0ca8b693cd193b06733c98",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "    public Settings setQueueMaxSizeInBytes(int size) {\n    public Settings setQueueMaxSizeInBytes(long size) {\n    Settings setQueueMaxSizeInBytes(int size);\n    Settings setQueueMaxSizeInBytes(long size);\n    public Settings setQueueMaxSizeInBytes(int size) {\n    public Settings setQueueMaxSizeInBytes(long size) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/elastic/logstash/commit/d7c8a19bd677e9386d0ca8b693cd193b06733c98",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            11,
            4
        ]
    },
    {
        "input": "    public int getQueueMaxSizeInBytes() { return queueMaxSizeInBytes; }\n    public long getQueueMaxSizeInBytes() { return queueMaxSizeInBytes; }\n    public int getQueueMaxSizeInBytes() { return this.queueMaxSizeInBytes; }\n    public long getQueueMaxSizeInBytes() { return this.queueMaxSizeInBytes; }\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/elastic/logstash/commit/d7c8a19bd677e9386d0ca8b693cd193b06733c98",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "      if (selected != null && typeFilter != selected.getFilterPredicate()) {\n        typeFilter = selected.getFilterPredicate();\n      if (selected != null && extraFilter != selected.getFilterPredicate()) {\n        extraFilter = selected.getFilterPredicate();\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/arduino/Arduino/commit/b66ed5e5d738e0e83c2ced183914cef3bd5f72fc",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4,
            5
        ]
    },
    {
        "input": "    if (o1.getTypes() == null) {\n    if (o1.getTypes().isEmpty() && o2.getTypes().isEmpty()) {\n      return 0;\n    }\n    if (o1.getTypes().isEmpty()) {\n    if (lib.getTypes() == null) {\n    if (lib.getTypes().isEmpty()) {\n    if (o2.getTypes() == null) {\n    if (o2.getTypes().isEmpty()) {\n    if (o1.getTypes() == null) {\n    if (o1.getTypes().isEmpty() && o2.getTypes().isEmpty()) {\n      return 0;\n    }\n    if (o1.getTypes().isEmpty()) {\n    if (o2.getTypes() == null) {\n    if (o2.getTypes().isEmpty()) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/arduino/Arduino/commit/ac570c50bd3ccc5e9f20f0a06ce668fa4b88c6fc",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            8,
            1,
            3,
            4
        ]
    },
    {
        "input": "     retriggerDiscovery();\n     retriggerDiscovery(true);\n    serialBoardsLister.retriggerDiscovery();\n    serialBoardsLister.retriggerDiscovery(false);\n  public synchronized void retriggerDiscovery() {\n  public synchronized void retriggerDiscovery(boolean polled) {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/arduino/Arduino/commit/c5d88f09aecf35ee16ec09fa3c78495ab1817dcb",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            0,
            3
        ]
    },
    {
        "input": "        Graphics2D g2 = (Graphics2D) g;\n        g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n                RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);\n\n    //}\n\n    //Graphics2D g2 = (Graphics2D) g;\n    //g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n    //                    RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/arduino/Arduino/commit/08ad60032f26b6a1a58f78d94e01cf86806061ca",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "    Graphics g = offscreen.getGraphics();\n    Graphics2D g = Theme.setupGraphics2D(offscreen.getGraphics());\n    Graphics g = offscreen.getGraphics();\n    Graphics2D g = Theme.setupGraphics2D(offscreen.getGraphics());\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/arduino/Arduino/commit/08ad60032f26b6a1a58f78d94e01cf86806061ca",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            12
        ]
    },
    {
        "input": "    graphics.setFont(font); // needs to be set each time on osx\n    int ascent = graphics.getFontMetrics().getAscent();\n    g.setFont(font); // needs to be set each time on osx\n    int ascent = g.getFontMetrics().getAscent();\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.7142857142857143,
        "commit_url": "https://github.com/arduino/Arduino/commit/08ad60032f26b6a1a58f78d94e01cf86806061ca",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "    coreLibDir = new File(\n    libDir = new File(\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/arduino/Arduino/commit/12773c014aee23bae652e5f728bc60f039fd13f4",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "        verify(consumerMock, times(1)).sendMessages(any(List.class), any(EntryBatchSizes.class),\n                eq(null), anyInt(), anyLong(), anyLong(), any(RedeliveryTracker.class));\n        verify(consumerMock, times(1)).sendMessages(any(List.class), any(List.class), any(EntryBatchSizes.class),\n                eq(null), anyInt(), anyLong(), anyLong(), any(RedeliveryTracker.class), anyLong());\n        }).when(consumerMock).sendMessages(any(List.class), any(EntryBatchSizes.class), any(),\n                anyInt(), anyLong(), anyLong(), any(RedeliveryTracker.class));\n        }).when(consumerMock).sendMessages(any(List.class), any(List.class), any(EntryBatchSizes.class), any(),\n                anyInt(), anyLong(), anyLong(), any(RedeliveryTracker.class), anyLong());\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/bf5d6aac1b62d195c544a486bcefec676948a3a4",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "            log.info(\"[{}] Creating a new ledger after closed\", name);\n            log.info(\"[{}] Creating a new ledger after closed {}\", name,\n                    currentLedger == null ? \"null\" : currentLedger.getId());\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/8485d68197300dca83b7b443c8aebc4418a85e4b",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            1
        ]
    },
    {
        "input": "import io.netty.buffer.PooledByteBufAllocator;\nimport io.netty.buffer.PooledByteBufAllocator;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/pulsar/commit/ac94296d2488b2b13d76fa2b1bfa71e9e3cfbb45",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "        pulsar.getBrokerService().removeTopicFromCache(topic1);\n        pulsar.getBrokerService().removeTopicFromCache(topic);\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/03f916702ec2a887833543fdea5a2d5305a87302",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "    private final ObjectMapper objectMapper;\n    private final ObjectReader objectReader;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/a56bd876f5acf328c7512715279212c650e52d43",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            4,
            6
        ]
    },
    {
        "input": "        this.objectMapper = objectMapper;\n        this.objectReader = pojo != null ? objectMapper.readerFor(pojo) : objectMapper.reader();\n        this.objectMapper = objectMapper;\n        this.objectReader = pojo != null ? objectMapper.readerFor(pojo) : objectMapper.reader();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/a56bd876f5acf328c7512715279212c650e52d43",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "            return objectMapper.readValue(bytes, offset, length, this.pojo);\n            return objectReader.readValue(bytes, offset, length);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/a56bd876f5acf328c7512715279212c650e52d43",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            8,
            9
        ]
    },
    {
        "input": "            return objectMapper.readValue(inputStream, pojo);\n            return objectReader.readValue(inputStream);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/a56bd876f5acf328c7512715279212c650e52d43",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            8,
            3
        ]
    },
    {
        "input": "                .thenRun(() -> validateTopicOperation(topicName, TopicOperation.CONSUME, subName))\n                .thenCompose(__ -> validateTopicOperationAsync(topicName, TopicOperation.CONSUME, subName))\n                .thenRun(() -> validateTopicOperation(topicName, TopicOperation.CONSUME, subName))\n                .thenCompose(__ -> validateTopicOperationAsync(topicName, TopicOperation.CONSUME, subName))\n                .thenRun(() -> validateTopicOperation(topicName, TopicOperation.UNSUBSCRIBE, subName))\n                .thenCompose(__ -> validateTopicOperationAsync(topicName, TopicOperation.UNSUBSCRIBE, subName))\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.2857142857142857,
        "commit_url": "https://github.com/apache/pulsar/commit/3ea75689ac47d13b5f1555acd8011cd8ec90821c",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2
        ]
    },
    {
        "input": "            if (this.aggreagteLocalUsagePeriodicTask == null) {\n            if (this.aggregateLocalUsagePeriodicTask == null) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/62d900f6792b6540bf0b992cd6e868b8bea6231c",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4,
            5,
            6,
            7
        ]
    },
    {
        "input": "    private ScheduledFuture aggreagteLocalUsagePeriodicTask;\n    private ScheduledFuture aggregateLocalUsagePeriodicTask;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/apache/pulsar/commit/62d900f6792b6540bf0b992cd6e868b8bea6231c",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            6
        ]
    },
    {
        "input": "            addressFuture.completeExceptionally(connectionException);\n            addressFuture.completeExceptionally(FutureUtil.unwrapCompletionException(connectionException));\n            partitionFuture.completeExceptionally(connectionException);\n            partitionFuture.completeExceptionally(FutureUtil.unwrapCompletionException(connectionException));\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/apache/pulsar/commit/320300cd2e0c58ee96981996d254884a683b7dd4",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "        servletHolder.setInitParameter(\"preserveHost\", \"true\");\n        servletHolder.setInitParameter(\"preserveHost\", \"true\");\n        servletHolder.setInitParameter(\"preserveHost\", \"true\");\n        servletHolder.setInitParameter(\"preserveHost\", \"true\");\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/e8ee8aff448e6d0c329e99c8bda47c3b45228880",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3
        ]
    },
    {
        "input": "            fail(\"split bundle shouldn't have thrown exception\");\n            fail(\"split bundle shouldn't have thrown exception\", e);\n            fail(\"split bundle shouldn't have thrown exception\");\n            fail(\"split bundle shouldn't have thrown exception\", e);\n            fail(\"split bundle shouldn't have thrown exception\");\n            fail(\"split bundle shouldn't have thrown exception\", e);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/630c7589bbba46a0b99327caa4e28664784b8bc2",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            3,
            5
        ]
    },
    {
        "input": "            fail(\"split bundle shouldn't have thrown exception\");\n            fail(\"split bundle shouldn't have thrown exception\", e);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/630c7589bbba46a0b99327caa4e28664784b8bc2",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            3,
            4
        ]
    },
    {
        "input": "            return new LeastLongTermMessageRate(conf);\n            return new LeastLongTermMessageRate();\n        return new LeastLongTermMessageRate(conf);\n        return new LeastLongTermMessageRate();\n        ModularLoadManagerStrategy strategy = new LeastLongTermMessageRate(conf);\n        ModularLoadManagerStrategy strategy = new LeastLongTermMessageRate();\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/apache/pulsar/commit/e6ef5ec38a518f39e51b613214283ef89e360637",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3,
            6
        ]
    },
    {
        "input": "        return new LeastLongTermMessageRate(conf);\n        return new LeastLongTermMessageRate();\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/apache/pulsar/commit/e6ef5ec38a518f39e51b613214283ef89e360637",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            2,
            6
        ]
    },
    {
        "input": "        placementStrategy = ModularLoadManagerStrategy.create(conf);\n        placementStrategy = ModularLoadManagerStrategy.create();\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/e6ef5ec38a518f39e51b613214283ef89e360637",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "        Assert.assertTrue(validateMetadata(metadata));\n        Assert.assertTrue(validateMetadata(metadata, 1024));\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/3dbf1f50de00f5b04f9dbecdeb7fe0131b1b4268",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            1,
            3,
            7,
            8,
            9,
            10,
            11,
            12,
            13,
            14
        ]
    },
    {
        "input": "        Assert.assertTrue(validateMetadata(metadata));\n        Assert.assertTrue(validateMetadata(metadata, 1024));\n                    Metadata.validateMetadata(metadata);\n                    Metadata.validateMetadata(metadata,\n                            service.getPulsar().getConfiguration().getMaxConsumerMetadataSize());\n    public static void validateMetadata(Map metadata) throws IllegalArgumentException {\n    public static void validateMetadata(Map metadata,\n                                        int maxConsumerMetadataSize) throws IllegalArgumentException {\n        Assert.assertTrue(validateMetadata(metadata));\n        Assert.assertTrue(validateMetadata(metadata, 1024));\n        Assert.assertTrue(validateMetadata(metadata));\n        Assert.assertTrue(validateMetadata(metadata, 1024));\n        Assert.assertTrue(validateMetadata(metadata));\n        Assert.assertTrue(validateMetadata(metadata, 1024));\n        Assert.assertFalse(validateMetadata(metadata));\n        Assert.assertFalse(validateMetadata(metadata, 1024));\n        Assert.assertFalse(validateMetadata(metadata));\n        Assert.assertFalse(validateMetadata(metadata, 1024));\n        Assert.assertFalse(validateMetadata(metadata));\n        Assert.assertFalse(validateMetadata(metadata, 1024));\n\n        // set bigger maxConsumerMetadataSize, now validation should pass\n        Assert.assertTrue(validateMetadata(metadata, 1024 * 10));\n    private static boolean validateMetadata(Map metadata) {\n    private static boolean validateMetadata(Map metadata, int maxSize) {\n            Metadata.validateMetadata(metadata);\n            Metadata.validateMetadata(metadata, maxSize);\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/3dbf1f50de00f5b04f9dbecdeb7fe0131b1b4268",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            1,
            3,
            6,
            7,
            8,
            10,
            11,
            12,
            13,
            14
        ]
    },
    {
        "input": "        Assert.assertFalse(validateMetadata(metadata));\n        Assert.assertFalse(validateMetadata(metadata, 1024));\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/3dbf1f50de00f5b04f9dbecdeb7fe0131b1b4268",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            1,
            3,
            6,
            7,
            8,
            9,
            11,
            12,
            13,
            14
        ]
    },
    {
        "input": "        Assert.assertFalse(validateMetadata(metadata));\n        Assert.assertFalse(validateMetadata(metadata, 1024));\n\n        // set bigger maxConsumerMetadataSize, now validation should pass\n        Assert.assertTrue(validateMetadata(metadata, 1024 * 10));\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/3dbf1f50de00f5b04f9dbecdeb7fe0131b1b4268",
        "target_edit_idx": 12,
        "propagatable_edit_idx": [
            1,
            3,
            6,
            7,
            8,
            9,
            10,
            11,
            13,
            14
        ]
    },
    {
        "input": "    private static boolean validateMetadata(Map metadata) {\n    private static boolean validateMetadata(Map metadata, int maxSize) {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/3dbf1f50de00f5b04f9dbecdeb7fe0131b1b4268",
        "target_edit_idx": 13,
        "propagatable_edit_idx": [
            1,
            3,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            14
        ]
    },
    {
        "input": "            Metadata.validateMetadata(metadata);\n            Metadata.validateMetadata(metadata, maxSize);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/3dbf1f50de00f5b04f9dbecdeb7fe0131b1b4268",
        "target_edit_idx": 14,
        "propagatable_edit_idx": [
            1,
            3,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "    public void close() throws Exception {\n    public void close() {\n    public void close() throws Exception {\n    public void close() {\n    public void close() throws Exception {\n    public void close() {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/526979a87e3cea5c4c90667ce86aed52927fd631",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3,
            4
        ]
    },
    {
        "input": "            try {\n                topicPublishRateLimiter.close();\n            } catch (Exception e) {\n                log.warn(\"Error closing topicPublishRateLimiter for topic {}\", topic, e);\n            }\n            topicPublishRateLimiter.close();\n            try {\n                topicPublishRateLimiter.close();\n            } catch (Exception e) {\n                log.warn(\"Error closing topicPublishRateLimiter for topic {}\", topic, e);\n            }\n            topicPublishRateLimiter.close();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/526979a87e3cea5c4c90667ce86aed52927fd631",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "    Sate increaseConnection(SocketAddress remoteAddress);\n    State increaseConnection(SocketAddress remoteAddress);\n    enum Sate {\n    enum State {\n        public Sate increaseConnection(SocketAddress remoteAddress) {\n        public State increaseConnection(SocketAddress remoteAddress) {\n                return Sate.OK;\n                return State.OK;\n                return Sate.OK;\n                return State.OK;\n                    return Sate.REACH_MAX_CONNECTION;\n                    return State.REACH_MAX_CONNECTION;\n                    return Sate.REACH_MAX_CONNECTION_PER_IP;\n                    return State.REACH_MAX_CONNECTION_PER_IP;\n            return Sate.OK;\n            return State.OK;\n        ConnectionController.Sate sate = connectionController.increaseConnection(remoteAddress);\n        if (!sate.equals(ConnectionController.Sate.OK)) {\n            ctx.channel().writeAndFlush(Commands.newError(-1, ServerError.NotAllowedError,\n                    sate.equals(ConnectionController.Sate.REACH_MAX_CONNECTION)\n                            ? \"Reached the maximum number of connections\"\n                            : \"Reached the maximum number of connections on address\" + remoteAddress));\n            ctx.channel().close();\n        ConnectionController.State state = connectionController.increaseConnection(remoteAddress);\n        if (!state.equals(ConnectionController.State.OK)) {\n            ctx.writeAndFlush(Commands.newError(-1, ServerError.NotAllowedError,\n                            state.equals(ConnectionController.State.REACH_MAX_CONNECTION)\n                                    ? \"Reached the maximum number of connections\"\n                                    : \"Reached the maximum number of connections on address\" + remoteAddress))\n                    .addListener(ChannelFutureListener.CLOSE);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/cd3816aa351ba8a1f0e9876eefe019b7f0d282d8",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            9
        ]
    },
    {
        "input": "        return authenticationDataSource.getAuthorizationID();\n        return pulsarSaslServer.getAuthorizationID();\n        return authenticationDataSource.isComplete();\n        return pulsarSaslServer.isComplete();\n        return authenticationDataSource.authenticate(authData);\n        return pulsarSaslServer.response(authData);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/apache/pulsar/commit/76bffd197dfc1c3589bd80d6db38dbe065be82b0",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9,
            10
        ]
    },
    {
        "input": "    @Override\n    public void accept(Notification t) {\n    public void handleDataNotification(Notification t) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/908a07346a1f6edc2af23a0268e23ee2da40d433",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "                                                final double directMemoryWeight, final double bandwithInWeight,\n                                                final double bandWithOutWeight) {\n                                                final double directMemoryWeight, final double bandwidthInWeight,\n                                                final double bandwidthOutWeight) {\n                directMemory.percentUsage() * directMemoryWeight, bandwidthIn.percentUsage() * bandwithInWeight,\n                bandwidthOut.percentUsage() * bandWithOutWeight) / 100;\n                directMemory.percentUsage() * directMemoryWeight, bandwidthIn.percentUsage() * bandwidthInWeight,\n                bandwidthOut.percentUsage() * bandwidthOutWeight) / 100;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/bfa425868c5dc2bf10331e5a07e5c2815e1c6631",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "        JsonParser parser = new JsonParser();\n        return parser.parse(json).getAsJsonObject();\n        return JsonParser.parseString(json).getAsJsonObject();\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/04ee81fd1851dee51080c2c27e9ec652722daf09",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "            if (dataFormat != null ? !dataFormat.equals(that.dataFormat) : that.dataFormat != null) {\n            if (!Objects.equals(dataFormat, that.dataFormat)) {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/0db6d23a26888feef84b0de5241529b876a30318",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            2,
            3
        ]
    },
    {
        "input": "        double elapsed = (System.nanoTime() - start) / 1e9;;\n        double elapsed = (System.nanoTime() - start) / 1e9;\n        double elapsed = (System.nanoTime() - start) / 1e9;;\n        double elapsed = (System.nanoTime() - start) / 1e9;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/pulsar/commit/cb9a3a7239bd477aae2b7e714f96f4ca28c8b1c1",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "        updatedAfterCached = true;\n        updatedAfterCachedForSize = true;\n        updatedAfterCachedForToString = true;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.2857142857142857,
        "commit_url": "https://github.com/apache/pulsar/commit/a4cfcd7868da02ee5782cc5496149af08c0c3afa",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2,
            5,
            6,
            7
        ]
    },
    {
        "input": "        if (updatedAfterCached) {\n        if (updatedAfterCachedForToString) {\n        updatedAfterCached = true;\n        updatedAfterCachedForSize = true;\n        updatedAfterCachedForToString = true;\n        updatedAfterCached = true;\n        updatedAfterCachedForSize = true;\n        updatedAfterCachedForToString = true;\n            updatedAfterCached = false;\n            updatedAfterCachedForToString = false;\n        updatedAfterCached = true;\n        updatedAfterCachedForSize = true;\n        updatedAfterCachedForToString = true;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.4,
        "commit_url": "https://github.com/apache/pulsar/commit/a4cfcd7868da02ee5782cc5496149af08c0c3afa",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            1,
            2,
            6,
            7
        ]
    },
    {
        "input": "                            \"tenant  \\n\" +\n                            \"  The tenant of functions.  \\n\" +\n                            \"namespace  \\n\" +\n                            \"  The namespace of functions.  \\n\" +\n                            \"name  \\n\" +\n                            \"  The name of functions.  \\n\" +\n                            \"tenant  \\n\" +\n                            \"  The tenant of source.  \\n\" +\n                            \"namespace  \\n\" +\n                            \"  The namespace of source.  \\n\" +\n                            \"name  \\n\" +\n                            \"  The name of source.  \\n\" +\n                            \"tenant  \\n\" +\n                            \"  The tenant of source.  \\n\" +\n                            \"namespace  \\n\" +\n                            \"  The namespace of source.  \\n\" +\n                            \"name  \\n\" +\n                            \"  The name of source.  \\n\" +\n                            \"tenant  \\n\" +\n                            \"  The tenant of functions.  \\n\" +\n                            \"namespace  \\n\" +\n                            \"  The namespace of functions.  \\n\" +\n                            \"name  \\n\" +\n                            \"  The name of functions.  \\n\" +\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/pulsar/commit/628bdd73eb32bf8579a969625319eb328f4a8459",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            12,
            13,
            6
        ]
    },
    {
        "input": "                            \"  The map of input topics to Schema class names (The customSchemaInputs is JSON string).  \\n\" +\n                            \"  The map of input topics to Schema class names (specified as a JSON object).  \\n\" +\n                            \"  The map of input topics to SerDe class names (The customSerdeInputs is JSON string).  \\n\" +\n                            \"  The map of input topics to SerDe class names (specified as a JSON object).  \\n\" +\n                            \"  The map of input topics to SerDe class names (The customSerdeInputs is JSON string).  \\n\" +\n                            \"  The map of input topics to SerDe class names (specified as a JSON object).  \\n\" +\n                            \"  The map of input topics to Schema class names (The customSchemaInputs is JSON string).  \\n\" +\n                            \"  The map of input topics to Schema class names (specified as a JSON object).  \\n\" +\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/apache/pulsar/commit/628bdd73eb32bf8579a969625319eb328f4a8459",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            8,
            2,
            7
        ]
    },
    {
        "input": "                            \"  A generalized way of specifying inputs.  \\n\" +\n                            \"   The map of input topics to its consumer configuration, each configuration has schema of \" +\n                            \"   {\\\"schemaType\\\": \\\"type-x\\\", \\\"serdeClassName\\\": \\\"name-x\\\", \\\"isRegexPattern\\\": true, \\\"receiverQueueSize\\\": 5}  \\n\" +\n                            \"  A generalized way of specifying inputs.  \\n\" +\n                            \"   The map of input topics to its consumer configuration, each configuration has schema of \" +\n                            \"   {\\\"schemaType\\\": \\\"type-x\\\", \\\"serdeClassName\\\": \\\"name-x\\\", \\\"isRegexPattern\\\": true, \\\"receiverQueueSize\\\": 5}  \\n\" +\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/628bdd73eb32bf8579a969625319eb328f4a8459",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "                            \"  [--input] and [--topic-pattern] are mutually exclusive. Add SerDe class name for a \" +\n                            \"  pattern in --custom-serde-inputs (supported for java fun only)  \\n\" +\n                            \"  [input] and [topic-pattern] are mutually exclusive. Add SerDe class name for a \" +\n                            \"  pattern in customSerdeInputs (supported for java fun only)  \\n\" +\n                            \"  [--input] and [--topic-pattern] are mutually exclusive. Add SerDe class name for a \" +\n                            \"  pattern in --custom-serde-inputs (supported for java fun only)  \\n\" +\n                            \"  [input] and [topicsPattern] are mutually exclusive. Add SerDe class name for a \" +\n                            \"  pattern in customSerdeInputs (supported for java fun only)  \\n\" +\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/pulsar/commit/628bdd73eb32bf8579a969625319eb328f4a8459",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "                            \"  User-defined config key/values  \\n\" +\n                            \"  A map of user-defined configurations (specified as a JSON object).  \\n\" +\n                            \"  User-defined config key/values  \\n\" +\n                            \"  A map of user-defined configurations (specified as a JSON object).  \\n\" +\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/apache/pulsar/commit/628bdd73eb32bf8579a969625319eb328f4a8459",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "                    new ClientConfiguration().getZkLedgersRootPath());\n                    new ClientConfiguration().getZkLedgersRootPath(),\n                    this.getWorkerConfig().map(wc -> wc.getStateStorageServiceUrl()).orElse(null));\n            new ClientConfiguration().getZkLedgersRootPath());\n            new ClientConfiguration().getZkLedgersRootPath(),\n            pulsar.getWorkerConfig().map(wc -> wc.getStateStorageServiceUrl()).orElse(null));\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/pulsar/commit/355ebc55004d37c71e5ff36bcb415f7a7a212970",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "            this.bkClientFactory = getBookKeeperClientFactory();\n            this.bkClientFactory = newBookKeeperClientFactory();\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/655b7c0edb32a5c22b3a9941764f9867fcb08d36",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9,
            11,
            12
        ]
    },
    {
        "input": "    abstract public boolean isConnected();\n\n    abstract public boolean isConnected();\n\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/d7ab96d3ecb84e3e1e8ff83a1d6a9bceab38eaf6",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "    int getBlockEntryCount();\n    public abstract int getBlockEntryCount();\n    int getBlockEntryBytesCount();\n    public abstract int getBlockEntryBytesCount();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/apache/pulsar/commit/c570fb18289c3183d28b5128df6759c84e6c5afd",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "            return request(adminQuotas).get(ResourceQuota.class);\n            return request(adminV2Quotas).get(ResourceQuota.class);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/apache/pulsar/commit/6d108d820698cbc831dfa246e13e08f2bed9c5b2",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "            return request(\n                    adminQuotas.path(ns.getProperty()).path(ns.getCluster()).path(ns.getLocalName()).path(bundle))\n                    .get(ResourceQuota.class);\n            WebTarget path = namespacePath(ns, bundle);\n            return request(path).get(ResourceQuota.class);\n            request(\n                    adminQuotas.path(ns.getProperty()).path(ns.getCluster()).path(ns.getLocalName()).path(bundle))\n                    .delete();\n            WebTarget path = namespacePath(ns, bundle);\n            request(path).delete();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/apache/pulsar/commit/6d108d820698cbc831dfa246e13e08f2bed9c5b2",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "            String json = request(adminBrokerStats.path(\"/mbeans\")).get(String.class);\n            String json = request(adminV2BrokerStats.path(\"/mbeans\")).get(String.class);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/apache/pulsar/commit/cbdaab1f7d7232207566eedf9e99f2c9f5681f28",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            4,
            5,
            7,
            8,
            9
        ]
    },
    {
        "input": "    public JsonObject getBrokerResourceAvailability(String property, String cluster, String namespace)\n            throws PulsarAdminException {\n    public JsonObject getBrokerResourceAvailability(String namespace) throws PulsarAdminException {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/cbdaab1f7d7232207566eedf9e99f2c9f5681f28",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            0
        ]
    },
    {
        "input": "                int checksum = readChecksum(headersAndPayload).intValue();\n                int checksum = readChecksum(headersAndPayload);\n            int checksum = readChecksum(headersAndPayload).intValue();\n            int checksum = readChecksum(headersAndPayload);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/apache/pulsar/commit/7e035b0bd5c1fcbe6cb583ae11e6674e0bddc4f0",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "        int parsedChecksum = Commands.readChecksum(b).intValue();\n        int parsedChecksum = Commands.readChecksum(b);\n        int parsedChecksum = Commands.readChecksum(b).intValue();\n        int parsedChecksum = Commands.readChecksum(b);\n        int parsedChecksum = Commands.readChecksum(b).intValue();\n        int parsedChecksum = Commands.readChecksum(b);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/apache/pulsar/commit/7e035b0bd5c1fcbe6cb583ae11e6674e0bddc4f0",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5,
            6
        ]
    },
    {
        "input": "        Commands.readChecksum(payloadAndMetadata);\n        Commands.skipChecksumIfPresent(payloadAndMetadata);\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.7857142857142857,
        "commit_url": "https://github.com/apache/pulsar/commit/7e035b0bd5c1fcbe6cb583ae11e6674e0bddc4f0",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "        MockZooKeeper zk = MockZooKeeper.newInstance();\n        MockZooKeeper zk = MockZooKeeper.newInstance(MoreExecutors.sameThreadExecutor());\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/apache/pulsar/commit/c68e8bc28b8f0cad3b32836f14dfbbd20b6dd4ba",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "        zkClient = MockZooKeeper.newInstance();\n        zkClient = MockZooKeeper.newInstance(MoreExecutors.sameThreadExecutor());\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/apache/pulsar/commit/c68e8bc28b8f0cad3b32836f14dfbbd20b6dd4ba",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "        TestAbstract color = DL4JClassLoading.createNewInstance(colorClassName, Object.class, new Class[] { int.class, int.class, int.class }, 45, 175, 200);\n        TestAbstract rectangle = DL4JClassLoading.createNewInstance(rectangleClassName, Object.class, new Class[] { int.class, int.class, TestAbstract.class }, 10, 15, color);\n        TestAbstract color = DL4JClassLoading.createNewInstance(colorClassName, Object.class, new Class[] { int.class, int.class, int.class }, new Object[]{45, 175, 200});\n        TestAbstract rectangle = DL4JClassLoading.createNewInstance(rectangleClassName, Object.class, new Class[] { int.class, int.class, TestAbstract.class }, new Object[]{10, 15, color});\n        TestAbstract instance = DL4JClassLoading.createNewInstance(className, TestAbstract.class, \"white\");\n        TestAbstract instance = DL4JClassLoading.createNewInstance(className, new Object[]{TestAbstract.class, \"white\"});\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/deeplearning4j/deeplearning4j/commit/f553a448671fbbc5e1888a7c91786fbff74b6856",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "                helperRet =  DL4JClassLoading.createNewInstance(\n                helperRet =  (LayerHelper) DL4JClassLoading.createNewInstance(\n            helperRet =  DL4JClassLoading.createNewInstance(\n            helperRet = DL4JClassLoading.createNewInstance(\n                    helperRet = DL4JClassLoading.createNewInstance(\n                    helperRet =  (LayerHelper) DL4JClassLoading.createNewInstance(\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/deeplearning4j/deeplearning4j/commit/f553a448671fbbc5e1888a7c91786fbff74b6856",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            9,
            7
        ]
    },
    {
        "input": "    Assert.assertEquals(\n        new URL(\"https://somerealm?service=someservice&scope=repository:someimage:scope\"),\n        registryAuthenticator.getAuthenticationUrl(\n            null, Collections.singletonMap(\"someimage\", \"scope\")));\n    assertThat(\n            registryAuthenticator.getAuthenticationUrl(\n                null, Collections.singletonMap(\"someimage\", \"scope\")))\n        .isEqualTo(\n            new URL(\"https://somerealm?service=someservice&scope=repository:someimage:scope\"));\n    Assert.assertEquals(\n        new URL(\"https://somerealm?service=someservice&scope=repository:someimage:scope\"),\n        registryAuthenticator.getAuthenticationUrl(\n            null, Collections.singletonMap(\"someimage\", \"scope\")));\n    assertThat(\n            registryAuthenticator.getAuthenticationUrl(\n                null, Collections.singletonMap(\"someimage\", \"scope\")))\n        .isEqualTo(\n            new URL(\"https://somerealm?service=someservice&scope=repository:someimage:scope\"));\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/GoogleContainerTools/jib/commit/8c35a15a1c5be1b249a7bab87418598a515a8666",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "    Assert.assertFalse(\n        RegistryAuthenticator.fromAuthenticationMethod(\n    assertThat(\n            RegistryAuthenticator.fromAuthenticationMethod(\n                \"Basic\", registryEndpointRequestProperties, \"user-agent\", httpClient))\n        .isEmpty();\n\n    assertThat(\n            RegistryAuthenticator.fromAuthenticationMethod(\n    Assert.assertFalse(\n        RegistryAuthenticator.fromAuthenticationMethod(\n    assertThat(\n            RegistryAuthenticator.fromAuthenticationMethod(\n    Assert.assertFalse(\n        RegistryAuthenticator.fromAuthenticationMethod(\n    assertThat(\n            RegistryAuthenticator.fromAuthenticationMethod(\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/GoogleContainerTools/jib/commit/8c35a15a1c5be1b249a7bab87418598a515a8666",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            9,
            7
        ]
    },
    {
        "input": "                httpClient)\n            .isPresent());\n                httpClient))\n        .isEmpty();\n                httpClient)\n            .isPresent());\n                httpClient))\n        .isEmpty();\n                httpClient)\n            .isPresent());\n                httpClient))\n        .isEmpty();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/GoogleContainerTools/jib/commit/8c35a15a1c5be1b249a7bab87418598a515a8666",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8,
            10
        ]
    },
    {
        "input": "  private final Path lockFile;\n  private final Path lockFilePath;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/GoogleContainerTools/jib/commit/7e8489679722870f14ded2bc9dcd42461d69425f",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3,
            4
        ]
    },
    {
        "input": "  List listDigests() throws IOException, CacheCorruptedException;\n  Set fetchDigests() throws IOException, CacheCorruptedException;\n  List listDigests() throws IOException, CacheCorruptedException {\n  Set fetchDigests() throws IOException, CacheCorruptedException {\n      List layerDigests = new ArrayList<>(layerDirectoriesList.size());\n      Set layerDigests = new HashSet<>(layerDirectoriesList.size());\n      defaultCacheStorageReader.listDigests();\n      defaultCacheStorageReader.fetchDigests();\n  public List listDigests() throws IOException, CacheCorruptedException {\n    return defaultCacheStorageReader.listDigests();\n  public Set fetchDigests() throws IOException, CacheCorruptedException {\n    return defaultCacheStorageReader.fetchDigests();\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/GoogleContainerTools/jib/commit/2419a62b5f73d6357742aae800a369168ae493db",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            10,
            11,
            14,
            7
        ]
    },
    {
        "input": "TOKEN = \"hvs.LPUqFLiJZXO3Q8kNtCawP33i\" # Your auth token\nTOKEN = \"\" # Your auth token\nTOKEN = \"hvs.LPUqFLiJZXO3Q8kNtCawP33i\" # Your auth token\nTOKEN = \"\" # Your auth token\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tink-crypto/tink/commit/620eca570cf6a4482a0f5b16b552e51acbbfb5ab",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "#KEY_URI = ('hcvault://hcvault.corp.com:8200/transit/keys/key-1')\nKEY_URI = ('hcvault://10.10.18.215:8200/transit/keys/key-1')\nKEY_URI = ('hcvault://hcvault.corp.com:8200/transit/keys/key-1') # Replace this with your vault URI\n#KEY_URI = ('hcvault://hcvault.corp.com:8200/transit/keys/key-1')\nKEY_URI = ('hcvault://10.10.18.215:8200/transit/keys/key-1')\nKEY_URI = ('hcvault://hcvault.corp.com:8200/transit/keys/key-1') # Replace this with your vault URI\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/tink-crypto/tink/commit/620eca570cf6a4482a0f5b16b552e51acbbfb5ab",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "\treturn fmt.Errorf(\"keyset_manager: key not found %d\", keyID)\n\treturn fmt.Errorf(\"keyset_manager: key with id %d not found\", keyID)\n\treturn fmt.Errorf(\"keyset_manager: key not found %d\", keyID)\n\treturn fmt.Errorf(\"keyset_manager: key with id %d not found\", keyID)\n\treturn fmt.Errorf(\"keyset_manager: key not found %d\", keyID)\n\treturn fmt.Errorf(\"keyset_manager: key with id %d not found\", keyID)\n\treturn fmt.Errorf(\"keyset_manager: key not found %d\", keyID)\n\treturn fmt.Errorf(\"keyset_manager: key with id %d not found\", keyID)\n\t\treturn fmt.Errorf(\"keyset_manager: key not found %d\", keyID)\n\t\treturn fmt.Errorf(\"keyset_manager: key with id %d not found\", keyID)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/tink-crypto/tink/commit/3796b9ffce3ec67db4b479bf9905a1add4ed9092",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            9,
            2,
            4,
            5
        ]
    },
    {
        "input": "\tif !strings.Contains(err.Error(), \"key not found\") {\n\t\tt.Errorf(\"expected 'key not found' message, got %s\", err)\n\tif !strings.Contains(err.Error(), \"not found\") {\n\t\tt.Errorf(\"expected 'not found' message, got %s\", err)\n\tif !strings.Contains(err.Error(), \"key not found\") {\n\t\tt.Errorf(\"expected 'key not found' message but got %s\", err)\n\tif !strings.Contains(err.Error(), \"not found\") {\n\t\tt.Errorf(\"expected 'not found' message but got %s\", err)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.14285714285714285,
        "commit_url": "https://github.com/tink-crypto/tink/commit/3796b9ffce3ec67db4b479bf9905a1add4ed9092",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "@Path(\"/dialect/version\")\n@Path(\"/dialect/\")\n@Path(\"/dialect/version\")\n@Path(\"/dialect/\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/981dd457d744ddaf962fe6de8871af17ec035cef",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "     * This is important to avoid https://github.com/quarkusio/quarkus/issues/1886\n     * This is important for backwards compatibility reasons:\n     * we want to keep using at least the same version as before by default.\n     * This is important to avoid https://github.com/quarkusio/quarkus/issues/1886\n     * This is important for backwards compatibility reasons:\n     * we want to keep using at least the same version as before by default.\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/981dd457d744ddaf962fe6de8871af17ec035cef",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            12
        ]
    },
    {
        "input": "        FirstEntity firstEntity = new FirstEntity();\n        assertNotNull(firstEntity.getEntityManager());\n        assertNotNull(FirstEntity.getEntityManager());\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/3a3451681dddbf72a749df91a2fd0eb9f6be91f0",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3,
            5
        ]
    },
    {
        "input": "                if (uncompleted.decrementAndGet() == 0) {\n                    return;\n                }\n                Action queuedAction = queue.poll();\n                assert queuedAction != null;\n                LOG.debugf(\"Run action %s from queue: %s\", queuedAction.queueIndex, connection);\n                queuedAction.context.runOnContext(new Handler() {\n                    @Override\n                    public void handle(Void event) {\n                        queuedAction.runnable.run();\n                    }\n                });\n                tryNext();\n                if (uncompleted.decrementAndGet() == 0) {\n                    return;\n                }\n                Action queuedAction = queue.poll();\n                assert queuedAction != null;\n                LOG.debugf(\"Run action %s from queue: %s\", queuedAction.queueIndex, connection);\n                queuedAction.context.runOnContext(new Handler() {\n                    @Override\n                    public void handle(Void event) {\n                        queuedAction.runnable.run();\n                    }\n                });\n                tryNext();\n            }\n        }\n\n        private void tryNext() {\n            if (uncompleted.decrementAndGet() == 0) {\n                return;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/6cb225ae70e9d0c058f47f29e16292cab0c1bc62",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "    private static JsonObject getJsonObject(HttpResponse resp) {\n    private static JsonObject getJsonObject(String requestUri, HttpResponse resp) {\n        JsonObject json = getJsonObject(resp);\n        JsonObject json = getJsonObject(metadata.getAuthorizationUri(), resp);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/c4433baac4cab145c6e655b37771a926a46c8f37",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "    private static String getString(HttpResponse resp) {\n    private static String getString(String requestUri, HttpResponse resp) {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/c4433baac4cab145c6e655b37771a926a46c8f37",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            4,
            5
        ]
    },
    {
        "input": "    private static OIDCException responseException(HttpResponse resp) {\n    private static OIDCException responseException(String requestUri, HttpResponse resp) {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/c4433baac4cab145c6e655b37771a926a46c8f37",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            9,
            7
        ]
    },
    {
        "input": "    private final ConcurrentMap contextResolverMap = new ConcurrentHashMap<>();\n    private final ConcurrentMap contextResolverMap = new ConcurrentHashMap<>();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/6f5648c1e71887e06cc5bc21dcf869e27562a6b9",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "    protected ObjectWriter getEffectiveWriter(Class type, MediaType responseMediaType) {\n        ObjectMapper objectMapper = getObjectMapperFromContext(type, responseMediaType, context, contextResolverMap);\n    protected ObjectWriter getEffectiveWriter(MediaType responseMediaType) {\n        ObjectMapper objectMapper = getObjectMapperFromContext(responseMediaType, context);\n        doLegacyWrite(o, annotations, httpHeaders, entityStream, getEffectiveWriter(type, mediaType));\n        doLegacyWrite(o, annotations, httpHeaders, entityStream, getEffectiveWriter(mediaType));\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/6f5648c1e71887e06cc5bc21dcf869e27562a6b9",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "    final byte[] classData;\n    final byte[] data;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.8,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/c76362abbbfcf23cb6e1466ea30be5ec1eb102a5",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4
        ]
    },
    {
        "input": "        this.classData = classData;\n        this.data = data;\n    final byte[] classData;\n    final byte[] data;\n    public GeneratedResourceBuildItem(String name, byte[] classData) {\n    public GeneratedResourceBuildItem(String name, byte[] data) {\n        this.classData = classData;\n        this.data = data;\n    public GeneratedResourceBuildItem(String name, byte[] classData, boolean excludeFromDevCL) {\n    public GeneratedResourceBuildItem(String name, byte[] data, boolean excludeFromDevCL) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.42857142857142855,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/c76362abbbfcf23cb6e1466ea30be5ec1eb102a5",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3
        ]
    },
    {
        "input": "                concatenatedEntries.computeIfAbsent(i.getName(), (u) -> new ArrayList<>()).add(i.getClassData());\n                concatenatedEntries.computeIfAbsent(i.getName(), (u) -> new ArrayList<>()).add(i.getData());\n                Files.write(target, i.getClassData());\n                Files.write(target, i.getData());\n                    os.write(i.getClassData());\n                    os.write(i.getData());\n                data.put(i.getName(), i.getClassData());\n                data.put(i.getName(), i.getData());\n                result.put(i.getName(), i.getClassData());\n                result.put(i.getName(), i.getData());\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.14285714285714285,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/c76362abbbfcf23cb6e1466ea30be5ec1eb102a5",
        "target_edit_idx": 9,
        "propagatable_edit_idx": [
            8,
            10,
            11,
            7
        ]
    },
    {
        "input": "        String noPIE = \"\";\n        String pie = \"\";\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/c83272a928a59c5d592722cd126325d6ac61cbf7",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            5,
            6,
            7
        ]
    },
    {
        "input": "            private String noPIE = \"\";\n            private String pie = \"\";\n        String noPIE = \"\";\n        String pie = \"\";\n            public Builder setNoPIE(String noPIE) {\n                this.noPIE = noPIE;\n            public Builder setPIE(String pie) {\n                this.pie = pie;\n                if (!noPIE.isEmpty()) {\n                    nativeImageArgs.add(\"-H:NativeLinkerOption=\" + noPIE);\n                if (!pie.isEmpty()) {\n                    nativeImageArgs.add(\"-H:NativeLinkerOption=\" + pie);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/c83272a928a59c5d592722cd126325d6ac61cbf7",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            1,
            6,
            7
        ]
    },
    {
        "input": "            public Builder setNoPIE(String noPIE) {\n                this.noPIE = noPIE;\n            public Builder setPIE(String pie) {\n                this.pie = pie;\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/c83272a928a59c5d592722cd126325d6ac61cbf7",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            1,
            5,
            7
        ]
    },
    {
        "input": "        return new HibernateModelClassCandidatesForFieldAccessBuildItem(jpaModel.getAllModelClassNames());\n        return new HibernateModelClassCandidatesForFieldAccessBuildItem(jpaModel.getManagedClassNames());\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.125,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/ab26345d9f689b4785e27754eb088b19b2347bb5",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            12,
            13
        ]
    },
    {
        "input": "        for (String entityClassName : candidatesForFieldAccess.get().getAllModelClassNames()) {\n        for (String entityClassName : candidatesForFieldAccess.get().getManagedClassNames()) {\n",
        "class": "function_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/ab26345d9f689b4785e27754eb088b19b2347bb5",
        "target_edit_idx": 13,
        "propagatable_edit_idx": [
            0,
            1,
            12
        ]
    },
    {
        "input": "        if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent()) {\n            log.warn(\n                    \"Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now.\");\n        }\n        if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent()) {\n            log.warn(\n                    \"Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now.\");\n        }\n        if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent()) {\n            log.warn(\n                    \"Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now.\");\n        }\n\n        if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent()) {\n            log.warn(\n                    \"Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now.\");\n        }\n        if (dataSourceReactiveRuntimeConfig.threadLocal.isPresent()) {\n            log.warn(\n                    \"Configuration element 'thread-local' on Reactive datasource connections is deprecated and will be ignored. The started pool will always be based on a per-thread separate pool now.\");\n        }\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/116d5a68a48635f5a484d68e72b227d8c51b0902",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            9,
            11,
            5,
            7
        ]
    },
    {
        "input": "        if (dataSourceReactiveDB2Config.cachePreparedStatements.isPresent()) {\n            log.warn(\n                    \"datasource.reactive.db2.cache-prepared-statements is deprecated, use datasource.reactive.cache-prepared-statements instead\");\n            connectOptions.setCachePreparedStatements(dataSourceReactiveDB2Config.cachePreparedStatements.get());\n        } else {\n            connectOptions.setCachePreparedStatements(dataSourceReactiveRuntimeConfig.cachePreparedStatements);\n        }\n        connectOptions.setCachePreparedStatements(dataSourceReactiveRuntimeConfig.cachePreparedStatements);\n        if (dataSourceReactiveMySQLConfig.cachePreparedStatements.isPresent()) {\n            log.warn(\n                    \"datasource.reactive.mysql.cache-prepared-statements is deprecated, use datasource.reactive.cache-prepared-statements instead\");\n            mysqlConnectOptions.setCachePreparedStatements(dataSourceReactiveMySQLConfig.cachePreparedStatements.get());\n        } else {\n            mysqlConnectOptions.setCachePreparedStatements(dataSourceReactiveRuntimeConfig.cachePreparedStatements);\n        }\n        mysqlConnectOptions.setCachePreparedStatements(dataSourceReactiveRuntimeConfig.cachePreparedStatements);\n        if (dataSourceReactivePostgreSQLConfig.cachePreparedStatements.isPresent()) {\n            log.warn(\n                    \"datasource.reactive.postgresql.cache-prepared-statements is deprecated, use datasource.reactive.cache-prepared-statements instead\");\n            pgConnectOptions\n                    .setCachePreparedStatements(dataSourceReactivePostgreSQLConfig.cachePreparedStatements.get());\n        } else {\n            pgConnectOptions.setCachePreparedStatements(dataSourceReactiveRuntimeConfig.cachePreparedStatements);\n        }\n        pgConnectOptions.setCachePreparedStatements(dataSourceReactiveRuntimeConfig.cachePreparedStatements);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/116d5a68a48635f5a484d68e72b227d8c51b0902",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            8,
            12
        ]
    },
    {
        "input": "    /**\n     * Whether prepared statements should be cached on the client side.\n     *\n     * @deprecated use {@code datasource.reactive.cache-prepared-statements} instead.\n     */\n    @ConfigItem\n    @Deprecated\n    public Optional cachePreparedStatements = Optional.empty();\n\n    /**\n     * Whether prepared statements should be cached on the client side.\n     *\n     * @deprecated use {@code datasource.reactive.cache-prepared-statements} instead.\n     */\n    @ConfigItem\n    @Deprecated\n    public Optional cachePreparedStatements = Optional.empty();\n\n    /**\n     * Whether prepared statements should be cached on the client side.\n     *\n     * @deprecated use {@code datasource.reactive.cache-prepared-statements} instead.\n     */\n    @ConfigItem\n    @Deprecated\n    public Optional cachePreparedStatements = Optional.empty();\n\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/116d5a68a48635f5a484d68e72b227d8c51b0902",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            10,
            6
        ]
    },
    {
        "input": "    static boolean isProducerWithWildcard(Type type, AnnotationTarget producerFieldOrMethod, boolean throwIfDetected) {\n        if (producerFieldOrMethod == null) {\n            // not a producer, no further analysis required\n            return false;\n        }\n    static boolean containsWildcard(Type type, AnnotationTarget producerFieldOrMethod, boolean throwIfDetected) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/0c3c7e1fb5af229476ceb31346a4cd9c008ca8d8",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            5,
            6
        ]
    },
    {
        "input": "                () -> Types.getProducerMethodTypeClosure(producerClass.method(wildcardInTypeHierarchy), dummyDeployment));\n                () -> verifyEagleTypes(\n                        Types.getProducerMethodTypeClosure(producerClass.method(wildcardInTypeHierarchy), dummyDeployment)));\n                () -> Types.getProducerFieldTypeClosure(producerClass.field(wildcardInTypeHierarchy), dummyDeployment));\n                () -> verifyEagleTypes(\n                        Types.getProducerFieldTypeClosure(producerClass.field(wildcardInTypeHierarchy), dummyDeployment)));\n        // now do the same for a non-producer scenario with Eagle class\n        assertDoesNotThrow(\n                () -> verifyEagleTypes(Types.getClassBeanTypeClosure(index.getClassByName(DotName.createSimple(Eagle.class)),\n                        dummyDeployment)));\n    }\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.2,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/0c3c7e1fb5af229476ceb31346a4cd9c008ca8d8",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "            String selectClause = trimmedQuery.substring(7, endSelect);\n            String selectClause = trimmedQuery.substring(7, endSelect).trim();\n            String selectClause = trimmedQuery.substring(7, endSelect);\n            String selectClause = trimmedQuery.substring(7, endSelect).trim();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.25,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/e6164cabfc27cc316e2f675e71ac779896f8c9d2",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "            String lowerCasedTrimmedSelect = selectClause.trim().toLowerCase();\n            boolean distinctQuery = lowerCasedTrimmedSelect.startsWith(\"distinct \");\n            boolean distinctQuery = selectClause.toLowerCase().startsWith(\"distinct \");\n            String lowerCasedTrimmedSelect = selectClause.trim().toLowerCase();\n            boolean distinctQuery = lowerCasedTrimmedSelect.startsWith(\"distinct \");\n            boolean distinctQuery = selectClause.toLowerCase().startsWith(\"distinct \");\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/e6164cabfc27cc316e2f675e71ac779896f8c9d2",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "                selectClause = lowerCasedTrimmedSelect.substring(9).trim();\n                selectClause = selectClause.substring(9).trim();\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/e6164cabfc27cc316e2f675e71ac779896f8c9d2",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "    private final CarMapper carMapper;\n\n    public HelloResource(CarMapper carMapper) {\n        this.carMapper = carMapper;\n    }\n\n    private final CarMapper carMapper;\n\n    public HelloResource(CarMapper carMapper) {\n        this.carMapper = carMapper;\n    }\n\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/64d81be3fc4c5abb9916f6444e5b737f221cd285",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "        return carMapper.carToCarDTO(car);\n        return CarMapper.INSTANCE.carToCarDTO(car);\n        return carMapper.carToCarDTO(car);\n        return CarMapper.INSTANCE.carToCarDTO(car);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/64d81be3fc4c5abb9916f6444e5b737f221cd285",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "@Mapper(componentModel = \"cdi\", injectionStrategy = InjectionStrategy.CONSTRUCTOR)\n@Mapper\n@Mapper(componentModel = \"cdi\", injectionStrategy = InjectionStrategy.CONSTRUCTOR)\n@Mapper\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/64d81be3fc4c5abb9916f6444e5b737f221cd285",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "import java.time.LocalDate;\n\nimport java.time.LocalDate;\n\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/a6e79ff6db7d52d38e67f8d6ccc78cb223d0bea4",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "import com.fasterxml.jackson.annotation.JsonFormat;\n\nimport com.fasterxml.jackson.annotation.JsonFormat;\n\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/a6e79ff6db7d52d38e67f8d6ccc78cb223d0bea4",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "                            BusinessException.class)\n                            BusinessException.class, TestUnion.class, TestUnionMember.class)\n                            BusinessException.class)\n                            BusinessException.class, TestUnion.class, TestUnionMember.class)\n                            BusinessException.class)\n                            BusinessException.class, TestUnion.class, TestUnionMember.class)\n                            BusinessException.class)\n                            BusinessException.class, TestUnion.class, TestUnionMember.class)\n                            BusinessException.class)\n                            BusinessException.class, TestUnion.class, TestUnionMember.class)\n                            BusinessException.class)\n                            BusinessException.class, TestUnion.class, TestUnionMember.class)\n                            BusinessException.class)\n                            BusinessException.class, TestUnion.class, TestUnionMember.class)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.8571428571428571,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/a3cfdf4d6325abf0805dcf02c1df56f85c552f04",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            6,
            7
        ]
    },
    {
        "input": "import javax.enterprise.context.ApplicationScoped;\n\nimport javax.enterprise.context.ApplicationScoped;\nimport javax.enterprise.context.ApplicationScoped;\nimport javax.enterprise.context.ApplicationScoped;\nimport javax.enterprise.context.ApplicationScoped;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.8,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/0677a00ef74879f5616f156169cfca15d8fae9bb",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            8,
            10,
            4,
            6
        ]
    },
    {
        "input": "    @ApplicationScoped\n    @ApplicationScoped\n@ApplicationScoped\n    @ApplicationScoped\n    @ApplicationScoped\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/0677a00ef74879f5616f156169cfca15d8fae9bb",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            9,
            11,
            5,
            7
        ]
    },
    {
        "input": "            Optional customProjectRoot) {\n            Optional customProjectRoot,\n            List targets) {\n            Optional customProjectRoot) {\n            Optional customProjectRoot,\n            List targets) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.2,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/0a203cbb1de1d5eb5c942b397c3921149156dcc6",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "        static final Set EXPECTED = ImmutableSet.of();\n        static final Set EXPECTED = ImmutableSet.of(\"transactional\", \"another\");\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/93720555c0c7d8e4dcf7f81e9b4cf17db4792e29",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8,
            4
        ]
    },
    {
        "input": "        static final Set EXPECTED = ImmutableSet.of(\"method\");\n        static final Set EXPECTED = ImmutableSet.of(\"method\", \"transactional\", \"another\");\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/93720555c0c7d8e4dcf7f81e9b4cf17db4792e29",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            4,
            6
        ]
    },
    {
        "input": "        Arc.container().beanManager().fireEvent(\"foo\");\n        Arc.container().beanManager().getEvent().fire(\"foo\");\n        Arc.container().beanManager().fireEvent(\"foo\");\n        Arc.container().beanManager().getEvent().fire(\"foo\");\n        container.beanManager().fireEvent(\"foo\");\n        container.beanManager().getEvent().fire(\"foo\");\n        container.beanManager().fireEvent(\"foo\");\n        container.beanManager().getEvent().fire(\"foo\");\n        container.beanManager().fireEvent(\"foo\");\n        container.beanManager().getEvent().fire(\"foo\");\n        Arc.container().beanManager().fireEvent(msg);\n        Arc.container().beanManager().getEvent().select(new TypeLiteral>() {\n        }).fire(msg);\n        Arc.container().beanManager().fireEvent(msg);\n        Arc.container().beanManager().getEvent().select(new TypeLiteral>() {\n        }).fire(msg);\n        Arc.container().beanManager().fireEvent(\"hello\");\n        Arc.container().beanManager().getEvent().fire(\"hello\");\n        Arc.container().beanManager().fireEvent(\"hello\");\n        Arc.container().beanManager().getEvent().fire(\"hello\");\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.9,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/89e383a9906abe15b4bc448047839a09781ec549",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            4,
            6,
            7,
            8,
            10,
            11,
            12,
            13
        ]
    },
    {
        "input": "    private final Cache appBootstrapProviders = CacheBuilder.newBuilder()\n    private final Cache appBootstrapProviders = CacheBuilder.newBuilder()\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/3c454d58fc07ff5da36beceeea7d652c95dc7855",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            9,
            10,
            7
        ]
    },
    {
        "input": "                .contentType(TEXT_HTML)\n                .body(htmlBodyMatcher());\n                // Ideally we'd like TEXT_HTML here, but due to some strange behavior of\n                // io.vertx.ext.web.ParsedHeaderValues.findBestUserAcceptedIn,\n                // we get this.\n                .contentType(APPLICATION_JSON)\n                .body(jsonBodyMatcher());\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.06666666666666667,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/e49ae0109369b099836b10093ba3b6e21f97a9b6",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "                .body(containsString(\"testRestEndPointReturnValueValidation.<return value>\"))\n                .body(containsString(\"testRestEndPointReturnValueValidation.\"))\n                    .body(containsString(\"testRestEndPointReturnValueValidation.<return value>\"))\n                    .body(containsString(\"testRestEndPointReturnValueValidation.\"))\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/e49ae0109369b099836b10093ba3b6e21f97a9b6",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "                .body(containsString(\"Internal Server Error\"))\n                .body(containsString(\"Error id\"))\n                .body(containsString(\"Internal Server Error\"))\n                .body(containsString(\"Error id\"))\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/e49ae0109369b099836b10093ba3b6e21f97a9b6",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "        return String.format(\"Error handling %s, %s: %s\", uuid, exception.getClass().getName(),\n        return String.format(\"Error id %s, %s: %s\", uuid, exception.getClass().getName(),\n        return String.format(\"Error handling %s, %s: %s\", uuid, exception.getClass().getName(),\n        return String.format(\"Error id %s, %s: %s\", uuid, exception.getClass().getName(),\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/f94b983b7ffcdefdbfe1afc37529a83addeeb7b0",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "        final String projectGroupId = System.getProperty(\"project.groupId\");\n        if (projectGroupId == null) {\n            throw new IllegalStateException(\"System property project.groupId isn't set\");\n        if (quarkusBomGroupId == null) {\n            throw new IllegalStateException(\"quarkusBomGroupId isn't set\");\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/995bf40e4a6d46f7ea52b475675b114d2c01cf43",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "            float q = getQWithParamInfo(mediaType);\n            float q = getQTypeWithParamInfo(mediaType, parameterName);\n            float q2 = getQWithParamInfo(mediaType2);\n            float q2 = getQTypeWithParamInfo(mediaType2, parameterName);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/554cfae210246a6f10531a82ff8f79f3b6805deb",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "                        throw new NotAcceptableException();\n                        throw new NotAcceptableException(INVALID_ACCEPT_HEADER_MESSAGE);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/cdbf878f728b8ede9d679ab15299f60a7302e229",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            2,
            3
        ]
    },
    {
        "input": "@CommandLine.Command(name = \"add\", sortOptions = false, showDefaultValues = true, mixinStandardHelpOptions = false, header = \"Add a Quarkus extension registry to the registry client configuration\", description = \"%n\"\n        + \"This command will add a Quarkus extension registry to the registry client configuration unless it's already present\", headerHeading = \"%n\", commandListHeading = \"%nCommands:%n\", synopsisHeading = \"%nUsage: \", parameterListHeading = \"%n\", optionListHeading = \"Options:%n\")\n@CommandLine.Command(name = \"add\", sortOptions = false, showDefaultValues = true, mixinStandardHelpOptions = false, header = \"Add a Quarkus extension registry\", description = \"%n\"\n        + \"This command will add a Quarkus extension registry to the registry client configuration unless it's already present.\", headerHeading = \"%n\", commandListHeading = \"%nCommands:%n\", synopsisHeading = \"%nUsage: \", parameterListHeading = \"%n\", optionListHeading = \"Options:%n\")\n@CommandLine.Command(name = \"remove\", sortOptions = false, showDefaultValues = true, mixinStandardHelpOptions = false, header = \"Remove a Quarkus extension registry from the registry client configuration\", description = \"%n\"\n        + \"This command will remove a Quarkus extension registry from the registry client configuration\", headerHeading = \"%n\", commandListHeading = \"%nCommands:%n\", synopsisHeading = \"%nUsage: \", parameterListHeading = \"%n\", optionListHeading = \"Options:%n\")\n@CommandLine.Command(name = \"remove\", sortOptions = false, showDefaultValues = true, mixinStandardHelpOptions = false, header = \"Remove a Quarkus extension registry\", description = \"%n\"\n        + \"This command will remove a Quarkus extension registry from the registry client configuration.\", headerHeading = \"%n\", commandListHeading = \"%nCommands:%n\", synopsisHeading = \"%nUsage: \", parameterListHeading = \"%n\", optionListHeading = \"Options:%n\")\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/1d813f2fd1c6d3b578e345215d21dbdd2b480c5c",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "                if (SchedulerUtils.isConfigValue(every)) {\n                    return null;\n                }\n                if (Character.isDigit(every.charAt(0))) {\n                    every = \"PT\" + every;\n                }\n                try {\n                    Duration.parse(every);\n                } catch (Exception e) {\n                    return new IllegalStateException(\"Invalid every() expression on: \" + schedule, e);\n                if (!SchedulerUtils.isConfigValue(every)) {\n                    if (Character.isDigit(every.charAt(0))) {\n                        every = \"PT\" + every;\n                    }\n                    try {\n                        Duration.parse(every);\n                    } catch (Exception e) {\n                        return new IllegalStateException(\"Invalid every() expression on: \" + schedule, e);\n                    }\n                if (SchedulerUtils.isConfigValue(delayed)) {\n                    return null;\n                }\n                if (Character.isDigit(delayed.charAt(0))) {\n                    delayed = \"PT\" + delayed;\n                }\n                try {\n                    Duration.parse(delayed);\n                } catch (Exception e) {\n                    return new IllegalStateException(\"Invalid delayed() expression on: \" + schedule, e);\n                if (!SchedulerUtils.isConfigValue(delayed)) {\n                    if (Character.isDigit(delayed.charAt(0))) {\n                        delayed = \"PT\" + delayed;\n                    }\n                    try {\n                        Duration.parse(delayed);\n                    } catch (Exception e) {\n                        return new IllegalStateException(\"Invalid delayed() expression on: \" + schedule, e);\n                    }\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/c38991f938bddc46791253a55b5b2c3a0a49c37f",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "import javax.inject.Named;\nimport javax.inject.Named;\nimport javax.inject.Named;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/11bc00f324b6ed4166ab4250e6661060b7d1a4d4",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            3,
            6
        ]
    },
    {
        "input": "        private DummyResponse() {\n        private DummyResponse(int responseStatus, String responseReasonPhrase) {\n            this.responseStatus = responseStatus;\n            this.statusType = new StatusTypeImpl(responseStatus, responseReasonPhrase);\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/ff3f71cf6e78ee2f6661cbfda3fdc257a56788cf",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            1,
            2
        ]
    },
    {
        "input": "            int exitCode = buildRunner.build(nativeImageArgs, nativeImageName, outputDir, nativeConfig.debug.enabled,\n                    processInheritIODisabled.isPresent());\n            int exitCode = buildRunner.build(nativeImageArgs, nativeImageName, resultingExecutableName, outputDir,\n                    nativeConfig.debug.enabled, processInheritIODisabled.isPresent());\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/36ec89402a1a359b9a02337f05aa3c7077d51dea",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "        return getBestMatchNoSort(desired, provided);\n        return getFirstMatch(desired, provided);\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/c86de426cfe0d13d96c13143327a8afe9dc51445",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "        String[] classProduces = readStringArrayValue(currentClassInfo.classAnnotation(QuarkusRestDotNames.PRODUCES));\n        String[] classConsumes = readStringArrayValue(currentClassInfo.classAnnotation(QuarkusRestDotNames.CONSUMES));\n        String[] classProduces = extractProducesConsumesValues(currentClassInfo.classAnnotation(QuarkusRestDotNames.PRODUCES));\n        String[] classConsumes = extractProducesConsumesValues(currentClassInfo.classAnnotation(QuarkusRestDotNames.CONSUMES));\n            String[] produces = readStringArrayValue(info.annotation(PRODUCES), classProduces);\n            String[] consumes = readStringArrayValue(info.annotation(CONSUMES), classConsumes);\n            String[] produces = extractProducesConsumesValues(info.annotation(PRODUCES), classProduces);\n            String[] consumes = extractProducesConsumesValues(info.annotation(CONSUMES), classConsumes);\n    private static String[] readStringArrayValue(AnnotationInstance annotation, String[] defaultValue) {\n        String[] read = readStringArrayValue(annotation);\n    private static String[] extractProducesConsumesValues(AnnotationInstance annotation, String[] defaultValue) {\n        String[] read = extractProducesConsumesValues(annotation);\n    private static String[] readStringArrayValue(AnnotationInstance annotation) {\n    private static String[] extractProducesConsumesValues(AnnotationInstance annotation) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/39c514ef1698864bf0717ee905286acbb3f78cfc",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3
        ]
    },
    {
        "input": "    private static String[] readStringArrayValue(AnnotationInstance annotation) {\n    private static String[] extractProducesConsumesValues(AnnotationInstance annotation) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/39c514ef1698864bf0717ee905286acbb3f78cfc",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            1,
            2
        ]
    },
    {
        "input": "                    String typeString = typeValue.asEnum();\n                    switch (typeString) {\n                        case \"NORMAL\":\n                    switch (routeHandlerType) {\n                        case NORMAL:\n                            throw new IllegalStateException(\"Unknown type \" + typeString);\n                            throw new IllegalStateException(\"Unknown type \" + routeHandlerType);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/07a994843b482ee4f56f8f4e14676f1263182879",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "        persistenceUnitConfig.query.queryPlanCacheMaxSize.ifPresent(\n                maxSize -> descriptor.getProperties().setProperty(AvailableSettings.QUERY_PLAN_CACHE_MAX_SIZE, maxSize));\n        descriptor.getProperties().setProperty(AvailableSettings.QUERY_PLAN_CACHE_MAX_SIZE, Integer.toString(\n                persistenceUnitConfig.query.queryPlanCacheMaxSize));\n        persistenceUnitConfig.query.queryPlanCacheMaxSize.ifPresent(\n                maxSize -> desc.getProperties().setProperty(AvailableSettings.QUERY_PLAN_CACHE_MAX_SIZE, maxSize));\n        desc.getProperties().setProperty(AvailableSettings.QUERY_PLAN_CACHE_MAX_SIZE, Integer.toString(\n                persistenceUnitConfig.query.queryPlanCacheMaxSize));\n",
        "class": "clone",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/21dd38d20986ecb2eeee357f7acfd549860aad1b",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8
        ]
    },
    {
        "input": "        persistenceUnitConfig.query.defaultNullOrdering.ifPresent(\n                defaultNullOrdering -> descriptor.getProperties().setProperty(AvailableSettings.DEFAULT_NULL_ORDERING,\n                        defaultNullOrdering));\n        descriptor.getProperties().setProperty(AvailableSettings.DEFAULT_NULL_ORDERING,\n                persistenceUnitConfig.query.defaultNullOrdering.name().toLowerCase());\n        persistenceUnitConfig.query.defaultNullOrdering.ifPresent(\n                defaultNullOrdering -> desc.getProperties().setProperty(AvailableSettings.DEFAULT_NULL_ORDERING,\n                        defaultNullOrdering));\n        desc.getProperties().setProperty(AvailableSettings.DEFAULT_NULL_ORDERING,\n                persistenceUnitConfig.query.defaultNullOrdering.name().toLowerCase());\n",
        "class": "clone",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/21dd38d20986ecb2eeee357f7acfd549860aad1b",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "    private void pushImage(String image) {\n    private void pushImage(String image, DockerConfig dockerConfig) {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/2621f2db7daf1413dffd9158c95f9db5e135ec7b",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "            @SuppressWarnings(\"usused\") MongodbConfig mongodbConfig) {\n            @SuppressWarnings(\"unused\") MongodbConfig mongodbConfig) {\n            @SuppressWarnings(\"usused\") MongodbConfig mongodbConfig) {\n            @SuppressWarnings(\"unused\") MongodbConfig mongodbConfig) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/e73106f1d01c23500cc79fbb7d3fdad2a473cce9",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "    public static BuiltinScope from(DotName name) {\n    public static BuiltinScope from(DotName scopeAnnotationName) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/f701df4b13bc781737cbdd3d31a5d0c139af5ccb",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "            appModelFactory.setEnableClasspathCache(true);\n            if (!disableClasspathCache) {\n                appModelFactory.setEnableClasspathCache(true);\n            }\n            appModelFactory.setEnableClasspathCache(true);\n            if (!disableClasspathCache) {\n                appModelFactory.setEnableClasspathCache(true);\n            }\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/b5ba1333665787582bb6e9111216624c42c38831",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "        running.execute(Arrays.asList(\"compile\", \"quarkus:dev\"), Collections.emptyMap());\n        final Properties mvnRunProps = new Properties();\n        mvnRunProps.setProperty(\"debug\", \"false\");\n        running.execute(Arrays.asList(\"compile\", \"quarkus:dev\"), Collections.emptyMap(), mvnRunProps);\n        running.execute(Arrays.asList(\"compile\", \"quarkus:dev\"), Collections.emptyMap());\n        final Properties mvnRunProps = new Properties();\n        mvnRunProps.setProperty(\"debug\", \"false\");\n        running.execute(Arrays.asList(\"compile\", \"quarkus:dev\"), Collections.emptyMap(), mvnRunProps);\n        running.execute(Arrays.asList(\"compile\", \"quarkus:dev\"), Collections.emptyMap());\n        final Properties mvnRunProps = new Properties();\n        mvnRunProps.setProperty(\"debug\", \"false\");\n        running.execute(Arrays.asList(\"compile\", \"quarkus:dev\"), Collections.emptyMap(), mvnRunProps);\n        running.execute(Arrays.asList(\"compile\", \"quarkus:dev\"), Collections.emptyMap());\n        final Properties mvnRunProps = new Properties();\n        mvnRunProps.setProperty(\"debug\", \"false\");\n        running.execute(Arrays.asList(\"compile\", \"quarkus:dev\"), Collections.emptyMap(), mvnRunProps);\n        running.execute(Arrays.asList(\"compile\", \"quarkus:dev\"), Collections.emptyMap());\n        final Properties mvnRunProps = new Properties();\n        mvnRunProps.setProperty(\"debug\", \"false\");\n        running.execute(Arrays.asList(\"compile\", \"quarkus:dev\"), Collections.emptyMap(), mvnRunProps);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/f454fe80a22a54f5cd32a5afc560abc0cbad27ac",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            0,
            9,
            3,
            5
        ]
    },
    {
        "input": "        running.execute(Arrays.asList(\"compile\", \"quarkus:dev\"), Collections.emptyMap());\n        final Properties mvnRunProps = new Properties();\n        mvnRunProps.setProperty(\"debug\", \"false\");\n        running.execute(Arrays.asList(\"compile\", \"quarkus:dev\"), Collections.emptyMap(), mvnRunProps);\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/f454fe80a22a54f5cd32a5afc560abc0cbad27ac",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            0,
            9,
            2,
            5
        ]
    },
    {
        "input": "            if (buildTimeConfig.elasticsearch.version.isPresent()) {\n            if (buildTimeConfig.defaultBackend.version.isPresent()) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.75,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/973815d9d629261a7a78fdf30317daf7bdf5dc1f",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1,
            2,
            3,
            4,
            5,
            6
        ]
    },
    {
        "input": "    public ElasticsearchBackendBuildTimeConfig elasticsearch;\n    public ElasticsearchBackendBuildTimeConfig defaultBackend;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.375,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/973815d9d629261a7a78fdf30317daf7bdf5dc1f",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            1,
            2,
            3,
            5,
            6
        ]
    },
    {
        "input": "                try (final OutputStream os = wrapForJDK8232879(Files.newOutputStream(target))) {\n                try (final OutputStream os = wrapForJDK8232879(Files.newOutputStream(target, DEFAULT_OPEN_OPTIONS))) {\n                try (final OutputStream out = wrapForJDK8232879(Files.newOutputStream(target))) {\n                try (final OutputStream out = wrapForJDK8232879(Files.newOutputStream(target, DEFAULT_OPEN_OPTIONS))) {\n            try (final OutputStream os = wrapForJDK8232879(Files.newOutputStream(target))) {\n            try (final OutputStream os = wrapForJDK8232879(Files.newOutputStream(target, DEFAULT_OPEN_OPTIONS))) {\n            try (final OutputStream os = wrapForJDK8232879(Files.newOutputStream(runnerZipFs.getPath(entry.getKey())))) {\n            try (final OutputStream os = wrapForJDK8232879(\n                    Files.newOutputStream(runnerZipFs.getPath(entry.getKey()), DEFAULT_OPEN_OPTIONS))) {\n        try (final OutputStream os = wrapForJDK8232879(Files.newOutputStream(manifestPath))) {\n        try (final OutputStream os = wrapForJDK8232879(Files.newOutputStream(manifestPath, DEFAULT_OPEN_OPTIONS))) {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/b632d2cbd8965cea50dca3d71adbdec63e0719c1",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            3,
            4,
            6,
            7
        ]
    },
    {
        "input": "            try (final OutputStream os = wrapForJDK8232879(Files.newOutputStream(runnerZipFs.getPath(entry.getKey())))) {\n            try (final OutputStream os = wrapForJDK8232879(\n                    Files.newOutputStream(runnerZipFs.getPath(entry.getKey()), DEFAULT_OPEN_OPTIONS))) {\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/b632d2cbd8965cea50dca3d71adbdec63e0719c1",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            7
        ]
    },
    {
        "input": "        Matcher matcher = Constants.CLASS_NAME_PATTERN.matcher(type);\n        String unwrappedType = DocGeneratorUtil.unbox(type);\n\n        Matcher matcher = Constants.CLASS_NAME_PATTERN.matcher(unwrappedType);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.125,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/88e360902815138f505f8d69af649d8b438f82da",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            1
        ]
    },
    {
        "input": "                    .addAdditionalArchives(libraries)\n                    .addAdditionalArchives(paths)\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/0e50cb2bc6ef4d3cecd45ef6c86954d71d207b98",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "                        LOGGER.info(\"Observer method found but the declaring class has no bean defining annotation - using @Dependent\");\n                        LOGGER.infof(\"Observer method found but %s has no bean defining annotation - using @Dependent\", beanClass);\n                        LOGGER.info(\"Observer method found but the declaring class has no bean defining annotation - using @Dependent\");\n                        LOGGER.infof(\"Observer method found but %s has no bean defining annotation - using @Dependent\", beanClass);\n                        LOGGER.info(\"Producer field found but the declaring class has no bean defining annotation - using @Dependent\");\n                        LOGGER.infof(\"Producer field found but %s has no bean defining annotation - using @Dependent\", beanClass);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/b26e150f9ca8f96efbf5b7bf9279e7d87d62eba8",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3,
            4
        ]
    },
    {
        "input": "    public void startUndertowEagerly(ConfiguredValue port, HandlerWrapper hotDeploymentWrapper) throws ServletException {\n    public void startUndertowEagerly(ConfiguredValue port, ConfiguredValue host, HandlerWrapper hotDeploymentWrapper) throws ServletException {\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/ece359079bbf9710d17f7e1d5bc244f80e378822",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            0,
            3
        ]
    },
    {
        "input": "            for (Iterator iterator = resolved.iterator(); iterator.hasNext();) {\n            List resolvedAmbiguity = new ArrayList<>(resolved);\n            for (Iterator iterator = resolvedAmbiguity.iterator(); iterator.hasNext();) {\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.36363636363636365,
        "commit_url": "https://github.com/quarkusio/quarkus/commit/df74f9f7702946d5dd37bea7f4e4185ee83def7b",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "    public static final SessionContext.Key STATUS_CATGEORY = SessionContext.newKey(\"status_category\");\n    public static final SessionContext.Key STATUS_CATEGORY = SessionContext.newKey(\"status_category\");\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.9090909090909091,
        "commit_url": "https://github.com/Netflix/zuul/commit/5807c1f6f644a240d6a0bfbe1a452a20fa90f472",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            5,
            6
        ]
    },
    {
        "input": "        context.put(CommonContextKeys.STATUS_CATGEORY, ZuulStatusCategory.FAILURE_CLIENT_TIMEOUT);\n        StatusCategoryUtils.setStatusCategory(context, ZuulStatusCategory.FAILURE_CLIENT_TIMEOUT);\n        context.put(CommonContextKeys.STATUS_CATGEORY, ZuulStatusCategory.FAILURE_LOCAL);\n        StatusCategoryUtils.setStatusCategory(context, ZuulStatusCategory.FAILURE_LOCAL);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/Netflix/zuul/commit/5807c1f6f644a240d6a0bfbe1a452a20fa90f472",
        "target_edit_idx": 11,
        "propagatable_edit_idx": [
            12
        ]
    },
    {
        "input": "            fireEndpointFinish(true);\n            fireEndpointFinish(true, ctx);\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/Netflix/zuul/commit/3218584aac83a9db5bbd60362cf8f3b09e9d9a14",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            8,
            10,
            5,
            7
        ]
    },
    {
        "input": "            fireEndpointFinish(true);\n            fireEndpointFinish(true, ctx);\n    protected void fireEndpointFinish(final boolean error) {\n    protected void fireEndpointFinish(final boolean error, final ChannelHandlerContext ctx) {\n        // make sure filter chain is not left hanging\n        finishResponseFilters(ctx);\n\n            fireEndpointFinish(true);\n            fireEndpointFinish(true, ctx);\n            fireEndpointFinish(completeEvent.getReason() != SESSION_COMPLETE);\n            fireEndpointFinish(completeEvent.getReason() != SESSION_COMPLETE, ctx);\n            fireEndpointFinish(true);\n            fireEndpointFinish(true, ctx);\n",
        "class": "def&ref",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/Netflix/zuul/commit/3218584aac83a9db5bbd60362cf8f3b09e9d9a14",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8,
            10,
            5,
            6
        ]
    },
    {
        "input": "    protected void fireEndpointFinish(final boolean error) {\n    protected void fireEndpointFinish(final boolean error, final ChannelHandlerContext ctx) {\n        // make sure filter chain is not left hanging\n        finishResponseFilters(ctx);\n\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/Netflix/zuul/commit/3218584aac83a9db5bbd60362cf8f3b09e9d9a14",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            10,
            5,
            6,
            7
        ]
    },
    {
        "input": "import com.netflix.zuul.Attrs.Key;\nimport com.netflix.zuul.Attrs.Key;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.2,
        "commit_url": "https://github.com/Netflix/zuul/commit/5d8c899516dcf37964a59a007bf7ccdf40e3e52e",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "import java.util.Set;\nimport java.util.Set;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.09090909090909091,
        "commit_url": "https://github.com/Netflix/zuul/commit/5d8c899516dcf37964a59a007bf7ccdf40e3e52e",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "        Attrs dims = chan.attr(Server.CONN_DIMENSIONS).get();\n        Set> dimKeys = dims.keySet();\n        Map dimTags = new HashMap<>(dimKeys.size());\n        for (Key key : dims.keySet()) {\n            dimTags.put(key.name(), String.valueOf(key.get(dims)));\n        }\n        Attrs connDims = chan.attr(Server.CONN_DIMENSIONS).get();\n        Map dimTags = new HashMap<>(connDims.size() + extraDimensions.size());\n\n        connDims.forEach((k, v) -> dimTags.put(k.name(), String.valueOf(v)));\n        extraDimensions.forEach((k, v) -> dimTags.put(k.name(), String.valueOf(v)));\n\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/Netflix/zuul/commit/5d8c899516dcf37964a59a007bf7ccdf40e3e52e",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            14
        ]
    },
    {
        "input": "                PercentileTimer.get(registry, registry.createId(\"foo\", \"from\", \"middle\", \"to\", \"end\", \"bar\", \"baz\"));\n                PercentileTimer.get(registry, registry.createId(\"foo.middle-end\", \"bar\", \"baz\"));\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/Netflix/zuul/commit/1e576dc5fa1064d3980abb1e1118e61c2c622398",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8,
            6
        ]
    },
    {
        "input": "                PercentileTimer.get(registry, registry.createId(\"foo\", \"from\", \"start\", \"to\", \"end\", \"bar\", \"baz\"));\n                PercentileTimer.get(registry, registry.createId(\"foo.start-end\", \"bar\", \"baz\"));\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/Netflix/zuul/commit/1e576dc5fa1064d3980abb1e1118e61c2c622398",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            6,
            7
        ]
    },
    {
        "input": "        if (ctx.channel().attr(ATTR_REQ_INFLIGHT).getAndRemove() != null) {\n        if (ctx.channel().attr(ATTR_REQ_INFLIGHT).getAndSet(null) != null) {\n            if (ctx.channel().attr(ATTR_REQ_INFLIGHT).getAndRemove() != null) {\n            if (ctx.channel().attr(ATTR_REQ_INFLIGHT).getAndSet(null) != null) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/Netflix/zuul/commit/aecce216100e94605ea483e65019f08a24562123",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "            Promise combinedCloseAfterPromise = executor.newPromise();\n            Promise combinedCloseAfterPromise = executor.newPromise();\n            Promise combinedClosePromise = executor.newPromise();\n            Promise combinedClosePromise = executor.newPromise();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/Netflix/zuul/commit/aecce216100e94605ea483e65019f08a24562123",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "        verify(processor).recordFilterCompletion(same(request), same(filter), info.capture());\n        verify(processor).recordFilterCompletion(same(request), same(filter), info.capture(), anyLong());\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/Netflix/zuul/commit/1cebb8f16b324dcf3ee00a21fe53f5907c203497",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            3,
            4,
            5
        ]
    },
    {
        "input": "        verify(processor).recordFilterCompletion(same(request), same(filter), info.capture());\n        verify(processor).recordFilterCompletion(same(request), same(filter), info.capture(), any());\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/Netflix/zuul/commit/e675e1420ade95e01734dfd464a96252d8276aa2",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            1,
            2,
            3
        ]
    },
    {
        "input": "                                        dataSourceBo.getActiveConnectionSize(), dataSourceListBo.getTimestamp(), tags);\n                                        dataSourceBo.getActiveConnectionSize(), dataSourceListBo.getTimestamp(), tags, dataSourceBo.getJdbcUrl());\n                                        dataSourceBo.getMaxConnectionSize(), dataSourceListBo.getTimestamp(), tags);\n                                        dataSourceBo.getMaxConnectionSize(), dataSourceListBo.getTimestamp(), tags, dataSourceBo.getJdbcUrl());\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/b6d1203fbeb1d074d046943abf48c683648ebb92",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "                        transactionId = new String(header.value(), KafkaConstants.DEFAULT_PINPOINT_HEADER_CHARSET);\n                        transactionId = BytesUtils.toString(header.value());\n                        parentSpanID = new String(header.value(), KafkaConstants.DEFAULT_PINPOINT_HEADER_CHARSET);\n                        parentSpanID = BytesUtils.toString(header.value());\n                        spanID = new String(header.value(), KafkaConstants.DEFAULT_PINPOINT_HEADER_CHARSET);\n                        spanID = BytesUtils.toString(header.value());\n                        flags = new String(header.value(), KafkaConstants.DEFAULT_PINPOINT_HEADER_CHARSET);\n                        flags = BytesUtils.toString(header.value());\n                        parentApplicationName = new String(header.value(), KafkaConstants.DEFAULT_PINPOINT_HEADER_CHARSET);\n                        parentApplicationName = BytesUtils.toString(header.value());\n                        parentApplicationType = new String(header.value(), KafkaConstants.DEFAULT_PINPOINT_HEADER_CHARSET);\n                        parentApplicationType = BytesUtils.toString(header.value());\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/b82278f6f36a112d53990e488d6d21329e0a9c82",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            6,
            7
        ]
    },
    {
        "input": "                max: 'rgba(174, 199, 232, 0.4)',\n                used: 'rgba(31, 119, 180, 0.4)',\n                max: 'rgba(31, 119, 180, 0.4)',\n                used: 'rgba(174, 199, 232, 0.4)',\n                max: 'rgba(174, 199, 232, 0.4)',\n                used: 'rgba(31, 119, 180, 0.4)',\n                max: 'rgba(31, 119, 180, 0.4)',\n                used: 'rgba(174, 199, 232, 0.4)',\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/51778cc26ad85ebc5a650b36d149393abfa1af60",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "        this(name, ClientFactoryUtils.newPinpointClientProvider(host, port, clientFactory), newDefaultMessageSerializer());\n        this(name, ClientFactoryUtils.newPinpointClientProvider(host, port, clientFactory), newDefaultMessageSerializer(), DEFAULT_QUEUE_SIZE);\n        this(name, ClientFactoryUtils.newPinpointClientProvider(host, port, clientFactory), messageSerializer);\n        this(name, ClientFactoryUtils.newPinpointClientProvider(host, port, clientFactory), messageSerializer, DEFAULT_QUEUE_SIZE);\n    }\n\n    public TcpDataSender(String name, String host, int port, PinpointClientFactory clientFactory, MessageSerializer messageSerializer, int queueSize) {\n        this(name, ClientFactoryUtils.newPinpointClientProvider(host, port, clientFactory), messageSerializer, queueSize);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/716bcba97f5e323f5171b4c3f442cedb3b150697",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "\n        throw new UnSupportedServerRequestTypeException(serverRequest.getClass() + \"is not support type : \" + serverRequest);\n\n        throw new UnSupportedServerRequestTypeException(serverRequest.getClass() + \"is not support type : \" + serverRequest);\n\n        throw new UnSupportedServerRequestTypeException(serverRequest.getClass() + \"is not support type : \" + serverRequest);\n\n        throw new UnSupportedServerRequestTypeException(serverRequest.getClass() + \"is not support type : \" + serverRequest);\n\n        throw new UnSupportedServerRequestTypeException(serverRequest.getClass() + \"is not support type : \" + serverRequest);\n\n            throw new UnSupportedServerRequestTypeException(serverRequest.getClass() + \"is not support type : \" + serverRequest);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.8333333333333334,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/49740a9b27d09e9e7e1d851929110c55a14e33ba",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3,
            5,
            7,
            9,
            11
        ]
    },
    {
        "input": "        NioClientSocketChannelFactory nioClientSocketChannelFactory = createChannelFactory(bossCount, workerCount, timer);\n        return new ClientBootstrap(nioClientSocketChannelFactory);\n        ChannelFactory channelFactory = createChannelFactory(bossCount, workerCount, timer);\n        return new ClientBootstrap(channelFactory);\n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/ed3bf5f3ca5750d3a9884b57d155614b7b286d6c",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "        pinpointClientHandler.setConnectSocketAddress(address);\n        pinpointClientHandler.setConnectSocketAddress(address);\n            pinpointClientHandler.setConnectSocketAddress(socketAddress);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/ed3bf5f3ca5750d3a9884b57d155614b7b286d6c",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            11,
            4
        ]
    },
    {
        "input": "        Channel channel = e.getChannel();\n        final Channel channel = e.getChannel();\n        Channel channel = e.getChannel();\n        final Channel channel = e.getChannel();\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.2,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/ed3bf5f3ca5750d3a9884b57d155614b7b286d6c",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "    private final Map params;\n    private final Map parameters;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 0.6666666666666666,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/e76219995ac615257c29a4e5cc7720a20567329f",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8,
            9
        ]
    },
    {
        "input": "import com.navercorp.pinpoint.bootstrap.context.MethodDescriptor;\nimport com.navercorp.pinpoint.bootstrap.context.TraceContext;\nimport com.navercorp.pinpoint.bootstrap.context.MethodDescriptor;\nimport com.navercorp.pinpoint.bootstrap.context.TraceContext;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.3333333333333333,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/3d566c324e56b7c1a14eb819b15fb40f322e27fc",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "    private final TraceContext traceContext;\n    private final TraceContext traceContext;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/3d566c324e56b7c1a14eb819b15fb40f322e27fc",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            6
        ]
    },
    {
        "input": "    private final MethodDescriptor methodDescriptor;\n    private final MethodDescriptor methodDescriptor;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/3d566c324e56b7c1a14eb819b15fb40f322e27fc",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            7
        ]
    },
    {
        "input": "        this.methodDescriptor = methodDescriptor;\n        this.methodDescriptor = methodDescriptor;\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/3d566c324e56b7c1a14eb819b15fb40f322e27fc",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            9
        ]
    },
    {
        "input": "        List> dotListList = hbaseOperations2.find(HBaseTables.APPLICATION_TRACE_INDEX, scan, traceIdRowKeyDistributor, limit, traceIndexScatterMapper);\n        List> dotListList = hbaseOperations2.findParallel(HBaseTables.APPLICATION_TRACE_INDEX, scan, traceIdRowKeyDistributor, limit, traceIndexScatterMapper, APPLICATION_TRACE_INDEX_NUM_PARTITIONS);\n        List> dotListList = hbaseOperations2.find(HBaseTables.APPLICATION_TRACE_INDEX, scan, traceIdRowKeyDistributor, limit, mapper);\n        List> dotListList = hbaseOperations2.findParallel(HBaseTables.APPLICATION_TRACE_INDEX, scan, traceIdRowKeyDistributor, limit, mapper, APPLICATION_TRACE_INDEX_NUM_PARTITIONS);\n",
        "class": "clone",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/67862a0e9d20001bff0933c26755c32bc7aabda0",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4
        ]
    },
    {
        "input": "            LinkDataMap linkDataMap = hbaseOperations2.find(HBaseTables.MAP_STATISTICS_CALLER_VER2, scan, rowKeyDistributorByHashPrefix, resultExtractor);\n            LinkDataMap linkDataMap = hbaseOperations2.findParallel(HBaseTables.MAP_STATISTICS_CALLER_VER2, scan, rowKeyDistributorByHashPrefix, resultExtractor, MAP_STATISTICS_CALLER_VER2_NUM_PARTITIONS);\n            LinkDataMap linkDataMap = hbaseOperations2.find(HBaseTables.MAP_STATISTICS_CALLEE_VER2, scan, rowKeyDistributorByHashPrefix, resultExtractor);\n            LinkDataMap linkDataMap = hbaseOperations2.findParallel(HBaseTables.MAP_STATISTICS_CALLEE_VER2, scan, rowKeyDistributorByHashPrefix, resultExtractor, MAP_STATISTICS_CALLEE_VER2_NUM_PARTITIONS);\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/67862a0e9d20001bff0933c26755c32bc7aabda0",
        "target_edit_idx": 8,
        "propagatable_edit_idx": [
            10
        ]
    },
    {
        "input": "            InstrumentClass loggingEvent = byteCodeInstrumentor.getClass(classLoader, javassistClassName, classFileBuffer);\n            loggingEvent.addDelegatorMethod(\"append\", new String[]{\"org.apache.log4j.spi.LoggingEvent\"});\n            InstrumentClass nelo2AsyncAppender = byteCodeInstrumentor.getClass(classLoader, javassistClassName, classFileBuffer);\n            \n            if (!nelo2AsyncAppender.hasDeclaredMethod(\"append\", new String[]{\"org.apache.log4j.spi.LoggingEvent\"})) {\n                nelo2AsyncAppender.addDelegatorMethod(\"append\", new String[]{\"org.apache.log4j.spi.LoggingEvent\"});\n            }\n            \n",
        "class": "variable_rename",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/7553c5c569d136248583dab693c6cc304e15eb9d",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            8,
            9
        ]
    },
    {
        "input": "            InstrumentClass loggingEvent = byteCodeInstrumentor.getClass(classLoader, javassistClassName, classFileBuffer);\n            InstrumentClass neloAppender = byteCodeInstrumentor.getClass(classLoader, javassistClassName, classFileBuffer);\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/7553c5c569d136248583dab693c6cc304e15eb9d",
        "target_edit_idx": 10,
        "propagatable_edit_idx": [
            11,
            12
        ]
    },
    {
        "input": "            if (toNode.getApplication().equals(toApplication)) {\n            if (toNode.getApplication().equals(toApplication) && toNode.getServiceType().equals(toApplication.getServiceType())) {\n            if (fromNode.getApplication().equals(fromApplication)) {\n            if (fromNode.getApplication().equals(fromApplication) && fromNode.getServiceType().equals(fromApplication.getServiceType())) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/pinpoint-apm/pinpoint/commit/bb8ee8cf6be8e758a5b46a1c7b1c745329f75efd",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            3
        ]
    },
    {
        "input": "\t\tprivate Map getRefCommits(Repository repository) {\n\t\tprivate Map getBranchCommits(Repository repository) {\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/theonedev/onedev/commit/13e4887095e2b29cadc6d3cbc16906b225d1b247",
        "target_edit_idx": 2,
        "propagatable_edit_idx": [
            4,
            5
        ]
    },
    {
        "input": "\t\t\tfor (var ref: GitUtils.getCommitRefs(repository, null)) {\n\t\t\tfor (var ref: GitUtils.getCommitRefs(repository, R_HEADS)) {\n\t\t\t\t\t\tfor (var ref: GitUtils.getCommitRefs(repository, null)) {\n\t\t\t\t\t\tfor (var ref: GitUtils.getCommitRefs(repository, R_HEADS)) {\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/theonedev/onedev/commit/13e4887095e2b29cadc6d3cbc16906b225d1b247",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            11
        ]
    },
    {
        "input": "\t\t\t\t\t\t\tlink.add(new Label(\"label\", build.getBranch()));\n\t\t\t\t\t\t\tlink.add(new Label(\"label\", \"branch \" + build.getBranch()));\n\t\t\t\t\t\t\tlink.add(new Label(\"label\", build.getTag()));\n\t\t\t\t\t\t\tlink.add(new Label(\"label\", \"tag \" + build.getTag()));\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/theonedev/onedev/commit/a4362dde486e30e61f4874ab18100e0fcc1c4ae5",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            5
        ]
    },
    {
        "input": "\tprivate final String type;\n\tprivate final String mediaType;\n",
        "class": "variable_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/theonedev/onedev/commit/ebd5065973927a1d7a2df7aebc319a9c247c26e4",
        "target_edit_idx": 5,
        "propagatable_edit_idx": [
            8,
            6,
            7
        ]
    },
    {
        "input": "\t\t\t\tProjectBuildsPage.paramsOf(getProject())));\n\t\t\t\tProjectBuildsPage.paramsOf(getProject(), 0)));\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/theonedev/onedev/commit/9ed803d714869cf3962703ce9097d1d1da065f31",
        "target_edit_idx": 3,
        "propagatable_edit_idx": [
            4,
            5,
            6,
            7
        ]
    },
    {
        "input": "\t\t\t\tProjectCommitsPage.paramsOf(getProject())));\n\t\t\t\tProjectCommitsPage.paramsOf(getProject(), null)));\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/theonedev/onedev/commit/9ed803d714869cf3962703ce9097d1d1da065f31",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            3,
            5,
            6,
            7
        ]
    },
    {
        "input": "\t\t\t\tProjectIssueListPage.paramsOf(getProject())));\n\t\t\t\tProjectIssueListPage.paramsOf(getProject(), 0)));\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/theonedev/onedev/commit/9ed803d714869cf3962703ce9097d1d1da065f31",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            7
        ]
    },
    {
        "input": "\t\t\t\tProjectPullRequestsPage.paramsOf(getProject())));\n\t\t\t\tProjectPullRequestsPage.paramsOf(getProject(), 0)));\n",
        "class": "def&ref",
        "binary_label": 0,
        "regression_label": 0.0,
        "commit_url": "https://github.com/theonedev/onedev/commit/9ed803d714869cf3962703ce9097d1d1da065f31",
        "target_edit_idx": 7,
        "propagatable_edit_idx": [
            3,
            4,
            5,
            6
        ]
    },
    {
        "input": "\t\t\t\tif (isPrivate)\n\t\t\t\t\tbuilder.setUserInfo(\"git\", getAccessToken());\n\t\t\t\tbuilder.setUserInfo(\"git\", getAccessToken());\n\t\t\t\tif (isPrivate)\n\t\t\t\t\tbuilder.setUserInfo(\"git\", getAccessToken());\n\t\t\t\tbuilder.setUserInfo(\"git\", getAccessToken());\n",
        "class": "clone",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/theonedev/onedev/commit/ec67156762e40d445781f4ae959d7f991802c4d2",
        "target_edit_idx": 1,
        "propagatable_edit_idx": [
            2
        ]
    },
    {
        "input": "\tvoid fixFieldValueOrders();\n\tvoid fixStateAndFieldOrdinals();\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/theonedev/onedev/commit/d82d3b72e8229f3b6353abc042de8d7d5a93614a",
        "target_edit_idx": 0,
        "propagatable_edit_idx": [
            2,
            6
        ]
    },
    {
        "input": "\t\t\t\t\treturn checkFieldValueOrders(markupId);\n\t\t\t\t\treturn checkStateAndFieldOrdinals(markupId);\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 1.0,
        "commit_url": "https://github.com/theonedev/onedev/commit/d82d3b72e8229f3b6353abc042de8d7d5a93614a",
        "target_edit_idx": 4,
        "propagatable_edit_idx": [
            3,
            5
        ]
    },
    {
        "input": "\t\t\t\t\t\tgetIssueManager().fixFieldValueOrders();\n\t\t\t\t\t\tgetIssueManager().fixStateAndFieldOrdinals();\n",
        "class": "function_rename",
        "binary_label": 1,
        "regression_label": 0.5,
        "commit_url": "https://github.com/theonedev/onedev/commit/d82d3b72e8229f3b6353abc042de8d7d5a93614a",
        "target_edit_idx": 6,
        "propagatable_edit_idx": [
            0,
            2
        ]
    },
    {
        "input": "\t\t\t\t\t\t$lastItem.after(\"
  • \");\n
    \t\t\t\t\t\t$lastItem.after(\"
  • \");\n
    \t\t\t\t\t\t$lastItem.after(\"
    \");\n
    \t\t\t\t\t\t$lastItem.after(\"
    \");\n
    ", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/theonedev/onedev/commit/3380ea835a59e840547bfe960283c6b01913ca7e", "target_edit_idx": 9, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\t\t\t\t\t\t\t\t\tfor (Long issueNumber: IssueUtils.parseFixedIssueNumbers(commitMessage)) {\n\t\t\t\t\t\t\t\t\t\tfor (Long issueNumber: IssueUtils.parseFixedIssueNumbers(project, commitMessage)) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/theonedev/onedev/commit/c0be5e9299043f67de6a0718ed06128265e490ce", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 9, 11 ] }, { "input": "\t\t\t\t\t\tfixedIssueNumbers.addAll(IssueUtils.parseFixedIssueNumbers(commit.getFullMessage()));\n\t\t\t\t\t\tfixedIssueNumbers.addAll(IssueUtils.parseFixedIssueNumbers(getProject(), commit.getFullMessage()));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/theonedev/onedev/commit/c0be5e9299043f67de6a0718ed06128265e490ce", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 9, 11 ] }, { "input": "\t\t\t\t\t\tif (IssueUtils.parseFixedIssueNumbers(commit.getFullMessage()).contains(issue.getNumber()))\n\t\t\t\t\t\tif (IssueUtils.parseFixedIssueNumbers(issue.getProject(), commit.getFullMessage()).contains(issue.getNumber()))\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/theonedev/onedev/commit/c0be5e9299043f67de6a0718ed06128265e490ce", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 9, 11 ] }, { "input": "\tprivate static final String PARAM_QUERY = \"query\";\n\tprivate static final String PARAM_TEMPLATE = \"query\";\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/theonedev/onedev/commit/3bcb17f6be9bbed4aa527d97c5931fd55b5b5e34", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\t\t\t\tcriterias.add(new StateCriteria(fromState));\n\t\t\t\t\tfromStateCriterias.add(new StateCriteria(fromState));\n\t\t\t\t\n\t\t\t\tcriterias.add(IssueCriteria.or(fromStateCriterias));\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/theonedev/onedev/commit/32e0c2ff0facd0312e8fc1053f3796f5671f578a", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 7 ] }, { "input": "\t\t\t\tquery = new IssueQuery(IssueCriteria.of(criterias), new ArrayList<>());\n\t\t\t\tquery = new IssueQuery(IssueCriteria.and(criterias), new ArrayList<>());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/theonedev/onedev/commit/32e0c2ff0facd0312e8fc1053f3796f5671f578a", "target_edit_idx": 2, "propagatable_edit_idx": [ 5, 8, 10, 12, 13, 14 ] }, { "input": "\t\treturn new IssueQuery(IssueCriteria.of(criterias), sorts);\n\t\treturn new IssueQuery(IssueCriteria.and(criterias), sorts);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/theonedev/onedev/commit/32e0c2ff0facd0312e8fc1053f3796f5671f578a", "target_edit_idx": 12, "propagatable_edit_idx": [ 2, 5, 8, 10, 13, 14 ] }, { "input": "\t\t\t\treturn new IssueQuery(IssueCriteria.of(criterias), boardQuery.getSorts());\n\t\t\t\treturn new IssueQuery(IssueCriteria.and(criterias), boardQuery.getSorts());\n\t\t\t\tquery = new IssueQuery(IssueCriteria.of(criterias), new ArrayList<>());\n\t\t\t\tquery = new IssueQuery(IssueCriteria.and(criterias), new ArrayList<>());\n\t\t\t\t\t\t\t\t\tquery = new IssueQuery(IssueCriteria.of(criterias), new ArrayList<>());\n\t\t\t\t\t\t\t\t\tquery = new IssueQuery(IssueCriteria.and(criterias), new ArrayList<>());\n\t\t\t\t\t\t\t\t\t\tquery = new IssueQuery(IssueCriteria.of(criterias), new ArrayList<>());\n\t\t\t\t\t\t\t\t\t\tquery = new IssueQuery(IssueCriteria.and(criterias), new ArrayList<>());\n\tpublic static IssueCriteria of(List criterias) {\n\tpublic static IssueCriteria and(List criterias) {\n\t\treturn new IssueQuery(IssueCriteria.of(criterias), sorts);\n\t\treturn new IssueQuery(IssueCriteria.and(criterias), sorts);\n\t\t\t\treturn new IssueQuery(IssueCriteria.of(criterias), backlogQuery.getSorts());\n\t\t\t\treturn new IssueQuery(IssueCriteria.and(criterias), backlogQuery.getSorts());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/theonedev/onedev/commit/32e0c2ff0facd0312e8fc1053f3796f5671f578a", "target_edit_idx": 14, "propagatable_edit_idx": [ 2, 5, 8, 10, 12, 13 ] }, { "input": "\t\t\t} else if (change.getAdditions()+change.getDeletions() > WebConstants.MAX_SINGLE_FILE_DIFF_LINES) {\n\t\t\t} else if (change.getAdditions()+change.getDeletions() > WebConstants.MAX_SINGLE_DIFF_LINES) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/theonedev/onedev/commit/07f7aba55279e24451d7845c7cf4a54266ebf24f", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "\t\t\t\t\tinput.setModelObject(\"\");\n\n\t\t\t\t\tinput.clearMarkdown();\n\t\t\t\t\t\n\t\t\t\t\tinput.setModelObject(\"\");\n\t\t\t\t\tinput.clearMarkdown();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/theonedev/onedev/commit/e246da5ee6a68ed60541c59c8d214539eda198a9", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " return writePosition;\n return new RollbackTransactionInfo(\n new CommittedCommandBatch.BatchInformation(1, KernelVersion.V5_18, 2, 3, 4, 5), writePosition);\n return writePosition;\n return null;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/a94273bc0e6f11db18436895b101ee5bd683fddd", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": "import org.neo4j.kernel.monitoring.tracing.Tracers;\nimport org.neo4j.kernel.monitoring.tracing.Tracers;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/3f3f2133a60aff7985144b9b57d80433f0a23c8b", "target_edit_idx": 1, "propagatable_edit_idx": [ 10 ] }, { "input": "import org.neo4j.io.pagecache.context.CursorContext;\nimport org.neo4j.io.pagecache.context.CursorContext;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/27154d32e2aebfb28f408edef2490ac975cba599", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " return reservePartition(\n cursor,\n (org.neo4j.kernel.impl.newapi.Read) executionContext.dataRead(),\n executionContext.cursorContext());\n }\n\n private boolean reservePartition(Cursor cursor, Read read, CursorContext cursorContext) {\n return reservePartition(\n cursor,\n (org.neo4j.kernel.impl.newapi.Read) executionContext.dataRead(),\n executionContext.cursorContext());\n }\n\n private boolean reservePartition(Cursor cursor, Read read, CursorContext cursorContext) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/27154d32e2aebfb28f408edef2490ac975cba599", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " indexCursor.setRead(read);\n final var indexProgressor = tokenScan.reservePartition(indexCursor, cursorContext);\n indexCursor.setRead((Read) executionContext.dataRead());\n final var indexProgressor = tokenScan.reservePartition(indexCursor, executionContext.cursorContext());\n indexCursor.setRead(read);\n final var indexProgressor = valueSeek.reservePartition(indexCursor, cursorContext);\n indexCursor.setRead((Read) executionContext.dataRead());\n final var indexProgressor = valueSeek.reservePartition(indexCursor, executionContext.cursorContext());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/27154d32e2aebfb28f408edef2490ac975cba599", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": " filesystem.mkdirs(file);\n filesystem.mkdirs(normalizedFile);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/c3cf91f9360fa244ca1e259e29556fa69723cbcf", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " private int depthOf(Root root, SeekCursor seeker, DATA_KEY low, DATA_KEY high) {\n /**\n * @return depth of the tree or -1 if it cannot be decided due to tree being inconsistent.\n */\n private int depthOf(\n Root root, SeekCursor seeker, DATA_KEY low, DATA_KEY high, SeekDepthMonitor monitor)\n throws IOException {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/63234a5de85dbeb87bf35a166d81b3856fd051f2", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " @Override\n public long getNumberOfIdsInUse() {\n return getHighId();\n }\n\n @Override\n public long getNumberOfIdsInUse() {\n return getHighId();\n }\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/neo4j/neo4j/commit/02145d23535bd356f32d579dff2e3a956ea081e4", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " return idGenerator.getNumberOfIdsInUse();\n return idGenerator.getHighId();\n return idGeneratorFactory.get(RecordIdType.PROPERTY).getNumberOfIdsInUse();\n return idGeneratorFactory.get(RecordIdType.PROPERTY).getHighId();\n return idGeneratorFactory.get(SchemaIdType.RELATIONSHIP_TYPE_TOKEN).getNumberOfIdsInUse();\n return idGeneratorFactory.get(SchemaIdType.RELATIONSHIP_TYPE_TOKEN).getHighId();\n return idGeneratorFactory.get(RecordIdType.NODE).getNumberOfIdsInUse();\n return idGeneratorFactory.get(RecordIdType.NODE).getHighId();\n return idGeneratorFactory.get(RecordIdType.RELATIONSHIP).getNumberOfIdsInUse();\n return idGeneratorFactory.get(RecordIdType.RELATIONSHIP).getHighId();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7692307692307693, "commit_url": "https://github.com/neo4j/neo4j/commit/02145d23535bd356f32d579dff2e3a956ea081e4", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 9, 6, 7 ] }, { "input": " allocateAtomicReferenceArray(newSize, localSize), oldTable.length() - 1);\n allocateAtomicReferenceArray(newSize), oldTable.length() - 1);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/2b499b453ec82d7fc09c372a5c43628284ed7780", "target_edit_idx": 9, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " @VisibleForTesting\n @VisibleForTesting\n @VisibleForTesting\n @VisibleForTesting\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/2b499b453ec82d7fc09c372a5c43628284ed7780", "target_edit_idx": 11, "propagatable_edit_idx": [ 12, 13, 14 ] }, { "input": " if (databaseStartupController.shouldAbort(namedDatabaseId)) {\n if (databaseStartupController.shouldAbort()) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/420ecd79bfc5a38579a8dfc59761c9e2750a03e2", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 5, 6, 7, 8 ] }, { "input": " assertFalse(guardController.shouldAbort(new NamedDatabaseId(\"any\", randomUUID())));\n assertFalse(guardController.shouldAbort());\n boolean shouldAbort(NamedDatabaseId namedDatabaseId);\n boolean shouldAbort();\n public boolean shouldAbort(NamedDatabaseId namedDatabaseId) {\n public boolean shouldAbort() {\n if (databaseStartupController.shouldAbort(namedDatabaseId)) {\n if (databaseStartupController.shouldAbort()) {\n assertTrue(guardController.shouldAbort(new NamedDatabaseId(\"any\", randomUUID())));\n assertTrue(guardController.shouldAbort());\n when(startupController.shouldAbort(namedDatabaseId)).thenReturn(true);\n when(startupController.shouldAbort()).thenReturn(true);\n when(startupController.shouldAbort(databaseId)).thenReturn(false, true);\n when(startupController.shouldAbort()).thenReturn(false, true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/420ecd79bfc5a38579a8dfc59761c9e2750a03e2", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3, 6, 7, 8 ] }, { "input": " assertTrue(guardController.shouldAbort(new NamedDatabaseId(\"any\", randomUUID())));\n assertTrue(guardController.shouldAbort());\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/420ecd79bfc5a38579a8dfc59761c9e2750a03e2", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 2, 3, 5, 7, 8 ] }, { "input": " when(startupController.shouldAbort(namedDatabaseId)).thenReturn(true);\n when(startupController.shouldAbort()).thenReturn(true);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/420ecd79bfc5a38579a8dfc59761c9e2750a03e2", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 2, 3, 5, 6, 8 ] }, { "input": " return createMigrator(logService, Config.defaults());\n return createMigrator(\n logService, Config.defaults(GraphDatabaseInternalSettings.include_versions_under_development, false));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/d7b9271c0833b48f6dc0428efc0ce10bf3bb7e4c", "target_edit_idx": 8, "propagatable_edit_idx": [ 5 ] }, { "input": "import static java.time.format.DateTimeFormatter.ISO_OFFSET_DATE_TIME;\nimport static java.time.format.DateTimeFormatter.ISO_OFFSET_DATE_TIME;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/f66f206acbcebf1487bb4f34c57e07ad2242350c", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " IndexPrototype prototype =\n IndexPrototype.uniqueForSchema(schema).withName(name);\n prototype = prototype.withIndexType(fromPublicApi(indexType));\n prototype = prototype.withIndexConfig(indexConfig);\n IndexPrototype prototype = IndexPrototype.uniqueForSchema(schema)\n .withName(name)\n .withIndexType(fromPublicApi(indexType))\n .withIndexConfig(indexConfig);\n IndexPrototype prototype =\n IndexPrototype.uniqueForSchema(schema).withName(name);\n prototype = prototype.withIndexType(fromPublicApi(indexType));\n prototype = prototype.withIndexConfig(indexConfig);\n IndexPrototype prototype = IndexPrototype.uniqueForSchema(schema)\n .withName(name)\n .withIndexType(fromPublicApi(indexType))\n .withIndexConfig(indexConfig);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/f5f1df773a05aa9e9df7b847c7361eccefd5236b", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " RAFT(1, GraphDatabaseSettings.Mode.CORE),\n REPLICA(2, GraphDatabaseSettings.Mode.READ_REPLICA),\n SINGLE(0, GraphDatabaseSettings.Mode.SINGLE);\n raft(1, GraphDatabaseSettings.Mode.CORE),\n replica(2, GraphDatabaseSettings.Mode.READ_REPLICA),\n single(0, GraphDatabaseSettings.Mode.SINGLE);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/116390135c52b2fc97ae4b379c308803abec1161", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " private final LogCommandSerialization serialization = LogCommandSerializationV4_2.INSTANCE;\n private final LogCommandSerialization serialization = RecordStorageCommandReaderFactory.LATEST_LOG_SERIALIZATION;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/neo4j/neo4j/commit/6d43206c981b8c729869d0e9347b350079693680", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " CommandReader reader = LogCommandSerializationV4_2.INSTANCE;\n CommandReader reader = RecordStorageCommandReaderFactory.LATEST_LOG_SERIALIZATION;\n private final LogCommandSerialization serialization = LogCommandSerializationV4_2.INSTANCE;\n private final LogCommandSerialization serialization = RecordStorageCommandReaderFactory.LATEST_LOG_SERIALIZATION;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/6d43206c981b8c729869d0e9347b350079693680", "target_edit_idx": 10, "propagatable_edit_idx": [ 9 ] }, { "input": " return StoreId.UNKNOWN.equals( headerStoreId ) || headerStoreId.equalsIgnoringUpdate( checkpointInfo.storeId() );\n return StoreId.UNKNOWN.equals( headerStoreId ) || headerStoreId.equalsIgnoringVersion( checkpointInfo.storeId() );\n if ( !storeId.equalsIgnoringUpdate( txStoreId ) )\n if ( !storeId.equalsIgnoringVersion( txStoreId ) )\n public boolean equalsIgnoringUpdate( Object o )\n public boolean equalsIgnoringVersion( Object o )\n if ( !equalsIgnoringUpdate( otherStoreId ) )\n if ( !equalsIgnoringVersion( otherStoreId ) )\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/2befebb9a9a4ec27ee022f72f3415f5a0814eff6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 4 ] }, { "input": " getQueryExecutionMonitor().startExecution( executingQuery );\n monitoringMode.startExecution();\n monitoringMode.startExecution(shouldLogIfSingleQuery);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/74c35f88844bcd2c78bb8f9942717a3a2dfa3382", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5, 6, 8 ] }, { "input": " abstract void startExecution();\n abstract void startExecution( Boolean shouldLogIfSingleQuery );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/74c35f88844bcd2c78bb8f9942717a3a2dfa3382", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 6, 8 ] }, { "input": " void startExecution()\n void startExecution( Boolean shouldLogIfSingleQuery )\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/74c35f88844bcd2c78bb8f9942717a3a2dfa3382", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 4, 5, 8 ] }, { "input": " defaultDatabase = (String) defaultDatabaseNode.getProperty( \"name\" );\n defaultDatabase = (String) defaultDatabaseNode.getProperty( NAME_PROPERTY, defaultDatabase );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/4394e87f731df59d29bc1d41cdd17a6470595ba7", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " assertThrows( ProcedureException.class, () -> procedure.invoke( ID, ctx ), expectedMessage );\n assertThrows( ProcedureException.class, () -> invoke( procedure, ID, ctx ), expectedMessage );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/6050af0b4307d85461f215abcbea22ccae06b3af", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5, 6, 7, 8, 9 ] }, { "input": " var result = procedure.invoke( ID, ctx );\n var result = invoke( procedure, ID, ctx );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/6050af0b4307d85461f215abcbea22ccae06b3af", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4, 6, 7, 8, 9 ] }, { "input": " V4_3_D3( (byte) 3 );\n V4_3_D4( (byte) 3 );\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/b7a374223d6a62d5a8023ff8f97897f75dda9765", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " V4_3_D3( 4, DBMS_RUNTIME_COMPONENT, Neo4jVersions.VERSION_43D3, KernelVersion.V4_3_D3 );\n V4_3_D4( 4, DBMS_RUNTIME_COMPONENT, Neo4jVersions.VERSION_43D4, KernelVersion.V4_3_D4 );\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/b7a374223d6a62d5a8023ff8f97897f75dda9765", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11 ] }, { "input": " KernelVersion.V4_3_D3, KernelVersion.V4_2, currentVersion, versionToUpgradeTo );\n KernelVersion.V4_3_D4, KernelVersion.V4_2, currentVersion, versionToUpgradeTo );\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/neo4j/neo4j/commit/b7a374223d6a62d5a8023ff8f97897f75dda9765", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11 ] }, { "input": " KernelVersion version = KernelVersion.V4_3_D3;\n KernelVersion version = KernelVersion.V4_3_D4;\n V4_3_D3( (byte) 3 );\n V4_3_D4( (byte) 3 );\n public static final KernelVersion LATEST = V4_3_D3;\n public static final KernelVersion LATEST = V4_3_D4;\n setDbmsRuntime( DbmsRuntimeVersion.V4_3_D3 );\n setDbmsRuntime( DbmsRuntimeVersion.V4_3_D4 );\n V4_3_D3( 4, DBMS_RUNTIME_COMPONENT, Neo4jVersions.VERSION_43D3, KernelVersion.V4_3_D3 );\n V4_3_D4( 4, DBMS_RUNTIME_COMPONENT, Neo4jVersions.VERSION_43D4, KernelVersion.V4_3_D4 );\n public static final DbmsRuntimeVersion LATEST_DBMS_RUNTIME_COMPONENT_VERSION = V4_3_D3;\n public static final DbmsRuntimeVersion LATEST_DBMS_RUNTIME_COMPONENT_VERSION = V4_3_D4;\n return KernelVersion.V4_3_D3;\n return KernelVersion.V4_3_D4;\n case V4_3_D3:\n case V4_3_D4:\n KernelVersion.V4_3_D3, KernelVersion.V4_2, currentVersion, versionToUpgradeTo );\n KernelVersion.V4_3_D4, KernelVersion.V4_2, currentVersion, versionToUpgradeTo );\n return neoStores.getMetaDataStore().kernelVersion().isAtLeast( KernelVersion.V4_3_D3 );\n return neoStores.getMetaDataStore().kernelVersion().isAtLeast( KernelVersion.V4_3_D4 );\n super( KernelVersion.V4_3_D3 );\n super( KernelVersion.V4_3_D4 );\n PARSER_SETS.put( KernelVersion.V4_3_D3, new LogEntryParserSetV4_3() );\n PARSER_SETS.put( KernelVersion.V4_3_D4, new LogEntryParserSetV4_3() );\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/neo4j/neo4j/commit/b7a374223d6a62d5a8023ff8f97897f75dda9765", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": " doReturn( mock( StatementMetadata.class ) ).when( statementProcessor ).run( anyString(), any() );\n doReturn( mock( StatementMetadata.class ) ).when( statementProcessor ).run( anyString(), any(), any(), any(), any(), any() );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/aa8a000f75bf114724561a45d60716421ca852a1", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 6, 7, 8, 9, 10 ] }, { "input": " .run( \"CALL dbms.routing.getRoutingTable($routingContext, $databaseName)\", getExpectedParams( routingTableContext, databaseName ) );\n .run( \"CALL dbms.routing.getRoutingTable($routingContext, $databaseName)\",\n getExpectedParams( routingTableContext, databaseName ), List.of(), null, AccessMode.READ, Map.of() );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/aa8a000f75bf114724561a45d60716421ca852a1", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 5, 7, 8, 9, 10 ] }, { "input": " doReturn( statementMetadata ).when( statementProcessor ).run( anyString(), any() );\n doReturn( statementMetadata ).when( statementProcessor ).run( anyString(), any(), any(), any(), any(), any() );\n StatementMetadata statementMetadata = statementProcessor.run( GET_ROUTING_TABLE_STATEMENT, params );\n StatementMetadata statementMetadata =\n statementProcessor.run( GET_ROUTING_TABLE_STATEMENT, params, List.of(), null, AccessMode.READ, Map.of() );\n doReturn( mock( StatementMetadata.class ) ).when( statementProcessor ).run( anyString(), any() );\n doReturn( mock( StatementMetadata.class ) ).when( statementProcessor ).run( anyString(), any(), any(), any(), any(), any() );\n .run( \"CALL dbms.routing.getRoutingTable($routingContext, $databaseName)\", getExpectedParams( routingTableContext, databaseName ) );\n .run( \"CALL dbms.routing.getRoutingTable($routingContext, $databaseName)\",\n getExpectedParams( routingTableContext, databaseName ), List.of(), null, AccessMode.READ, Map.of() );\n doReturn( statementMetadata ).when( statementProcessor ).run( anyString(), any() );\n doReturn( statementMetadata ).when( statementProcessor ).run( anyString(), any(), any(), any(), any(), any() );\n doThrow( expectedException ).when( statementProcessor ).run( anyString(), any() );\n doThrow( expectedException ).when( statementProcessor ).run( anyString(), any(), any(), any(), any(), any() );\n doReturn( statementMetadata ).when( statementProcessor ).run( anyString(), any() );\n doReturn( statementMetadata ).when( statementProcessor ).run( anyString(), any(), any(), any(), any(), any() );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/aa8a000f75bf114724561a45d60716421ca852a1", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 5, 6, 8, 9, 10 ] }, { "input": " doReturn( statementMetadata ).when( statementProcessor ).run( anyString(), any() );\n doReturn( statementMetadata ).when( statementProcessor ).run( anyString(), any(), any(), any(), any(), any() );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/aa8a000f75bf114724561a45d60716421ca852a1", "target_edit_idx": 8, "propagatable_edit_idx": [ 2, 5, 6, 7, 9, 10 ] }, { "input": "import static org.neo4j.index.internal.gbptree.GBPTree.NO_HEADER_READER;\nimport static org.neo4j.index.internal.gbptree.GBPTree.NO_HEADER_READER;\nimport static org.neo4j.index.internal.gbptree.GBPTree.NO_HEADER_READER;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/443c38b58c365fa1368ec55ee69bc77908512765", "target_edit_idx": 4, "propagatable_edit_idx": [ 10, 7 ] }, { "input": " NativeIndexHeaderReader nativeIndexHeaderReader = new NativeIndexHeaderReader( NO_HEADER_READER );\n nativeIndexHeaderReader.read( emptyBuffer );\n assertSame( BYTE_FAILED, nativeIndexHeaderReader.state );\n assertThat( nativeIndexHeaderReader.failureMessage ).contains(\n \"Could not read header, most likely caused by index not being fully constructed. Index needs to be recreated. Stacktrace:\" );\n }\n\n @Test\n void mustReportFailedIfHeaderTooShort()\n {\n ByteBuffer emptyBuffer = ByteBuffer.wrap( new byte[1] );\n NativeIndexHeaderReader nativeIndexHeaderReader = new NativeIndexHeaderReader( ByteBuffer::get );\n NativeIndexHeaderReader nativeIndexHeaderReader = new NativeIndexHeaderReader();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/neo4j/neo4j/commit/443c38b58c365fa1368ec55ee69bc77908512765", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 11, 5, 6 ] }, { "input": " NativeIndexHeaderReader nativeIndexHeaderReader = new NativeIndexHeaderReader( NO_HEADER_READER );\n NativeIndexHeaderReader nativeIndexHeaderReader = new NativeIndexHeaderReader();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5454545454545454, "commit_url": "https://github.com/neo4j/neo4j/commit/443c38b58c365fa1368ec55ee69bc77908512765", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 11, 5, 6 ] }, { "input": " NativeIndexHeaderReader headerReader = new NativeIndexHeaderReader( NO_HEADER_READER );\n NativeIndexHeaderReader headerReader = new NativeIndexHeaderReader();\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5454545454545454, "commit_url": "https://github.com/neo4j/neo4j/commit/443c38b58c365fa1368ec55ee69bc77908512765", "target_edit_idx": 11, "propagatable_edit_idx": [ 8, 9, 5, 6 ] }, { "input": " CommandLine.usage( command, new PrintStream( out ) );\n CommandLine.usage( command, new PrintStream( out ), CommandLine.Help.Ansi.OFF );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/db3a62572454fe628636d45483bf5ec5705cb9c8", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " CommandLine.usage( command, new PrintStream( out ) );\n CommandLine.usage( command, new PrintStream( out ), CommandLine.Help.Ansi.OFF );\n CommandLine.usage( command, new PrintStream( out ) );\n CommandLine.usage( command, new PrintStream( out ), CommandLine.Help.Ansi.OFF );\n CommandLine.usage( command, new PrintStream( out ) );\n CommandLine.usage( command, new PrintStream( out ), CommandLine.Help.Ansi.OFF );\n CommandLine.usage( command, new PrintStream( out ) );\n CommandLine.usage( command, new PrintStream( out ), CommandLine.Help.Ansi.OFF );\n CommandLine.usage( command, new PrintStream( out ) );\n CommandLine.usage( command, new PrintStream( out ), CommandLine.Help.Ansi.OFF );\n CommandLine.usage( command, new PrintStream( out ) );\n CommandLine.usage( command, new PrintStream( out ), CommandLine.Help.Ansi.OFF );\n CommandLine.usage( command, new PrintStream( out ) );\n CommandLine.usage( command, new PrintStream( out ), CommandLine.Help.Ansi.OFF );\n CommandLine.usage( command, new PrintStream( out ) );\n CommandLine.usage( command, new PrintStream( out ), CommandLine.Help.Ansi.OFF );\n CommandLine.usage( command, new PrintStream( out ) );\n CommandLine.usage( command, new PrintStream( out ), CommandLine.Help.Ansi.OFF );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/db3a62572454fe628636d45483bf5ec5705cb9c8", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8 ] }, { "input": " CompilerInfo planner = status.isPlanning() ? null : this.compilerInfo;\n CompilerInfo planner = status.isParsingOrPlanning() ? null : this.compilerInfo;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/111585eed5a80fdf6a2616b88c80776aca985e8f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 5, 6 ] }, { "input": " boolean isPlanning()\n boolean isParsingOrPlanning()\n CompilerInfo planner = status.isPlanning() ? null : this.compilerInfo;\n CompilerInfo planner = status.isParsingOrPlanning() ? null : this.compilerInfo;\n long compilationTimeNanos = (status.isPlanning() ? currentTimeNanos : compilationCompletedNanos) - startTimeNanos;\n long compilationTimeNanos = (status.isParsingOrPlanning() ? currentTimeNanos : compilationCompletedNanos) - startTimeNanos;\n boolean isPlanning()\n boolean isParsingOrPlanning()\n boolean isPlanning()\n boolean isParsingOrPlanning()\n return previous.isPlanning();\n return previous.isParsingOrPlanning();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/neo4j/neo4j/commit/111585eed5a80fdf6a2616b88c80776aca985e8f", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 5, 6 ] }, { "input": " return previous.isPlanning();\n return previous.isParsingOrPlanning();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/111585eed5a80fdf6a2616b88c80776aca985e8f", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 5 ] }, { "input": " private void checkNameUniqueness( MutableObjectIntMap namesToId, NamedToken token )\n private void checkNameUniqueness( MutableObjectIntMap namesToId, NamedToken token, Registries registries )\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/aba3cada683f4997feb4820414e2d0a4b690972b", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3 ] }, { "input": " assertThrows( NonUniqueTokenException.class, () ->\n {\n registry.put( new NamedToken( INBOUND1_TYPE, 3 ) );\n } );\n assertThrows( NonUniqueTokenException.class, () -> registry.put( new NamedToken( INBOUND1_TYPE, 3 ) ) );\n assertThrows( NonUniqueTokenException.class, () ->\n {\n registry.put( new NamedToken( INBOUND1_TYPE, 3, true ) );\n } );\n assertThrows( NonUniqueTokenException.class, () -> registry.put( new NamedToken( INBOUND1_TYPE, 3, true ) ) );\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/neo4j/neo4j/commit/aba3cada683f4997feb4820414e2d0a4b690972b", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " public void commit() throws TransactionFailureException\n public void commit()\n public void rollback() throws TransactionFailureException\n public void rollback()\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/neo4j/neo4j/commit/a5551a514018204923b402ef25894631e71ff24c", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " kernelTransaction.commit();\n topLevelInternalTransaction.commit();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/neo4j/neo4j/commit/a5551a514018204923b402ef25894631e71ff24c", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " private static final long DEFAULT_RESERVE = 1024;\n private static final long DEFAULT_GRAB_SIZE = 1024;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/a4d6519342c8fe21fab7e9562da70fc6780df0c5", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " public LocalMemoryTracker( MemoryPool memoryGroupPool, long localHeapBytesLimit, long initialGrabSize )\n public LocalMemoryTracker( MemoryPool memoryGroupPool, long localHeapBytesLimit, long grabSize )\n private final long initialGrabSize;\n private final long grabSize;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/a4d6519342c8fe21fab7e9562da70fc6780df0c5", "target_edit_idx": 5, "propagatable_edit_idx": [ 2 ] }, { "input": " DatabaseManagementService managementService1 = databaseManagementServiceBuilder.build();\n DatabaseManagementService managementService = databaseManagementServiceBuilder.build();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/462adef38036d98a0b1adf67c2ed2872966d3040", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " return new EntityResultsQueueIterator( pq );\n return new EntityResultsMaxQueueIterator( pq );\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/adcaaedb5d3a2dba073516a7696870ff4c71ffa7", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 2, 3 ] }, { "input": " return new Neo4jError( Status.General.DatabaseUnavailable, cause, isFatal );\n return new Neo4jError( Status.Database.DatabaseUnavailable, cause, isFatal );\n throw new BoltIOException( Status.General.DatabaseUnavailable, format( \"Database `%s` is unavailable.\", databaseName ) );\n throw new BoltIOException( Status.Database.DatabaseUnavailable, format( \"Database `%s` is unavailable.\", databaseName ) );\nimport static org.neo4j.kernel.api.exceptions.Status.General.DatabaseUnavailable;\nimport static org.neo4j.kernel.api.exceptions.Status.Database.DatabaseUnavailable;\n assertThat( error.status(), equalTo( Status.General.DatabaseUnavailable ) );\n assertThat( error.status(), equalTo( Status.Database.DatabaseUnavailable ) );\nimport static org.neo4j.kernel.api.exceptions.Status.General.DatabaseUnavailable;\nimport static org.neo4j.kernel.api.exceptions.Status.Database.DatabaseUnavailable;\n return Status.General.DatabaseUnavailable;\n return Status.Database.DatabaseUnavailable;\n return Status.General.DatabaseUnavailable;\n return Status.Database.DatabaseUnavailable;\n allTransactions.forEach( tx -> tx.markForTermination( Status.General.DatabaseUnavailable ) );\n allTransactions.forEach( tx -> tx.markForTermination( Status.Database.DatabaseUnavailable ) );\n tx.markForTermination( Status.General.DatabaseUnavailable );\n tx.markForTermination( Status.Database.DatabaseUnavailable );\n assertEquals( Status.General.DatabaseUnavailable, tx1.getReasonIfTerminated().get() );\n assertEquals( Status.General.DatabaseUnavailable, tx2.getReasonIfTerminated().get() );\n assertEquals( Status.General.DatabaseUnavailable, tx3.getReasonIfTerminated().get() );\n assertEquals( Status.Database.DatabaseUnavailable, tx1.getReasonIfTerminated().get() );\n assertEquals( Status.Database.DatabaseUnavailable, tx2.getReasonIfTerminated().get() );\n assertEquals( Status.Database.DatabaseUnavailable, tx3.getReasonIfTerminated().get() );\n ErrorInvocation errorInvocation = new ErrorInvocation( new Neo4jError( Status.General.DatabaseUnavailable,\n ErrorInvocation errorInvocation = new ErrorInvocation( new Neo4jError( Status.Database.DatabaseUnavailable,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.24528301886792453, "commit_url": "https://github.com/neo4j/neo4j/commit/3a5d9a97b4a8b9d073e258ec5371696b1aac708e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 7, 8, 9, 10, 11, 12 ] }, { "input": " assertThat( error.status(), equalTo( Status.General.DatabaseUnavailable ) );\n assertThat( error.status(), equalTo( Status.Database.DatabaseUnavailable ) );\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.20754716981132076, "commit_url": "https://github.com/neo4j/neo4j/commit/3a5d9a97b4a8b9d073e258ec5371696b1aac708e", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 7, 8, 9, 10, 11, 12 ] }, { "input": " ErrorInvocation errorInvocation = new ErrorInvocation( new Neo4jError( Status.General.DatabaseUnavailable,\n ErrorInvocation errorInvocation = new ErrorInvocation( new Neo4jError( Status.Database.DatabaseUnavailable,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.05660377358490566, "commit_url": "https://github.com/neo4j/neo4j/commit/3a5d9a97b4a8b9d073e258ec5371696b1aac708e", "target_edit_idx": 12, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 7, 8, 9, 10, 11 ] }, { "input": "import org.neo4j.annotations.service.Service;\nimport org.neo4j.annotations.service.ServiceProvider;\n\nimport org.neo4j.annotations.service.Service;\nimport org.neo4j.annotations.service.ServiceProvider;\n\nimport org.neo4j.annotations.service.Service;\nimport org.neo4j.annotations.service.ServiceProvider;\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/neo4j/neo4j/commit/170fa790a5c77c7a03195533c101e4d0f7212bdf", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 7 ] }, { "input": "import org.neo4j.annotations.service.ServiceProvider;\n\nimport org.neo4j.annotations.service.Service;\n\nimport org.neo4j.annotations.service.ServiceProvider;\n\nimport org.neo4j.annotations.service.ServiceProvider;\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/170fa790a5c77c7a03195533c101e4d0f7212bdf", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6 ] }, { "input": " CentralJobScheduler scheduler = createCentralScheduler();\n return createInitialisedScheduler( Clocks.nanoClock() );\n }\n\n public static JobScheduler createInitialisedScheduler( SystemNanoClock clock )\n {\n CentralJobScheduler scheduler = createCentralScheduler( clock );\n private static CentralJobScheduler createCentralScheduler()\n private static CentralJobScheduler createCentralScheduler( SystemNanoClock clock )\n return createCentralScheduler();\n return createCentralScheduler( Clocks.nanoClock() );\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/2055271b2a2ea90147d76be83d957dde8dae3b5a", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " private static CentralJobScheduler createCentralScheduler()\n private static CentralJobScheduler createCentralScheduler( SystemNanoClock clock )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/neo4j/neo4j/commit/2055271b2a2ea90147d76be83d957dde8dae3b5a", "target_edit_idx": 8, "propagatable_edit_idx": [ 6, 7 ] }, { "input": " return new CentralJobScheduler();\n return new CentralJobScheduler( clock );\n return new CentralJobScheduler()\n return new CentralJobScheduler( Clocks.nanoClock() )\n private final CentralJobScheduler scheduler = life.add( new CentralJobScheduler() );\n private final CentralJobScheduler scheduler = life.add( new CentralJobScheduler( Clocks.nanoClock() ) );\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/2055271b2a2ea90147d76be83d957dde8dae3b5a", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 11 ] }, { "input": " neoStores.makeStoreOk();\n temporaryNeoStores.makeStoreOk();\n neoStores.start();\n temporaryNeoStores.start();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/neo4j/neo4j/commit/e0c7651e82f8c383b8f472c277c9d7eaeec9c8b4", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " public void makeStoreOk() throws IOException\n public void start() throws IOException\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/neo4j/neo4j/commit/e0c7651e82f8c383b8f472c277c9d7eaeec9c8b4", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " neoStores.makeStoreOk();\n neoStores.start();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/neo4j/neo4j/commit/e0c7651e82f8c383b8f472c277c9d7eaeec9c8b4", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " Config config = Config.defaults( GraphDatabaseSettings.SERVER_DEFAULTS );\n Config config = Config.newBuilder().setDefaults( GraphDatabaseSettings.SERVER_DEFAULTS ).build();\n Config config = Config.defaults( GraphDatabaseSettings.SERVER_DEFAULTS );\n Config config = Config.newBuilder().setDefaults( GraphDatabaseSettings.SERVER_DEFAULTS ).build();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/9775a29d80938587c153c2205792aaed6f0c7b35", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " public GraphDatabaseService getDefaultDatabaseService()\n public GraphDatabaseService defaultDatabaseService()\n neo4j.getDefaultDatabaseService().execute( \"MATCH (n:User) RETURN n\" )\n neo4j.defaultDatabaseService().execute( \"MATCH (n:User) RETURN n\" )\n Result result = ruleWithDirectory.getDefaultDatabaseService().execute( \"MATCH (n) RETURN count(n) AS \" + \"count\" );\n Result result = ruleWithDirectory.defaultDatabaseService().execute( \"MATCH (n) RETURN count(n) AS \" + \"count\" );\n GraphDatabaseAPI api = (GraphDatabaseAPI) neo4j.getDefaultDatabaseService();\n GraphDatabaseAPI api = (GraphDatabaseAPI) neo4j.defaultDatabaseService();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/130bb17c989a331eeac62041e40755a0c1858ffd", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " GraphDatabaseAPI api = (GraphDatabaseAPI) neo4j.getDefaultDatabaseService();\n GraphDatabaseAPI api = (GraphDatabaseAPI) neo4j.defaultDatabaseService();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/130bb17c989a331eeac62041e40755a0c1858ffd", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": " public ReadAndDeleteTransactionConflictException()\n private final boolean deletedInThisTransaction;\n\n public ReadAndDeleteTransactionConflictException( boolean deletedInThisTransaction )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/182dd9cc99211b1d5afa896230d3091cb5807dec", "target_edit_idx": 5, "propagatable_edit_idx": [ 7 ] }, { "input": " public ReadAndDeleteTransactionConflictException( Throwable cause )\n public ReadAndDeleteTransactionConflictException( boolean deletedInThisTransaction, Throwable cause )\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/182dd9cc99211b1d5afa896230d3091cb5807dec", "target_edit_idx": 7, "propagatable_edit_idx": [ 5 ] }, { "input": " throw new ReadAndDeleteTransactionConflictException();\n throw new ReadAndDeleteTransactionConflictException( RelationshipProxy.isDeletedInCurrentTransaction( relationship ) );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/182dd9cc99211b1d5afa896230d3091cb5807dec", "target_edit_idx": 10, "propagatable_edit_idx": [ 11, 3 ] }, { "input": " throw new ReadAndDeleteTransactionConflictException( e );\n throw new ReadAndDeleteTransactionConflictException( RelationshipProxy.isDeletedInCurrentTransaction( relationship ), e );\n throw new ReadAndDeleteTransactionConflictException();\n throw new ReadAndDeleteTransactionConflictException( RelationshipProxy.isDeletedInCurrentTransaction( relationship ) );\n throw new ReadAndDeleteTransactionConflictException( e );\n throw new ReadAndDeleteTransactionConflictException( NodeProxy.isDeletedInCurrentTransaction( node ), e );\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/182dd9cc99211b1d5afa896230d3091cb5807dec", "target_edit_idx": 11, "propagatable_edit_idx": [ 10, 3 ] }, { "input": " trySkipSystemCache( currentLog );\n tryEvictFromSystemCache( currentLog );\n private void trySkipSystemCache( LogVersionedStoreChannel currentLog )\n private void tryEvictFromSystemCache( LogVersionedStoreChannel currentLog )\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/a184d23b83e71996c641605c13f94cfb2b77fa4e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " public int trySkipCache( int fd )\n public int tryEvictFromCache( int fd )\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/neo4j/neo4j/commit/a184d23b83e71996c641605c13f94cfb2b77fa4e", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 5, 7, 8, 9, 10 ] }, { "input": " assertEquals( ERROR, nativeAccess.trySkipCache( 0 ) );\n assertEquals( ERROR, nativeAccess.trySkipCache( -1 ) );\n assertEquals( ERROR, nativeAccess.tryEvictFromCache( 0 ) );\n assertEquals( ERROR, nativeAccess.tryEvictFromCache( -1 ) );\n int result = nativeAccess.trySkipCache( fileDescriptor );\n int result = nativeAccess.tryEvictFromCache( fileDescriptor );\n public int trySkipCache( int fd )\n public int tryEvictFromCache( int fd )\n public int trySkipCache( int fd )\n public int tryEvictFromCache( int fd )\n int trySkipCache( int fd );\n int tryEvictFromCache( int fd );\n assertEquals( 0, absentNativeAccess.trySkipCache( 1 ) );\n assertEquals( 0, absentNativeAccess.trySkipCache( 2 ) );\n assertEquals( 0, absentNativeAccess.trySkipCache( -1 ) );\n assertEquals( 0, absentNativeAccess.tryEvictFromCache( 1 ) );\n assertEquals( 0, absentNativeAccess.tryEvictFromCache( 2 ) );\n assertEquals( 0, absentNativeAccess.tryEvictFromCache( -1 ) );\n assertEquals( 0, nativeAccess.trySkipCache( descriptor ) );\n assertEquals( 0, nativeAccess.tryEvictFromCache( descriptor ) );\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.2222222222222222, "commit_url": "https://github.com/neo4j/neo4j/commit/a184d23b83e71996c641605c13f94cfb2b77fa4e", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 4, 5, 7, 8, 10 ] }, { "input": "import java.util.HashMap;\nimport java.util.HashMap;\nimport java.util.HashMap;\n\nimport java.util.HashMap;\n", "class": "clone", "binary_label": 1, "regression_label": 0.375, "commit_url": "https://github.com/neo4j/neo4j/commit/07ecd0448d1bfe9934e160a202fb5459b4f349f4", "target_edit_idx": 0, "propagatable_edit_idx": [ 9, 12, 5 ] }, { "input": " private static final ConfiguredSpaceFillingCurveSettingsCache configuredSettings = new ConfiguredSpaceFillingCurveSettingsCache( Config.defaults() );\n private static final IndexSpecificSpaceFillingCurveSettingsCache specificSettings =\n new IndexSpecificSpaceFillingCurveSettingsCache( configuredSettings, new HashMap<>() );\n private static final IndexSpecificSpaceFillingCurveSettings specificSettings = IndexSpecificSpaceFillingCurveSettings.fromConfig( Config.defaults() );\n private static final ConfiguredSpaceFillingCurveSettingsCache configuredSettings = new ConfiguredSpaceFillingCurveSettingsCache( Config.defaults() );\n private static final IndexSpecificSpaceFillingCurveSettingsCache specificSettings =\n new IndexSpecificSpaceFillingCurveSettingsCache( configuredSettings, new HashMap<>() );\n private static final IndexSpecificSpaceFillingCurveSettings specificSettings = IndexSpecificSpaceFillingCurveSettings.fromConfig( Config.defaults() );\n private static final ConfiguredSpaceFillingCurveSettingsCache configuredSettings = new ConfiguredSpaceFillingCurveSettingsCache( config );\n private static final IndexSpecificSpaceFillingCurveSettingsCache specificSettings =\n new IndexSpecificSpaceFillingCurveSettingsCache( configuredSettings, new HashMap<>() );\n private static final IndexSpecificSpaceFillingCurveSettings specificSettings = IndexSpecificSpaceFillingCurveSettings.fromConfig( config );\n private static final ConfiguredSpaceFillingCurveSettingsCache configuredSettings = new ConfiguredSpaceFillingCurveSettingsCache( Config.defaults() );\n private static final IndexSpecificSpaceFillingCurveSettingsCache specificSettings =\n new IndexSpecificSpaceFillingCurveSettingsCache( configuredSettings, new HashMap<>() );\n private static final IndexSpecificSpaceFillingCurveSettings specificSettings = IndexSpecificSpaceFillingCurveSettings.fromConfig( Config.defaults() );\n private static final ConfiguredSpaceFillingCurveSettingsCache configuredSettings = new ConfiguredSpaceFillingCurveSettingsCache( Config.defaults() );\n private static final IndexSpecificSpaceFillingCurveSettingsCache specificSettings =\n new IndexSpecificSpaceFillingCurveSettingsCache( configuredSettings, new HashMap<>() );\n private static final IndexSpecificSpaceFillingCurveSettings specificSettings = IndexSpecificSpaceFillingCurveSettings.fromConfig( Config.defaults() );\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/07ecd0448d1bfe9934e160a202fb5459b4f349f4", "target_edit_idx": 2, "propagatable_edit_idx": [ 11, 4, 14, 7 ] }, { "input": "import static org.neo4j.function.Predicates.not;\nimport static org.neo4j.function.Predicates.not;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/neo4j/neo4j/commit/299dce12606353a967267d9313eda2fa6c084934", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " protected FormattedLog buildLog( Class loggingClass )\n protected FormattedLog buildLog( Class loggingClass )\n protected Log buildLog( Class loggingClass )\n protected Log buildLog( Class loggingClass )\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/neo4j/neo4j/commit/952501e65f7cd0e1c9e28a84033a47e4de449274", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " Log getLog( Class loggingClass );\n Log getLog( Class loggingClass );\n public Log getLog( Class loggingClass )\n public Log getLog( Class loggingClass )\n public Log getLog( Class loggingClass )\n public Log getLog( Class loggingClass )\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/neo4j/neo4j/commit/952501e65f7cd0e1c9e28a84033a47e4de449274", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " PhysicalLogVersionedStoreChannel newLog = logFiles.createLogChannelForVersion( newLogVersion,\n Set.of( READ, WRITE, CREATE ), context::committingTransactionId );\n PhysicalLogVersionedStoreChannel newLog = logFiles.createLogChannelForVersion( newLogVersion, context::committingTransactionId );\n channel = logFiles.createLogChannelForVersion( lastLogVersionUsed, Set.of( READ, WRITE, CREATE ), context::getLastCommittedTransactionId );\n channel = logFiles.createLogChannelForVersion( lastLogVersionUsed, context::getLastCommittedTransactionId );\n channel = logFiles.createLogChannelForVersion( lastLogVersionUsed, Set.of( READ, WRITE, CREATE ), context::getLastCommittedTransactionId );\n channel = logFiles.createLogChannelForVersion( lastLogVersionUsed, context::getLastCommittedTransactionId );\n PhysicalLogVersionedStoreChannel createLogChannelForVersion( long forVersion, Set options,\n LongSupplier lastTransactionIdSupplier ) throws IOException\n PhysicalLogVersionedStoreChannel createLogChannelForVersion( long forVersion, LongSupplier lastTransactionIdSupplier ) throws IOException\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/bbcbe0710c3f8b8ab902e56d875f3c557942d13a", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 6 ] }, { "input": " log.error( \"Error when negotiating protocol stack\", failure );\n log.error( String.format( \"Error when negotiating protocol stack on channel %s\", channel ), failure );\n log.error( \"Error when negotiating protocol stack\", failure );\n log.error( String.format( \"Error when negotiating protocol stack on channel %s\", channel ), failure );\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/3517a1f223dc23deeba8ef08fc1c3e4b9e442135", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " Map,String> config = new HashMap<>();\n config.put( GraphDatabaseSettings.auth_enabled, Boolean.toString( authEnabled ) );\n gdb = (GraphDatabaseAPI) new TestGraphDatabaseFactory().newImpermanentDatabase( config );\n Map,String> configMap = new HashMap<>();\n configMap.put( GraphDatabaseSettings.auth_enabled, Boolean.toString( authEnabled ) );\n gdb = (GraphDatabaseAPI) new TestGraphDatabaseFactory().newImpermanentDatabase( configMap );\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/9e2167e2d407f2b97e2cf5e850a82f90a4609deb", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " private final boolean isSecret;\n private final boolean secret;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/47212c0970471fa68d731d41da2d032f02b705b2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": " return this.isSecret() ? Optional.of( Secret.OBSFUCATED ) : value.map( ConfigValue::valueToString );\n return this.secret() ? Optional.of( Secret.OBSFUCATED ) : value.map( ConfigValue::valueToString );\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8181818181818182, "commit_url": "https://github.com/neo4j/neo4j/commit/47212c0970471fa68d731d41da2d032f02b705b2", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": " return new DelegatingStoreChannel( super.open( fileName, openMode ) )\n StoreChannel channel = new DelegatingStoreChannel( super.open( fileName, openMode ) )\n return new DelegatingStoreChannel( super.open( fileName, openMode ) )\n StoreChannel channel = new DelegatingStoreChannel( super.open( fileName, openMode ) )\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/neo4j/neo4j/commit/dad279736d69eceaa1f6715f62605523f220fcc9", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " return hasChanges;\n return revision != 0;\n return hasDataChanges;\n return dataRevision != 0;\n }\n\n public long getDataRevision()\n {\n return dataRevision;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/neo4j/neo4j/commit/0f67dedc07bf8c039bfb0aa04a6c33821073e177", "target_edit_idx": 8, "propagatable_edit_idx": [ 11 ] }, { "input": " hasChanges = true;\n revision++;\n hasDataChanges = true;\n dataRevision = revision;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/neo4j/neo4j/commit/0f67dedc07bf8c039bfb0aa04a6c33821073e177", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " int httpPort = httpEnabled ? 0 : 7474;\n int httpsPort = httpsEnabled ? 0 : 7473;\n int boltPort = boltEnabled ? 0 : 7687;\n\n int httpPort = httpEnabled ? 0 : 7474;\n int httpsPort = httpsEnabled ? 0 : 7473;\n int boltPort = boltEnabled ? 0 : 7687;\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/7ac102ca046e5dbb657cefe587ce539bdf136ef0", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " .withConfig( \"dbms.connector.http.listen_address\", \":\" + httpPort )\n .withConfig( \"dbms.connector.http.listen_address\", \":0\" )\n .withConfig( \"dbms.connector.https.listen_address\", \":\" + httpsPort )\n .withConfig( \"dbms.connector.https.listen_address\", \":0\" )\n .withConfig( \"dbms.connector.bolt.listen_address\", \":\" + boltPort );\n .withConfig( \"dbms.connector.bolt.listen_address\", \":0\" );\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/neo4j/neo4j/commit/7ac102ca046e5dbb657cefe587ce539bdf136ef0", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " \"-c\", \"dbms.connector.http.listen_address=:\" + httpPort,\n \"-c\", \"dbms.connector.http.listen_address=:0\",\n \"-c\", \"dbms.connector.bolt.listen_address=:\" + boltPort\n \"-c\", \"dbms.connector.bolt.listen_address=:0\"\n \"-c\", \"dbms.connector.https.listen_address=:\" + httpsPort,\n \"-c\", \"dbms.connector.https.listen_address=:0\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/neo4j/neo4j/commit/7ac102ca046e5dbb657cefe587ce539bdf136ef0", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "import java.util.concurrent.atomic.AtomicLong;\nimport java.util.concurrent.atomic.AtomicLong;\nimport java.util.concurrent.atomic.AtomicLong;\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/neo4j/neo4j/commit/ce75ea66ab005212ef3911b7dc8df727caed3801", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 3 ] }, { "input": " private final AtomicLong dbStartCounter;\n private final AtomicLong dbStopCounter;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/ce75ea66ab005212ef3911b7dc8df727caed3801", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": " return advertisedFromListenAddress( config.get( CausalClusteringSettings.transaction_listen_address ) );\n return asAdvertised( config.get( OnlineBackupSettings.online_backup_server ) );\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/8c91ec69e29f3779902eb51bf3867e90a88e1660", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " List procedures = jarloader.loadProcedures( jar ).procedures();\n List procedures = jarloader.loadProceduresFromDir( parentDir( jar ) ).procedures();\n List procedures = jarloader.loadProcedures( jar ).procedures();\n List procedures = jarloader.loadProceduresFromDir( parentDir( jar ) ).procedures();\n List procedures = jarloader.loadProcedures( jar ).procedures();\n List procedures = jarloader.loadProceduresFromDir( parentDir( jar ) ).procedures();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/bb3953c826d03562738cf817162ebff199b0eca5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " jarloader.loadProcedures( jar );\n jarloader.loadProceduresFromDir( parentDir( jar ) );\n jarloader.loadProcedures( jar );\n jarloader.loadProceduresFromDir( parentDir( jar ) );\n jarloader.loadProcedures( jar );\n jarloader.loadProceduresFromDir( parentDir( jar ) );\n jarloader.loadProcedures( jar );\n jarloader.loadProceduresFromDir( parentDir( jar ) );\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/neo4j/neo4j/commit/bb3953c826d03562738cf817162ebff199b0eca5", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": " // to be able to persist fialure and to have the right state in the beginning\n // to be able to persist failure and to have the right state in the beginning\n // to be able to persist fialure and to have the right state in the beginning\n // to be able to persist failure and to have the right state in the beginning\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/0fe85a899ddf4879522b3188de6012b974f4f1ee", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " StorageStatement store = mock( StorageStatement.class );\n StorageStatement storageStatement = mock( StorageStatement.class );\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/d804468da9d48457b340584801d39905889618d6", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " assertNotEqual( datetime( 2018, 1, 31, 10, 52, 5, 6, UTC ), datetime( 2018, 1, 31, 10, 52, 5, 6, \"+01:00\" ) );\n assertNotEqual( datetime( 10000, 100, UTC ), datetime( 10000, 100, ZoneOffset.of( \"+01:00\" ) ) );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/63420c1bfd0071f6b5d7099e474b2060e874e71a", "target_edit_idx": 6, "propagatable_edit_idx": [ 4 ] }, { "input": " metricsCsv( outputPath, TransactionMetrics.TX_COMMITTED, 1 );\n doTransaction();\n\n // Wait for rotation, since we rotated twice, file 3 is actually the original file\n File metricsFile2 = metricsCsv( outputPath, TransactionMetrics.TX_COMMITTED, 2 );\n long oldCommittedTransactions = readLongValueAndAssert( metricsFile2, MONOTONIC );\n assertEquals( 1, oldCommittedTransactions );\n\n File metricsFile = metricsCsv( outputPath, TransactionMetrics.TX_COMMITTED );\n long lastCommittedTransactions = readLongValueAndAssert( metricsFile, MONOTONIC );\n assertEquals( 2, lastCommittedTransactions );\n }\n\n private void doTransaction()\n {\n try ( Transaction transaction = database.beginTx() )\n {\n database.createNode();\n transaction.success();\n }\n File metricsFile = metricsCsv( outputPath, TransactionMetrics.TX_COMMITTED );\n long committedTransactions = readLongValueAndAssert( metricsFile,\n ( newValue, currentValue ) -> newValue >= currentValue );\n doTransaction();\n\n // wait for rotation to happen\n File metricsFile1 = metricsCsv( outputPath, TransactionMetrics.TX_COMMITTED, 1 );\n long committedTransactions = readLongValueAndAssert( metricsFile1, MONOTONIC );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/a9a3590bdbb420a5a92c662cc5a9956750098181", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " long freePhysicalMemory = OsBeanUtil.getFreePhysicalMemory();\n if ( freePhysicalMemory == OsBeanUtil.VALUE_UNAVAILABLE )\n long totalPhysicalMemory = OsBeanUtil.getTotalPhysicalMemory();\n if ( totalPhysicalMemory == OsBeanUtil.VALUE_UNAVAILABLE )\n return round( (freePhysicalMemory - Runtime.getRuntime().maxMemory()) * factor );\n return round( (totalPhysicalMemory - Runtime.getRuntime().maxMemory()) * factor );\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/3b3f544f95e10a518e65eff0967817476a350e36", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "import java.util.HashSet;\nimport java.util.Set;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/neo4j/neo4j/commit/b80fd14b7cd558311d8185fd31bd5cf1e4eb39d3", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " null, storeCopyClient, txPullClient, factory( writer ), new Monitors() );\n mock( PageCache.class ), storeCopyClient, txPullClient, factory( writer ), new Monitors() );\n null, storeCopyClient, txPullClient, factory( writer ), new Monitors() );\n mock( PageCache.class ), storeCopyClient, txPullClient, factory( writer ), new Monitors() );\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/neo4j/neo4j/commit/54439d2c4bc4b1ef51e8a8213610d4b5092604bc", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " assertEquals( ByteUnit.mebiBytes( 250 ), context.getRotationThreshold() );\n assertEquals( ByteUnit.mebiBytes( 250 ), context.getRotationThreshold().get() );\n assertEquals( ByteUnit.mebiBytes( 250 ), context.getRotationThreshold() );\n assertEquals( ByteUnit.mebiBytes( 250 ), context.getRotationThreshold().get() );\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/e5997c6b35a765005420ab41f76ef60bd08af76d", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " new ShiroCaffeineCache.Manager( fakeTicker::read, 100, 10), securityLog, false );\n new ShiroCaffeineCache.Manager( fakeTicker::read, 100, 10, true ), securityLog, false );\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/neo4j/neo4j/commit/87b38348b50c913c46a0502785086bef6cdc7088", "target_edit_idx": 12, "propagatable_edit_idx": [ 1 ] }, { "input": " cache = new ShiroCaffeineCache<>( fakeTicker::read, Runnable::run, TTL, 5 );\n cache = new ShiroCaffeineCache<>( fakeTicker::read, Runnable::run, TTL, 5, true );\n new ShiroCaffeineCache<>( fakeTicker::read, Runnable::run, 0, 5 );\n new ShiroCaffeineCache<>( fakeTicker::read, Runnable::run, 0, 5, true );\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/neo4j/neo4j/commit/87b38348b50c913c46a0502785086bef6cdc7088", "target_edit_idx": 13, "propagatable_edit_idx": [ 14 ] }, { "input": " new ShiroCaffeineCache<>( fakeTicker::read, Runnable::run, 0, 5 );\n new ShiroCaffeineCache<>( fakeTicker::read, Runnable::run, 0, 5, true );\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/neo4j/neo4j/commit/87b38348b50c913c46a0502785086bef6cdc7088", "target_edit_idx": 14, "propagatable_edit_idx": [ 13 ] }, { "input": " TransactionLogPruner logPruner = mock( TransactionLogPruner.class );\n CorruptedLogsTruncator logsTruncator = mock( CorruptedLogsTruncator.class );\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/07ebc3b3663352af3c76a227d754d6fb62de8cd1", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " AdvertisedSocketAddress fromAddress = topologyService.findCatchupAddress( upstream ).orElseThrow( () -> new TopologyLookupException( upstream ) );\n AdvertisedSocketAddress fromAddress = topologyService.findCatchupAddress( upstream ).orElseThrow( () -> new TopologyLookupException( upstream ) );\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/neo4j/neo4j/commit/11f4db669ce5ca85f5f1648b10e5d05162408d4c", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " return hashFunction.hash( key ) & tableMask;\n return hashFunction.hashSingleValueToInt( key ) & tableMask;\n hash += DEFAULT_HASHING.hash( value );\n hash += DEFAULT_HASHING.hashSingleValueToInt( value );\n hash += DEFAULT_HASHING.hash( key + DEFAULT_HASHING.hash( value ) );\n hash += DEFAULT_HASHING.hashSingleValueToInt( key + DEFAULT_HASHING.hashSingleValueToInt( value ) );\n hash += DEFAULT_HASHING.hash( key + value.hashCode() );\n hash += DEFAULT_HASHING.hashSingleValueToInt( key + value.hashCode() );\n hash += DEFAULT_HASHING.hash( value );\n hash += DEFAULT_HASHING.hashSingleValueToInt( value );\n hash += DEFAULT_HASHING.hash( key + DEFAULT_HASHING.hash( value ) );\n hash += DEFAULT_HASHING.hashSingleValueToInt( key + DEFAULT_HASHING.hashSingleValueToInt( value ) );\n hash += DEFAULT_HASHING.hash( key + DEFAULT_HASHING.hash( value ) );\n hash += DEFAULT_HASHING.hashSingleValueToInt( key + DEFAULT_HASHING.hashSingleValueToInt( value ) );\n hash += DEFAULT_HASHING.hash( key + value.hashCode() );\n hash += DEFAULT_HASHING.hashSingleValueToInt( key + value.hashCode() );\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/eef32caa70dafc42a191a0cdfaea995954d96f0f", "target_edit_idx": 1, "propagatable_edit_idx": [ 4, 5, 6, 7, 8, 9, 10 ] }, { "input": " hash += DEFAULT_HASHING.hash( key + DEFAULT_HASHING.hash( value ) );\n hash += DEFAULT_HASHING.hashSingleValueToInt( key + DEFAULT_HASHING.hashSingleValueToInt( value ) );\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/neo4j/neo4j/commit/eef32caa70dafc42a191a0cdfaea995954d96f0f", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 4, 6, 7, 8, 9, 10 ] }, { "input": " hash += DEFAULT_HASHING.hash( key + value.hashCode() );\n hash += DEFAULT_HASHING.hashSingleValueToInt( key + value.hashCode() );\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/neo4j/neo4j/commit/eef32caa70dafc42a191a0cdfaea995954d96f0f", "target_edit_idx": 6, "propagatable_edit_idx": [ 1, 4, 5, 7, 8, 9, 10 ] }, { "input": " server.getDatabase().getLocation() );\n server.getDatabase().getLocation().getAbsolutePath() );\n server.getDatabase().getLocation() );\n server.getDatabase().getLocation().getAbsolutePath() );\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/888626b7fc0e42e0f5f77ffc4661fbdbf74b6ecb", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " channel.writeInbound( channel.readOutbound() );\n Object message = channel.readOutbound();\n channel.writeInbound( message );\n channel.writeInbound( channel.readOutbound() );\n Object message = channel.readOutbound();\n channel.writeInbound( message );\n channel.writeInbound( channel.readOutbound() );\n Object message = channel.readOutbound();\n channel.writeInbound( message );\n channel.writeInbound( channel.readOutbound() );\n Object message = channel.readOutbound();\n channel.writeInbound( message );\n channel.writeInbound( channel.readOutbound() );\n Object message = channel.readOutbound();\n channel.writeInbound( message );\n channel.writeInbound( channel.readOutbound() );\n Object message = channel.readOutbound();\n channel.writeInbound( message );\n channel.writeInbound( channel.readOutbound() );\n Object message = channel.readOutbound();\n channel.writeInbound( message );\n channel.writeInbound( channel.readOutbound() );\n Object message = channel.readOutbound();\n channel.writeInbound( message );\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/ac3ff9de7032c5e170e4100beb791b3bc4c938e2", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 5, 6, 7, 8, 9 ] }, { "input": " internalLogProvider.assertAtLeastOnce(\n inLog( MetaDataStore.class ).warn( \"Missing counts store, rebuilding it.\" )\n );\n AssertableLogProvider.LogMatcherBuilder matcherBuilder = inLog( MetaDataStore.class );\n internalLogProvider.assertAtLeastOnce( matcherBuilder.warn( \"Missing counts store, rebuilding it.\" ) );\n internalLogProvider.assertAtLeastOnce( matcherBuilder.warn( \"Counts store rebuild completed.\" ) );\n internalLogProvider.assertAtLeastOnce(\n inLog( MetaDataStore.class ).warn( \"Missing counts store, rebuilding it.\" )\n );\n AssertableLogProvider.LogMatcherBuilder matcherBuilder = inLog( MetaDataStore.class );\n internalLogProvider.assertAtLeastOnce( matcherBuilder.warn( \"Missing counts store, rebuilding it.\" ) );\n internalLogProvider.assertAtLeastOnce( matcherBuilder.warn( \"Counts store rebuild completed.\" ) );\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/6231fe52afe453923f0df972188c34ab2c00200a", "target_edit_idx": 12, "propagatable_edit_idx": [ 13 ] }, { "input": " IntRecord record = new IntRecord( -1 );\n assertTrue( cursor.next( 43, record, NORMAL ) );\n assertEquals( record43, record );\n\n IntRecord record = new IntRecord( -1 );\n assertTrue( cursor.next( idOnAnotherPage, record, NORMAL ) );\n assertEquals( record43, record );\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/5e760ad1c45f9c3327d215bcea9b7693a2924cf8", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " state = rotation.preState();\n state = rotation.markAsFailed();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/b2a7d0321b35e1a7e47830c7844eb58b718bd4fb", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 6 ] }, { "input": " abstract ProgressiveState preState();\n /**\n * Marks state as failed and returns the state as it were before this state.\n *\n * @return previous state.\n */\n abstract ProgressiveState markAsFailed();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/neo4j/neo4j/commit/b2a7d0321b35e1a7e47830c7844eb58b718bd4fb", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 6 ] }, { "input": " assertEquals( 1, index.query( \"*:*\" ).size() );\n assertEquals( 1, countHits( index.query( \"*:*\" ) ) );\n assertEquals( 1, index.query( \"*:*\" ).size() );\n assertEquals( 1, countHits( index.query( \"*:*\" ) ) );\n assertEquals( 0, index.query( \"*:*\" ).size() );\n assertEquals( 0, countHits( index.query( \"*:*\" ) ) );\n }\n\n private long countHits( IndexHits query )\n {\n try\n {\n return count( query );\n }\n finally\n {\n query.close();\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/neo4j/neo4j/commit/55c520008741a8fd167f05366fc1fe73bb26a74c", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " luceneIndex.flush();\n luceneIndex.flush( false );\n public void flush() throws IOException\n public void flush( boolean merge ) throws IOException\n flush();\n flush( false );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/18ad2f140ddecdc925fe32975f0bbd763475fafd", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 7 ] }, { "input": " flush();\n flush( false );\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/18ad2f140ddecdc925fe32975f0bbd763475fafd", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " exception.expect( new RootCauseMatcher<>( TransactionFailureException.class,\n \"Transaction terminated since marked as shut down.\" ) );\n exception.expect( new RootCauseMatcher<>( TransactionTerminatedException.class,\n \"The transaction has been terminated. Retry your operation in a \" +\n \"new transaction, and you should see a successful result. \" +\n \"The database is not currently available to serve your request, \" +\n \"refer to the database logs for more details. Retrying your request at a later time may succeed.\" ) );\n exception.expect( new RootCauseMatcher<>( TransactionFailureException.class,\n \"Transaction terminated since marked as shut down.\" ) );\n exception.expect( new RootCauseMatcher<>( TransactionTerminatedException.class,\n \"The transaction has been terminated. Retry your operation in a \" +\n \"new transaction, and you should see a successful result. \" +\n \"The database is not currently available to serve your request, \" +\n \"refer to the database logs for more details. Retrying your request at a later time may succeed.\" ) );\n exception.expect( new RootCauseMatcher<>( TransactionFailureException.class,\n \"Transaction terminated since marked as shut down.\" ) );\n exception.expect( new RootCauseMatcher<>( TransactionTerminatedException.class,\n \"The transaction has been terminated. Retry your operation in a \" +\n \"new transaction, and you should see a successful result. \" +\n \"The database is not currently available to serve your request, \" +\n \"refer to the database logs for more details. Retrying your request at a later time may succeed.\" ) );\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/neo4j/neo4j/commit/d7e116f183b688ab61d059a7cd4fb49d83df4103", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " Class klass,\n Class klass,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/d5deabc991c00a48692f5f014965d46f70943315", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " findAndUnpackTo( klass, fileSystem, sourceRootDirectory, \"glob:**/*.feature\", featuresDirectory );\n findAndUnpackTo( klass, fileSystem, sourceRootDirectory, \"glob:**/*.cypher\", graphsDirectory );\n findAndUnpackTo( klass, fileSystem, sourceRootDirectory, \"glob:**/*.json\", graphsDirectory );\n findAndUnpackTo( fileSystem, sourceRootDirectory, \"glob:**/*.feature\", featuresDirectory );\n findAndUnpackTo( fileSystem, sourceRootDirectory, \"glob:**/*.cypher\", graphsDirectory );\n findAndUnpackTo( fileSystem, sourceRootDirectory, \"glob:**/*.json\", graphsDirectory );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/d5deabc991c00a48692f5f014965d46f70943315", "target_edit_idx": 8, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "import org.neo4j.io.pagecache.impl.muninn.StandalonePageCacheFactory;\nimport org.neo4j.io.pagecache.impl.muninn.StandalonePageCacheFactory;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/d04278583d49aec5305405a5785670b6b3355a71", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " configureRaftLogRotationAndPruning( configureTxLogRotationAndPruning( new HashMap<>() ) ) );\n Map edgeParams = configureTxLogRotationAndPruning( new HashMap<>() );\n configureRaftLogRotationAndPruning( configureTxLogRotationAndPruning( new HashMap<>(), txPrune ) ) );\n Map edgeParams = configureTxLogRotationAndPruning( new HashMap<>(), txPrune );\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/4efa2417fe272239d41133fa98ff09331126a4b6", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 6 ] }, { "input": " private static BoltRequestMessage[] valuesBySignature = null;\n private static BoltRequestMessage[] valuesBySignature = new BoltRequestMessage[0x40];\n static {\n for ( BoltRequestMessage value : values() )\n {\n valuesBySignature[value.signature()] = value;\n }\n }\n private static BoltResponseMessage[] valuesBySignature = null;\n private static BoltResponseMessage[] valuesBySignature = new BoltResponseMessage[0x80];\n static {\n for ( BoltResponseMessage value : values() )\n {\n valuesBySignature[value.signature()] = value;\n }\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/dccf7138d33290a899b126d3f6e482e71589e677", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " if ( valuesBySignature == null )\n {\n valuesBySignature = new BoltRequestMessage[0x40];\n for ( BoltRequestMessage value : values() )\n {\n valuesBySignature[value.signature()] = value;\n }\n }\n if ( valuesBySignature == null )\n {\n valuesBySignature = new BoltResponseMessage[0x80];\n for ( BoltResponseMessage value : values() )\n {\n valuesBySignature[value.signature()] = value;\n }\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/dccf7138d33290a899b126d3f6e482e71589e677", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " populateFromQueue( updates.getNodeId() );\n populateFromQueueBatched( updates.getNodeId() );\n batchingPopulator.populateFromQueue( 42 );\n batchingPopulator.populateFromQueueBatched( 42 );\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/neo4j/neo4j/commit/0dd7d6bd6614982eaddc95ee1f8a4a96a42847d4", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " discoveryService.coreServers().find( memberId ).getCatchupServer();\n discoveryService.coreServers().find( target ).getCatchupServer();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/9c0832248c6436998b038f9814b5f08a32c879d4", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " return catchUpClient.makeBlockingRequest( from, new GetStoreRequest( expectedStoreId ), 30, SECONDS,\n return catchUpClient.makeBlockingRequest( from, new GetStoreRequest( expectedStoreId ),\n return catchUpClient.makeBlockingRequest( from, new GetStoreIdRequest(), 30, SECONDS,\n return catchUpClient.makeBlockingRequest( from, new GetStoreIdRequest(),\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/neo4j/neo4j/commit/9c0832248c6436998b038f9814b5f08a32c879d4", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " anyLong(), any( TimeUnit.class ), any( CatchUpResponseCallback.class ) );\n any( CatchUpResponseCallback.class ) );\n anyLong(), any( TimeUnit.class ), any( CatchUpResponseCallback.class ) );\n any( CatchUpResponseCallback.class ) );\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/9c0832248c6436998b038f9814b5f08a32c879d4", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " boolean hasData, int recordSize ) throws IOException\n boolean hasData, int requiredElementAlignment ) throws IOException\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/b35370a1bcf688ad81f9f3507396b3400c58045e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 8, 9 ] }, { "input": " Cluster cluster = new Cluster( clusterDirectory, numberOfCores, numberOfEdges, discoveryServiceFactory, params,\n paramsPerCoreInstance, params, paramsPerEdgeInstance, StandardV3_0.NAME );\n Cluster cluster =\n new Cluster( clusterDirectory, numberOfCores, numberOfEdges, discoveryServiceFactory, coreParams,\n paramsPerCoreInstance, emptyMap(), paramsPerEdgeInstance, StandardV3_0.NAME );\n Cluster cluster = new Cluster( clusterDirectory, numberOfCores, numberOfEdges, discoveryServiceFactory, params,\n paramsPerInstance, params, paramsPerInstance, StandardV3_0.NAME );\n Cluster cluster =\n new Cluster( clusterDirectory, numberOfCores, numberOfEdges, discoveryServiceFactory, coreParams,\n emptyMap(), emptyMap(), emptyMap(), StandardV3_0.NAME );\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/16c2c2d451e900b03605351cb5c7a97cc9d1280b", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " @Resources.Life( STARTED )\n @Resources.Life( STARTED )\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/a8d936de2f63c3ba0858173f35120c957b3b2a00", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " SegmentedRaftLog log = resourceManager.managed( createRaftLog( ROTATE_AT_SIZE_IN_BYTES ) );\n SegmentedRaftLog log = life.add( createRaftLog( ROTATE_AT_SIZE_IN_BYTES ) );\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5555555555555556, "commit_url": "https://github.com/neo4j/neo4j/commit/a8d936de2f63c3ba0858173f35120c957b3b2a00", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": " TransactionIdStore transactionIdStore = new DeadSimpleTransactionIdStore();\n TransactionIdStore txIdStore = new DeadSimpleTransactionIdStore();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/01a4567cd7aa31a0c80140d92c76408e0c4282bf", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 9, 7 ] }, { "input": " private final boolean refersToLog;\n private final boolean shouldLog;\n private final boolean respondToClient;\n public boolean refersToLog()\n public boolean shouldLog()\n {\n return shouldLog;\n }\n\n public boolean shouldRespondToClient()\n if ( error.status().code().classification().refersToLog() )\n if ( error.status().code().classification().shouldLog() )\n assertThat( error.status().code().classification().refersToLog(), is( false ) );\n assertThat( error.status().code().classification().shouldLog(), is( false ) );\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/dffbf2ca6cf452a22f3f1bcf9a33ec0e0896857f", "target_edit_idx": 7, "propagatable_edit_idx": [ 9, 3, 4 ] }, { "input": " return \"BooleanMatcher(\" + value + \")\";\n return Boolean.toString( value );\n return \"FloatMatcher(\" + value + \")\";\n return Double.toString( value );\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/ac56a78dba792081eabc199df403eb711f591193", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " long highestNodeId();\n long numberOfNodes();\n public long highestNodeId()\n public long numberOfNodes()\n monitor.rebuilt( fullStoreStream.highestNodeId() );\n monitor.rebuilt( fullStoreStream.numberOfNodes() );\n public long highestNodeId()\n public long numberOfNodes()\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/8562c4ac13f97869190b9f47b372542dbcdfe09b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4 ] }, { "input": " public long highestNodeId()\n public long numberOfNodes()\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/neo4j/neo4j/commit/8562c4ac13f97869190b9f47b372542dbcdfe09b", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " new RebuildFromLogs( fs ).rebuild( prototypePath, rebuildPath, BASE_TX_ID, false );\n new RebuildFromLogs( fs ).rebuild( prototypePath, rebuildPath, BASE_TX_ID );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/6dd59ce457668f71fd4e90de30078977819104c1", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 3, 4 ] }, { "input": " new RebuildFromLogs( fs ).rebuild( copy, rebuildPath, txId, false );\n new RebuildFromLogs( fs ).rebuild( copy, rebuildPath, txId );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/6dd59ce457668f71fd4e90de30078977819104c1", "target_edit_idx": 8, "propagatable_edit_idx": [ 3, 4, 7 ] }, { "input": " public static BiasedWinnerStrategy promotion(ClusterContext clusterContext, InstanceId biasedNode)\n public static BiasedWinnerStrategy promotion( ClusterContext clusterContext, InstanceId biasedNode )\n public static BiasedWinnerStrategy demotion(ClusterContext clusterContext, InstanceId biasedNode)\n public static BiasedWinnerStrategy demotion( ClusterContext clusterContext, InstanceId biasedNode )\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/e36670426e411546cb918b09a7d0ebb8d2c5bc8c", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " public BackupServiceStressTestingBuilder withStore( File storeDir )\n public BackupServiceStressTestingBuilder withStore( File storeDirectory )\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/7b73cb39c39e90038f68b88ac4f6d81ea01ce7d0", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 6 ] }, { "input": " public BackupServiceStressTestingBuilder withWorkingDirectory( File workingDirectory )\n public BackupServiceStressTestingBuilder withBackupDirectory( File backupDirectory )\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/neo4j/neo4j/commit/7b73cb39c39e90038f68b88ac4f6d81ea01ce7d0", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 5 ] }, { "input": " return extractor.extract( buffer, (int)(from), (int)(to-from), mark.hasSkippedChars() );\n return extractor.extract( buffer, (int)(from), (int)(to-from), mark.isQuoted() );\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/5e6926e4f3b7b37ad4912c464b43ef08fb4a5203", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": " @Override\n public long indexUpdates( IndexDescriptor descriptor ) throws IndexNotFoundKernelException\n {\n return indexingService.indexUpdates( schemaCache.indexId( descriptor ) );\n }\n\n @Override\n public long indexUpdates( IndexDescriptor descriptor ) throws IndexNotFoundKernelException\n {\n return indexService.indexUpdates( indexId( descriptor ) );\n }\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/308762ddec155730959d43a77b760ebe889cf14d", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " return new MapRepresentation( map( \"id\", String.valueOf( rel.getId() ), \"type\", rel.getType().name() ) );\n return new MapRepresentation( map( \"type\", rel.getType().name() ) );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/786bbd63768d316c8633bdfb60bfaee2808210a0", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " assertRegexpMatches( \"\\\\d+\", (String) metadata.get( \"id\" ) );\n assertRegexpMatches( \"\\\\d+\", (String) metadata.get( \"id\" ) );\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/786bbd63768d316c8633bdfb60bfaee2808210a0", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " File storeDir = TargetDirectory.forTest( Legacy19NodeStoreReader.class ).makeGraphDbDir();\n File storeDir = dir.graphDbDir();\n File storeDir = TargetDirectory.forTest( Legacy19NodeStoreReader.class ).makeGraphDbDir();\n File storeDir = dir.graphDbDir();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/43426a0a4024af07501aa8f9d720a7d9af4e974b", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " return super.getRelationshipForProxy( relId, lock );\n return super.getRelationshipForProxy( relId );\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/0fd724559269ddd8bf59f3875f3ea99fef4c7cff", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 9, 11, 12 ] }, { "input": " return nodeManager.getRelationshipForProxy( relationshipId, null );\n return nodeManager.getRelationshipForProxy( relationshipId );\n public RelationshipImpl getRelationshipForProxy( final long relId, final LockType lock )\n public RelationshipImpl getRelationshipForProxy( final long relId )\n return super.getRelationshipForProxy( relId, lock );\n return super.getRelationshipForProxy( relId );\n public RelationshipImpl getRelationshipForProxy( final long relId, final LockType lock )\n public RelationshipImpl getRelationshipForProxy( final long relId )\n return super.getRelationshipForProxy( relId, lock );\n return super.getRelationshipForProxy( relId );\n RelationshipImpl relationship = nodeManager.getRelationshipForProxy( relationshipId, null );\n RelationshipImpl relationship = nodeManager.getRelationshipForProxy( relationshipId );\n RelationshipImpl relationship = nodeManager.getRelationshipForProxy( relationshipId, null );\n RelationshipImpl relationship = nodeManager.getRelationshipForProxy( relationshipId );\n RelationshipImpl relationship = nodeManager.getRelationshipForProxy( relationshipId, null );\n RelationshipImpl relationship = nodeManager.getRelationshipForProxy( relationshipId );\n public RelationshipImpl getRelationshipForProxy( long relId, LockType lock )\n public RelationshipImpl getRelationshipForProxy( long relId )\n RelationshipImpl relImpl = nodeManager.getRelationshipForProxy( relId, null );\n RelationshipImpl relImpl = nodeManager.getRelationshipForProxy( relId );\n return db.getNodeManager().getRelationshipForProxy( relationship.getId(), null )\n return db.getNodeManager().getRelationshipForProxy( relationship.getId() )\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/0fd724559269ddd8bf59f3875f3ea99fef4c7cff", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 9, 11, 12 ] }, { "input": " RelationshipImpl relationship = nodeManager.getRelationshipForProxy( relationshipId, null );\n RelationshipImpl relationship = nodeManager.getRelationshipForProxy( relationshipId );\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/0fd724559269ddd8bf59f3875f3ea99fef4c7cff", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 9, 11, 12 ] }, { "input": " RelationshipImpl relImpl = nodeManager.getRelationshipForProxy( relId, null );\n RelationshipImpl relImpl = nodeManager.getRelationshipForProxy( relId );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/0fd724559269ddd8bf59f3875f3ea99fef4c7cff", "target_edit_idx": 11, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 12 ] }, { "input": "import static org.neo4j.kernel.impl.api.index.SchemaIndexTestHelper.awaitIndexState;\nimport static org.neo4j.kernel.impl.api.index.SchemaIndexTestHelper.awaitIndexState;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/53c1484fddaa4dbf75e720dcc82c6f5778b6922b", "target_edit_idx": 0, "propagatable_edit_idx": [ 12 ] }, { "input": " awaitIndexState( db, index, IndexState.ONLINE );\n db.schema().awaitIndexOnline( index, 10, TimeUnit.SECONDS );\n awaitIndexState( db, index, IndexState.ONLINE );\n db.schema().awaitIndexOnline( index, 10, TimeUnit.SECONDS );\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/53c1484fddaa4dbf75e720dcc82c6f5778b6922b", "target_edit_idx": 3, "propagatable_edit_idx": [ 14 ] }, { "input": " boolean insert_guard( boolean def );\n boolean enable_execution_guard( boolean def );\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/e314520b3ee3f13af6957958c52bfe60a7950464", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " ImpermanentGraphDatabase db = new ImpermanentGraphDatabase( stringMap( \"insert_guard\", \"true\" ) );\n ImpermanentGraphDatabase db = new ImpermanentGraphDatabase( stringMap( \"enable_execution_guard\", \"true\" ) );\n ImpermanentGraphDatabase db = new ImpermanentGraphDatabase( stringMap( \"insert_guard\", \"true\" ) );\n ImpermanentGraphDatabase db = new ImpermanentGraphDatabase( stringMap( \"enable_execution_guard\", \"true\" ) );\n ImpermanentGraphDatabase db = new ImpermanentGraphDatabase( stringMap( \"insert_guard\", \"true\" ) );\n ImpermanentGraphDatabase db = new ImpermanentGraphDatabase( stringMap( \"enable_execution_guard\", \"true\" ) );\n ImpermanentGraphDatabase db = new ImpermanentGraphDatabase( stringMap( \"insert_guard\", \"true\" ) );\n ImpermanentGraphDatabase db = new ImpermanentGraphDatabase( stringMap( \"enable_execution_guard\", \"true\" ) );\n ImpermanentGraphDatabase db = new ImpermanentGraphDatabase( stringMap( \"insert_guard\", \"true\" ) );\n ImpermanentGraphDatabase db = new ImpermanentGraphDatabase( stringMap( \"enable_execution_guard\", \"true\" ) );\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/neo4j/neo4j/commit/e314520b3ee3f13af6957958c52bfe60a7950464", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5, 6, 7 ] }, { "input": " \"target/\" + StoreUpgraderTest.class.getSimpleName() );\n \"target/\" + StoreUpgraderTest.class.getSimpleName()\n + \"shouldAbordOnNonCleanlyShutdown\" );\n \"target/\" + StoreUpgraderTest.class.getSimpleName() );\n \"target/\"\n + StoreUpgraderTest.class.getSimpleName()\n + \"shouldRefuseToUpgradeIfAllOfTheStoresWeNotShutDownCleanly\" );\n \"target/\" + StoreUpgraderTest.class.getSimpleName() );\n \"target/\" + StoreUpgraderTest.class.getSimpleName()\n + \"shouldAbortOnCorruptStore\" );\n", "class": "clone", "binary_label": 1, "regression_label": 0.2222222222222222, "commit_url": "https://github.com/neo4j/neo4j/commit/1c305e6226ba71d8a37f739fa4522eba218e9e15", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 3 ] }, { "input": " File workingDirectory = new File( \"target/\" + StoreUpgraderTest.class.getSimpleName() );\n File workingDirectory = new File(\n \"target/\" + StoreUpgraderTest.class.getSimpleName()\n + \"shouldUpgradeAnOldFormatStore\" );\n File workingDirectory = new File( \"target/\" + StoreUpgraderTest.class.getSimpleName() );\n File workingDirectory = new File(\n \"target/\"\n + StoreUpgraderTest.class.getSimpleName()\n + \"shouldLeaveACopyOfOriginalStoreFilesInBackupDirectory\" );\n File workingDirectory = new File( \"target/\" + StoreUpgraderTest.class.getSimpleName() );\n File workingDirectory = new File(\n \"target/\"\n + StoreUpgraderTest.class.getSimpleName()\n + \"shouldHaltUpgradeIfUpgradeConfigurationVetoesTheProcess\" );\n", "class": "clone", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/neo4j/neo4j/commit/1c305e6226ba71d8a37f739fa4522eba218e9e15", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " File workingDirectory = new File( \"target/\" + StoreUpgraderTest.class.getSimpleName() );\n File comparisonDirectory = new File( \"target/\" + StoreUpgraderTest.class.getSimpleName() + \"-comparison\" );\n File workingDirectory = new File(\n \"target/\"\n + StoreUpgraderTest.class.getSimpleName()\n + \"shouldLeaveAllFilesUntouchedIfWrongVersionNumberFound\" );\n File comparisonDirectory = new File(\n \"target/\"\n + StoreUpgraderTest.class.getSimpleName()\n + \"shouldLeaveAllFilesUntouchedIfWrongVersionNumberFound-comparison\" );\n File workingDirectory = new File( \"target/\" + StoreUpgraderTest.class.getSimpleName() );\n File comparisonDirectory = new File( \"target/\" + StoreUpgraderTest.class.getSimpleName() + \"-comparison\" );\n File workingDirectory = new File(\n \"target/\"\n + StoreUpgraderTest.class.getSimpleName()\n + \"shouldRefuseToUpgradeIfAnyOfTheStoresWeNotShutDownCleanly\" );\n File comparisonDirectory = new File(\n \"target/\"\n + StoreUpgraderTest.class.getSimpleName()\n + \"shouldRefuseToUpgradeIfAnyOfTheStoresWeNotShutDownCleanly-comparison\" );\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/neo4j/neo4j/commit/1c305e6226ba71d8a37f739fa4522eba218e9e15", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " new StoreUpgrader( new File( workingDirectory, NeoStore.DEFAULT_NAME ).getPath(), config ).attemptUpgrade();\n new StoreUpgrader( config ).attemptUpgrade( new File( workingDirectory, NeoStore.DEFAULT_NAME ).getPath() );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/c048487f44b70bf939fea5cb10bfb8b39afffe07", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 4, 7, 8, 9, 10 ] }, { "input": " new CommonJobs.DeleteNodeJob( nodeId.longValue(), false ) );\n new CommonJobs.DeleteNodeJob( nodeId.longValue() ) );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/b1aa8a07173a1ffd890d3754189e9c96cfa59fd5", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " context.indexType.addToDocument( context.getDocument( entityId ).document, key, value );\n context.indexType.addToDocument( context.getDocument( entityId, true ).document, key, value );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/5a653e95290238674fa1f87455bab217bc2f2c70", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 4, 6 ] }, { "input": " context.indexType.removeFromDocument( context.getDocument( entityId ).document, key, value );\n context.dataSource.invalidateCache( context.identifier, key, value );\n DocumentContext document = context.getDocument( entityId, false );\n if ( document != null )\n {\n context.indexType.removeFromDocument( document.document, key, value );\n context.dataSource.invalidateCache( context.identifier, key, value );\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/5a653e95290238674fa1f87455bab217bc2f2c70", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 4, 5 ] }, { "input": " Map config = configuration( true );\n Map config = configuration( true, instance );\n protected Map configuration( boolean shouldLoad )\n protected Map configuration( boolean shouldLoad, int instance )\n Map configuration = super.configuration( shouldLoad );\n Map configuration = super.configuration( shouldLoad, instance );\n protected Map configuration( boolean shouldLoad )\n protected Map configuration( boolean shouldLoad, int instance )\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/c985d368ce13bf5304021d01f0141f7480a1280d", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 6 ] }, { "input": " EmbeddedGraphDatabase graphdb = graphdb( \"graphdb\", /*loadExtensions=*/true );\n EmbeddedGraphDatabase graphdb = graphdb( \"graphdb\", /*loadExtensions=*/true, 0 );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/c985d368ce13bf5304021d01f0141f7480a1280d", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9, 10, 3 ] }, { "input": " EmbeddedGraphDatabase graphdb1 = graphdb( \"graphdb1\", /*loadExtensions=*/false );\n EmbeddedGraphDatabase graphdb1 = graphdb( \"graphdb1\", /*loadExtensions=*/false, 1 );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/c985d368ce13bf5304021d01f0141f7480a1280d", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10, 3, 7 ] }, { "input": " EmbeddedGraphDatabase graphdb2 = graphdb( \"graphdb2\", /*loadExtensions=*/false );\n EmbeddedGraphDatabase graphdb2 = graphdb( \"graphdb2\", /*loadExtensions=*/false, 2 );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/c985d368ce13bf5304021d01f0141f7480a1280d", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 10, 3, 7 ] }, { "input": " EmbeddedGraphDatabase graphdb = graphdb( \"graphdb\", /*loadExtensions=*/false );\n EmbeddedGraphDatabase graphdb = graphdb( \"graphdb\", /*loadExtensions=*/false, 0 );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/c985d368ce13bf5304021d01f0141f7480a1280d", "target_edit_idx": 10, "propagatable_edit_idx": [ 8, 9, 3, 7 ] }, { "input": " Map configuration = super.configuration( shouldLoad );\n Map configuration = super.configuration( shouldLoad, instance );\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/1f12646d5883a95a21d8fa08df1711f3fb1f9cd0", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 4, 6 ] }, { "input": " Map config = configuration( true );\n Map config = configuration( true, instance );\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/neo4j/neo4j/commit/1f12646d5883a95a21d8fa08df1711f3fb1f9cd0", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 6 ] }, { "input": " EmbeddedGraphDatabase graphdb1 = graphdb( \"graphdb1\", /*loadExtensions=*/false );\n EmbeddedGraphDatabase graphdb1 = graphdb( \"graphdb1\", /*loadExtensions=*/false, 1 );\n EmbeddedGraphDatabase graphdb2 = graphdb( \"graphdb2\", /*loadExtensions=*/false );\n EmbeddedGraphDatabase graphdb2 = graphdb( \"graphdb2\", /*loadExtensions=*/false, 2 );\n EmbeddedGraphDatabase graphdb = graphdb( \"graphdb\", /*loadExtensions=*/false );\n EmbeddedGraphDatabase graphdb = graphdb( \"graphdb\", /*loadExtensions=*/false, 0 );\n EmbeddedGraphDatabase graphdb( String name, boolean loadExtensions )\n EmbeddedGraphDatabase graphdb( String name, boolean loadExtensions, int instance )\n EmbeddedGraphDatabase graphdb = graphdb( \"graphdb\", /*loadExtensions=*/true );\n EmbeddedGraphDatabase graphdb = graphdb( \"graphdb\", /*loadExtensions=*/true, 0 );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/1f12646d5883a95a21d8fa08df1711f3fb1f9cd0", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10, 3, 7 ] }, { "input": " protected Map configuration( boolean shouldLoad )\n protected Map configuration( boolean shouldLoad, int instance )\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/neo4j/neo4j/commit/609adce8b2cbf6d7c0d57d5e834e6e425f5db021", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 4 ] }, { "input": " decisionTask.setStartTime(System.currentTimeMillis());\n final long currentTimeMillis = System.currentTimeMillis();\n decisionTask.setScheduledTime(currentTimeMillis);\n decisionTask.setStartTime(currentTimeMillis);\n doWhileTask.setStartTime(System.currentTimeMillis());\n final long currentTimeMillis = System.currentTimeMillis();\n doWhileTask.setScheduledTime(currentTimeMillis);\n doWhileTask.setStartTime(currentTimeMillis);\n joinTask.setStartTime(System.currentTimeMillis());\n final long currentTimeMillis = System.currentTimeMillis();\n joinTask.setScheduledTime(currentTimeMillis);\n joinTask.setStartTime(currentTimeMillis);\n humanTask.setStartTime(System.currentTimeMillis());\n final long currentTimeMillis = System.currentTimeMillis();\n humanTask.setScheduledTime(currentTimeMillis);\n humanTask.setStartTime(currentTimeMillis);\n inlineTask.setStartTime(System.currentTimeMillis());\n final long currentTimeMillis = System.currentTimeMillis();\n inlineTask.setScheduledTime(currentTimeMillis);\n inlineTask.setStartTime(currentTimeMillis);\n joinTask.setStartTime(System.currentTimeMillis());\n final long currentTimeMillis = System.currentTimeMillis();\n joinTask.setScheduledTime(currentTimeMillis);\n joinTask.setStartTime(currentTimeMillis);\n lambdaTask.setStartTime(System.currentTimeMillis());\n final long currentTimeMillis = System.currentTimeMillis();\n lambdaTask.setScheduledTime(currentTimeMillis);\n lambdaTask.setStartTime(currentTimeMillis);\n varTask.setStartTime(System.currentTimeMillis());\n final long currentTimeMillis = System.currentTimeMillis();\n varTask.setScheduledTime(currentTimeMillis);\n varTask.setStartTime(currentTimeMillis);\n switchTask.setStartTime(System.currentTimeMillis());\n final long currentTimeMillis = System.currentTimeMillis();\n switchTask.setScheduledTime(currentTimeMillis);\n switchTask.setStartTime(currentTimeMillis);\n task.setStartTime(System.currentTimeMillis());\n final long currentTimeMillis = System.currentTimeMillis();\n task.setScheduledTime(currentTimeMillis);\n task.setStartTime(currentTimeMillis);\n waitTask.setStartTime(System.currentTimeMillis());\n final long currentTimeMillis = System.currentTimeMillis();\n waitTask.setScheduledTime(currentTimeMillis);\n waitTask.setStartTime(currentTimeMillis);\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/Netflix/conductor/commit/1490896f966f5310692fd770c24901e85cc49417", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 6, 7, 8, 10, 11, 12, 13, 14 ] }, { "input": " Long time = DateTime.now().minusDays(7).toDate().getTime();\n Long time = DateTime.now(DateTimeZone.UTC).minusDays(7).toDate().getTime();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/Netflix/conductor/commit/8bc7ba77df81c7b70b87aaeea2a9bb21fed2a5f6", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 4 ] }, { "input": " indexDAO.asyncUpdateWorkflow(workflowId,\n new String[]{RAW_JSON_FIELD, ARCHIVED_FIELD},\n new Object[]{objectMapper.writeValueAsString(workflow), true});\n indexDAO.asyncRemoveWorkflow(workflowId);\n indexDAO.updateWorkflow(workflowId,\n new String[]{RAW_JSON_FIELD, ARCHIVED_FIELD},\n new Object[]{objectMapper.writeValueAsString(workflow), true});\n indexDAO.removeWorkflow(workflowId);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Netflix/conductor/commit/6b7f28a283639587bbfcb87eb39301d173dbbf22", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: 'simple', style: '', shape: 'circle', system: true};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: 'simple', style: '', shape: 'circle', system: true, description: t1.description};\n vertices[t1.taskReferenceName] = {name: 'FORK', ref: t1.taskReferenceName, type: 'simple', style: 'fill: #ff0', shape: 'house', system: true};\n vertices[t1.taskReferenceName] = {name: 'FORK', ref: t1.taskReferenceName, type: 'simple', style: 'fill: #ff0', shape: 'house', system: true, description: t1.description};\n vertices[t1.taskReferenceName] = {name: 'DYNAMIC_FORK', ref: t1.taskReferenceName, type: 'simple', style: 'fill: #ff0', shape: 'house', system: true};\n vertices[t1.taskReferenceName] = {name: 'DYNAMIC_FORK', ref: t1.taskReferenceName, type: 'simple', style: 'fill: #ff0', shape: 'house', system: true, description: t1.description};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: 'simple', style: 'fill:#ff0', shape: 'ellipse', system:true};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: 'simple', style: 'fill:#ff0', shape: 'ellipse', system:true, description: t1.description};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: 'simple', style: 'fill:#ff0', shape: 'star', system:true};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: 'simple', style: 'fill:#ff0', shape: 'star', system:true, description: t1.description};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: 'simple', style: 'fill:#efefef', shape: 'rect', system:true};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: 'simple', style: 'fill:#efefef', shape: 'rect', system:true, description: t1.description};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: 'simple', style: 'fill:#ff0', shape: 'star', system:true};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: 'simple', style: 'fill:#ff0', shape: 'star', system:true, description: t1.description};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: 'simple', style: '', shape: 'rect'};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: 'simple', style: '', shape: 'rect', description: t1.description};\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/Netflix/conductor/commit/67f58e5a17043180577ae6b345cad6e615810318", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 7, 8, 9, 10, 11 ] }, { "input": " vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: t1.type, style: 'fill: #ff0', shape: 'diamond', system: true};\n vertices[tasks[0].taskReferenceName] = {name: tasks[0].name, ref: tasks[0].taskReferenceName, type: tasks[0].type, style: '', shape: 'rect'};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: t1.type, style: 'fill: #ff0', shape: 'diamond', system: true, description: t1.description};\n vertices[tasks[0].taskReferenceName] = {name: tasks[0].name, ref: tasks[0].taskReferenceName, type: tasks[0].type, style: '', shape: 'rect', description: tasks[0].description};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: t1.type, style: 'fill: #ff0', shape: 'diamond', system: true};\n vertices[tasks[0].taskReferenceName] = {name: tasks[0].name, ref: tasks[0].taskReferenceName, type: tasks[0].type, style: '', shape: 'rect'};\n vertices[t1.taskReferenceName] = {name: t1.name, ref: t1.taskReferenceName, type: t1.type, style: 'fill: #ff0', shape: 'diamond', system: true, description: t1.description};\n vertices[tasks[0].taskReferenceName] = {name: tasks[0].name, ref: tasks[0].taskReferenceName, type: tasks[0].type, style: '', shape: 'rect', description: tasks[0].description};\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Netflix/conductor/commit/67f58e5a17043180577ae6b345cad6e615810318", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\tpublic static class ExtendsClauseCollision extends B implements B2 {\n\tpublic static class ExtendsClauseCollision extends B implements B2.B4, B3 {\n\tpublic static class ExtendsClauseCollision extends B implements B2 {\n\tpublic static class ExtendsClauseCollision extends B implements B2.B4, B3 {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/projectlombok/lombok/commit/0fcb446265348753c2b448f98f2ad020d6d07d13", "target_edit_idx": 2, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\tpublic static abstract class ExtendsClauseCollisionBuilder> extends B.BBuilder {\n\t\tpublic static abstract class ExtendsClauseCollisionBuilder> extends B.BBuilder {\n\t\t\tprotected abstract B3 self();\n\t\t\tprotected abstract B4 self();\n protected abstract @java.lang.Override @java.lang.SuppressWarnings(\"all\") B3 self();\n protected abstract @java.lang.Override @java.lang.SuppressWarnings(\"all\") B4 self();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/projectlombok/lombok/commit/0fcb446265348753c2b448f98f2ad020d6d07d13", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 7 ] }, { "input": "\t\t\tString newJavadoc = copyMode.apply(cud, from);\n\t\t\tString newJavadoc = copyMode.apply(from);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/projectlombok/lombok/commit/52d1aa860847629fbb12d008fc708166f000fa6c", "target_edit_idx": 13, "propagatable_edit_idx": [ 6, 7, 8, 9, 10, 11 ] }, { "input": " * Copyright (C) 2009-2020 The Project Lombok Authors.\n * Copyright (C) 2009-2021 The Project Lombok Authors.\n * Copyright (C) 2009-2015 The Project Lombok Authors.\n * Copyright (C) 2009-2021 The Project Lombok Authors.\n * Copyright (C) 2009-2015 The Project Lombok Authors.\n * Copyright (C) 2009-2021 The Project Lombok Authors.\n * Copyright (C) 2009-2015 The Project Lombok Authors.\n * Copyright (C) 2009-2021 The Project Lombok Authors.\n * Copyright (C) 2009-2015 The Project Lombok Authors.\n * Copyright (C) 2009-2021 The Project Lombok Authors.\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/projectlombok/lombok/commit/c979ee9ddfe0e990c1527d45c8429397601e4f52", "target_edit_idx": 0, "propagatable_edit_idx": [ 8, 10, 4, 6 ] }, { "input": "\t\t\tsetBuilderClassName(fixBuilderClassName(node, ann.builderClassName()));\n\t\t\tsetBuilderClassName(getBuilderClassNameTemplate(node, ann.builderClassName()));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/projectlombok/lombok/commit/a6257f27f0831ed2c9971285a3bb29f73fabbb02", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\t\tString builderClassNameTemplate = BuilderJob.fixBuilderClassName(annotationNode, \"\");\n\t\t\tString builderClassNameTemplate = BuilderJob.fixBuilderClassName(annotationNode, null);\n\t\t\tString builderClassNameTemplate = BuilderJob.fixBuilderClassName(annotationNode, \"\");\n\t\t\tString builderClassNameTemplate = BuilderJob.getBuilderClassNameTemplate(annotationNode, null);\n\t\t\tString builderClassNameTemplate = BuilderJob.fixBuilderClassName(annotationNode, \"\");\n\t\t\tString builderClassNameTemplate = BuilderJob.getBuilderClassNameTemplate(annotationNode, null);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/projectlombok/lombok/commit/4ba962aae0de64c4063cb5313ed15fe25928e9ca", "target_edit_idx": 0, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "\t\tJCModifiers mods = makeMods(maker, builderType, deprecate);\n\t\tJCModifiers mods = makeMods(maker, builderType, deprecate);\n\t\tJCModifiers mods = makeMods(maker, builderType, deprecate);\n\t\t\n", "class": "clone", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/projectlombok/lombok/commit/0c20da8e0e19e6db37c4c9d0de05d784e472c258", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4 ] }, { "input": "\t\t\tList typeParams = List.nil();\n\t\t\tList thrown = List.nil();\n\t\tList typeParams = List.nil();\n\t\tList thrown = List.nil();\n\t\t\n\t\tList typeParams = List.nil();\n\t\tList thrown = List.nil();\n\t\tList typeParams = List.nil();\n\t\tList thrown = List.nil();\n\t\tList typeParams = List.nil();\n\t\tList thrown = List.nil();\n\t\tList typeParams = List.nil();\n\t\tList thrown = List.nil();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/projectlombok/lombok/commit/bb7b5cce75988b0d774152a6f4d7b56ac1ab3953", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 4, 6, 8, 10 ] }, { "input": "\t\tboolean suppressConstructorProperties;\n\t\tboolean addConstructorProperties;\n\t\tboolean suppressConstructorProperties;\n\t\tboolean addConstructorProperties;\n\t\t\tsuppressConstructorProperties = false;\n\t\t\taddConstructorProperties = false;\n\t\t\tsuppressConstructorProperties = false;\n\t\t\taddConstructorProperties = false;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/projectlombok/lombok/commit/d7c019c07c3851fa0c89b3080da6c08d021fd272", "target_edit_idx": 4, "propagatable_edit_idx": [ 9, 10, 5 ] }, { "input": "\t\t\tsuppressConstructorProperties = Boolean.TRUE.equals(type.getAst().readConfiguration(ConfigurationKeys.ANY_CONSTRUCTOR_SUPPRESS_CONSTRUCTOR_PROPERTIES));\n\t\t\tBoolean v = type.getAst().readConfiguration(ConfigurationKeys.ANY_CONSTRUCTOR_ADD_CONSTRUCTOR_PROPERTIES);\n\t\t\taddConstructorProperties = v != null ? v.booleanValue() :\n\t\t\t\tBoolean.FALSE.equals(type.getAst().readConfiguration(ConfigurationKeys.ANY_CONSTRUCTOR_SUPPRESS_CONSTRUCTOR_PROPERTIES));\n\t\t\tsuppressConstructorProperties = Boolean.TRUE.equals(typeNode.getAst().readConfiguration(ConfigurationKeys.ANY_CONSTRUCTOR_SUPPRESS_CONSTRUCTOR_PROPERTIES));\n\t\t\tBoolean v = typeNode.getAst().readConfiguration(ConfigurationKeys.ANY_CONSTRUCTOR_ADD_CONSTRUCTOR_PROPERTIES);\n\t\t\taddConstructorProperties = v != null ? v.booleanValue() :\n\t\t\t\tBoolean.FALSE.equals(typeNode.getAst().readConfiguration(ConfigurationKeys.ANY_CONSTRUCTOR_SUPPRESS_CONSTRUCTOR_PROPERTIES));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/projectlombok/lombok/commit/d7c019c07c3851fa0c89b3080da6c08d021fd272", "target_edit_idx": 6, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\tConfigurationKeys.class.getClass();\n\t\tConfigurationKeys.ensureKeysLoaded();\n\t\tConfigurationKeys.class.getClass();\n\t\tConfigurationKeys.ensureKeysLoaded();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/projectlombok/lombok/commit/513a27f746e5744fe800147e274ed6cfac90f45c", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\tcontext.put(scannerFactoryKey, new Context.Factory() {\n\t\t\t@SuppressWarnings(\"all\")\n\t\t\tclass MyFactory implements Context.Factory {\n\t\t\t\t// This overrides the javac6- version of make.\n\t\t\tcontext.put(scannerFactoryKey, new Context.Factory() {\n\t\t\t@SuppressWarnings(\"all\")\n\t\t\tclass MyFactory implements Context.Factory {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/projectlombok/lombok/commit/4923506d737718cec49e35aa9a273b3a999eefc6", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " public List getActivitiesView() {\n private static boolean removeFromWeakList(ArrayList> haystack, T needle) {\n for (int i = 0, N = haystack.size(); i < N; i++) {\n T hay = haystack.get(i).get();\n if (hay == needle) {\n haystack.remove(i);\n return true;\n }\n }\n return false;\n }\n\n public List> getActivitiesView() {\n public List getActivitiesList() {\n public List> getActivitiesList() {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebook/stetho/commit/a2eb108683307bff15a19cf50226db3a076b76ba", "target_edit_idx": 5, "propagatable_edit_idx": [ 11 ] }, { "input": " /** Creates an \"not equal ('<>')\" condition for this property. */\n /** Creates an \"not equal ('<>')\" condition for this property. */\n /** Creates an \"greater than ('>')\" condition for this property. */\n /** Creates an \"greater than ('>')\" condition for this property. */\n /** Creates an \"less than ('<')\" condition for this property. */\n /** Creates an \"less than ('<')\" condition for this property. */\n /** Creates an \"greater or equal ('>=')\" condition for this property. */\n /** Creates an \"greater or equal ('>=')\" condition for this property. */\n /** Creates an \"less or equal ('<=')\" condition for this property. */\n /** Creates an \"less or equal ('<=')\" condition for this property. */\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/greenrobot/greenDAO/commit/85ff983faf20ab4c038f549af7db850e4344659a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " protected void setUp() {\n protected void setUp() throws Exception {\n super.setUp();\n protected void setUp() {\n protected void setUp() throws Exception {\n super.setUp();\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/greenrobot/greenDAO/commit/9fb2a0e71022e5577b56d9098abe7834378069f7", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " public static final int SEC_2_MINUTES_TIME_UNIT = 60;\n public static final int MINUTE_2_SECOND_TIME_UNIT = 60;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/dolphinscheduler/commit/d675d32771f89a0ad09470e247469b504c6666fe", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4, 5, 6, 7 ] }, { "input": " [key: number]: { label: string; value: number }[]\n [key: number]: IRenderOption[]\n [key: number]: { label: string; value: number }[]\n [key: number]: IRenderOption[]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/dolphinscheduler/commit/c3de282f3175ecbe6b52affb8c9aad4233f91802", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " label: () => h(NEllipsis, null, item.name)\n label: () => h(NEllipsis, null, item.name),\n filterLabel: item.name\n label: () => h(NEllipsis, null, item.name)\n label: () => h(NEllipsis, null, item.name),\n filterLabel: item.name\n label: () => h(NEllipsis, null, item.name)\n label: () => h(NEllipsis, null, item.name),\n filterLabel: item.name\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/apache/dolphinscheduler/commit/c3de282f3175ecbe6b52affb8c9aad4233f91802", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": " WAIT_TASK_GROUP(4, \"wait task group\"),\n WAKE_UP_TASK_GROUP(4, \"wait task group\"),\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/dolphinscheduler/commit/12dd60fa46046659021d1c93d4af2849f22accdf", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": " result = DependentDateUtils.getLastMonthBeginInterval(businessDate, true);\n result = DependentDateUtils.getNeededMonthBeginInterval(businessDate, true, -1);\n result = DependentDateUtils.getLastMonthBeginInterval(businessDate, false);\n result = DependentDateUtils.getNeededMonthBeginInterval(businessDate, false, -1);\n", "class": "clone", "binary_label": 1, "regression_label": 0.09090909090909091, "commit_url": "https://github.com/apache/dolphinscheduler/commit/1e1103404967763002031d7abd84a5684497b284", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " public static final String ACCESS_KEY_ID = PropertyUtils.getString(Constants.AWS_ACCESS_KEY_ID);\n public static final String ACCESS_KEY_ID = PropertyUtils.getString(TaskConstants.AWS_ACCESS_KEY_ID);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.23076923076923078, "commit_url": "https://github.com/apache/dolphinscheduler/commit/70dbcb21555e6b49fbf64359f77982c47b4f6902", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " ProcessInstance processInstance = this.processService.findProcessInstanceById(taskInstance.getProcessInstanceId());\n taskProcessor.init(taskInstance, processInstance);\n ProcessInstance processInstance = this.processService.findProcessInstanceById(taskInstance.getProcessInstanceId());\n taskProcessor.init(taskInstance, processInstance);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/dolphinscheduler/commit/88d2803fe1bd59b1fa719e3cddce1a9e7d1313e8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " Assert.assertEquals(update, 1);\n Assert.assertEquals(1, update);\n Assert.assertEquals(delete, 1);\n Assert.assertEquals(1, delete);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/dolphinscheduler/commit/a1f76144764be105fb9a88c291b9f49ee15b3124", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\t AntiCsrfParam param = optionsParam.getAntiCsrfParam();\n\t AntiCsrfParam param = optionsParam.getParamSet(AntiCsrfParam.class);\n\t AntiCsrfParam antiCsrfParam = optionsParam.getAntiCsrfParam();\n\t AntiCsrfParam antiCsrfParam = optionsParam.getParamSet(AntiCsrfParam.class);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zaproxy/zaproxy/commit/ff760ff0cc211fcd5bc7a2b9a30a48c364697e5e", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": "\t\tKeyboardMapping mapping = menuToMapping(zme);\n\t\tString identifier = mapping.getIdentifier();\n\t\tString identifier = zme.getIdentifier();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zaproxy/zaproxy/commit/fae772b0903da0b0e2cfe4b2f27ea1f282370c2f", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\t\treturn new KeyboardShortcut(menuItem.getIdenfifier(), menuItem.getText(), menuItem.getDefaultAccelerator());\n\t\t}\n\t\t\n\t\tKeyStroke ks = this.getKeyboardParam().getShortcut(menuItem.getIdenfifier());\n\t\t\n\t\tif (ks != null) {\n\t\t\tif (ks.getKeyCode() == 0) {\n\t\t\t\t// Used to indicate no accelerator should be used\n\t\t\t\tlogger.debug(\"Cleaning menu \" + menuItem.getIdenfifier() + \" accelerator\");\n\t\t\t\tmenuItem.setAccelerator(null);\n\t\t\t} else {\n\t\t\t\tlogger.debug(\"Setting menu \" + menuItem.getIdenfifier() + \" accelerator to \" + ks.toString());\n\t\t\t\tmenuItem.setAccelerator(ks);\n\t\t\t}\n\t\t\treturn new KeyboardShortcut(menuItem.getIdentifier(), menuItem.getText(), menuItem.getDefaultAccelerator());\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/zaproxy/zaproxy/commit/fae772b0903da0b0e2cfe4b2f27ea1f282370c2f", "target_edit_idx": 5, "propagatable_edit_idx": [ 6, 7 ] }, { "input": "import org.parosproxy.paros.view.View;\nimport org.parosproxy.paros.view.View;\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/zaproxy/zaproxy/commit/72e8caa5eed793b5b79feae8470e777eb1b8b76d", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "// ZAP: 2014/03/27 Issue 1072: Allow the request and response body sizes to be user-specifiable as far as possible\n// ZAP: 2014/03/27 Issue 1072: Allow the request and response body sizes to be user-specifiable as far as possible\n// ZAP: 2014/03/27 Issue 1072: Allow the request and response body sizes to be user-specifiable as far as possible\n// ZAP: 2014/03/27 Issue 1072: Allow the request and response body sizes to be user-specifiable as far as possible\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zaproxy/zaproxy/commit/5cdf1ecb8cce543cf58505e2150d1529fc4c8276", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 4, 5 ] }, { "input": "import java.awt.event.MouseListener;\nimport java.awt.event.MouseListener;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/zaproxy/zaproxy/commit/ec8fbaed5c9e3736542fbf415e3ad3b2ec1a34ee", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " getPolicyAllCategoryPanel().setScanPolicy(scanPolicy);\n getPolicyAllCategoryPanel(false).setScanPolicy(scanPolicy);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zaproxy/zaproxy/commit/ad3f4b66bf21c7c958ff86f42ffde6d6d15c1966", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 2 ] }, { "input": "import java.awt.Component;\nimport java.awt.Component;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zaproxy/zaproxy/commit/4c89bab9ce95b9f729be2bdac4083aff866d3b38", "target_edit_idx": 0, "propagatable_edit_idx": [ 6 ] }, { "input": "import org.zaproxy.zap.extension.ExtensionPopupMenu;\nimport org.zaproxy.zap.extension.ExtensionPopupMenu;\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/zaproxy/zaproxy/commit/4c89bab9ce95b9f729be2bdac4083aff866d3b38", "target_edit_idx": 1, "propagatable_edit_idx": [ 7 ] }, { "input": "\tpublic boolean isEnableForComponent(Component invoker) {\n\tpublic boolean isEnableForMessageContainer(MessageContainer invoker) {\n\tpublic boolean isEnableForComponent(Component invoker) {\n\tpublic boolean isEnableForMessageContainer(MessageContainer invoker) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zaproxy/zaproxy/commit/4c89bab9ce95b9f729be2bdac4083aff866d3b38", "target_edit_idx": 4, "propagatable_edit_idx": [ 10 ] }, { "input": " \t\ti18nToStr = new HashMap();\n \t\ti18nToStr = new HashMap<>();\n \t\ti18nToStr = new HashMap();\n \t\ti18nToStr = new HashMap<>();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zaproxy/zaproxy/commit/20696f9b5bb66050836739914492192ff5bc64af", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "\t JComboBox jcb1 = new JComboBox();\n\t JComboBox jcb1 = new JComboBox<>();\n\t JComboBox jcb2 = new JComboBox();\n\t JComboBox jcb2 = new JComboBox<>();\n\t JComboBox jcb1 = new JComboBox();\n\t JComboBox jcb1 = new JComboBox<>();\n\t JComboBox jcb2 = new JComboBox();\n\t JComboBox jcb2 = new JComboBox<>();\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/zaproxy/zaproxy/commit/20696f9b5bb66050836739914492192ff5bc64af", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6, 7 ] }, { "input": "\t\tList> dep = new ArrayList<>();\n\t\tList> dep = new ArrayList<>(1);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zaproxy/zaproxy/commit/38889dd98e8bad8a3a117602a1cbe9d2f01c7673", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": "\t\tList> dependencies = new ArrayList<>();\n\t\tList> dependencies = new ArrayList<>(3);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/zaproxy/zaproxy/commit/38889dd98e8bad8a3a117602a1cbe9d2f01c7673", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": "\t\tcore.newSession(name);\n\t\tcore.newSession(name, \"true\");\n\t\tcore.newSession(\"\");\n\t\tcore.newSession(\"\", \"true\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zaproxy/zaproxy/commit/76b7965d68d22ec0bc5be3e7c8b8794e41181515", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "\t\t\treturn executeAndGetRowCount(stmt);\n\t\t\treturn executeAndGetSingleIntValue(stmt);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zaproxy/zaproxy/commit/b62e56bfbd853170f6eb5087b033511ab2d4e0fa", "target_edit_idx": 6, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " .verify(Duration.ofSeconds(5));\n .verify(Duration.ofSeconds(1));\n .verify(Duration.ofSeconds(5));\n .verify(Duration.ofSeconds(1));\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/codecentric/spring-boot-admin/commit/6ac1c6744fe98ef55dc374a1217b1171c86f99ba", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\tprivate RestTemplateBuilder builder;\n\tprivate RestTemplateBuilder restTemplBuilder;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/codecentric/spring-boot-admin/commit/99369f27aec0a9f625be8cca454fc526bda655d5", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "\t\tbuilder.messageConverters(new MappingJackson2HttpMessageConverter())\n\t\tRestTemplateBuilder builder = restTemplBuilder\n\t\t\t\t.messageConverters(new MappingJackson2HttpMessageConverter())\n\t\tbuilder = builder.messageConverters(new MappingJackson2HttpMessageConverter());\n\t\tRestTemplateBuilder builder = restTemplBuilder\n\t\t\t\t.messageConverters(new MappingJackson2HttpMessageConverter());\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/codecentric/spring-boot-admin/commit/99369f27aec0a9f625be8cca454fc526bda655d5", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " ((ExternalCatalog) catalog).onRefresh(invalidCache);\n ((ExternalCatalog) catalog).onRefreshCache(invalidCache);\n catalog.onRefresh(true);\n catalog.onRefreshCache(true);\n catalog.onRefresh(true);\n catalog.onRefreshCache(true);\n dorisCatalog.onRefresh(true);\n dorisCatalog.onRefreshCache(true);\n dorisCatalog.onRefresh(true);\n dorisCatalog.onRefreshCache(true);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/apache/doris/commit/e70e91bb51bcba60c42613363e2e119c956f044b", "target_edit_idx": 0, "propagatable_edit_idx": [ 2, 3, 4, 5 ] }, { "input": " LOG.warn(\"Failed to list objects for Azure\", e);\n LOG.warn(\"Failed to list objects for Azure prefix {}\", prefix, e);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/doris/commit/7aa56371a281bcf3360993a0d61bb908b56bf8f1", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 4, 5 ] }, { "input": " LOG.warn(\"Failed to list objects for S3\", e);\n LOG.warn(\"Failed to list objects for S3, prefix {}\", prefix, e);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/doris/commit/7aa56371a281bcf3360993a0d61bb908b56bf8f1", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": " LOG.warn(\"Failed to list objects for OSS\", e);\n LOG.warn(\"Failed to list objects for OSS prefix {}\", prefix, e);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/doris/commit/7aa56371a281bcf3360993a0d61bb908b56bf8f1", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " if (Strings.isNullOrEmpty(name) || !name.matches(getOutfileSuccessFileNameRegex())) {\n ErrorReport.reportAnalysisException(ErrorCode.ERR_WRONG_NAME_FORMAT, type, name);\n final String regex = getOutfileSuccessFileNameRegex();\n if (Strings.isNullOrEmpty(name) || !name.matches(regex)) {\n ErrorReport.reportAnalysisException(ErrorCode.ERR_WRONG_NAME_FORMAT, type, name, regex);\n if (Strings.isNullOrEmpty(name) || !name.matches(getCommonNameRegex())) {\n ErrorReport.reportAnalysisException(ErrorCode.ERR_WRONG_NAME_FORMAT, type, name);\n final String regex = getCommonNameRegex();\n if (Strings.isNullOrEmpty(name) || !name.matches(regex)) {\n ErrorReport.reportAnalysisException(ErrorCode.ERR_WRONG_NAME_FORMAT, type, name, regex);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/doris/commit/a91d91f0f7ffe9c5ad12bdec17fdf7a3588f205c", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " return new VarcharLiteral(new String(bytes));\n // ATTN: use fixed StandardCharsets.UTF_8 to avoid unexpected charset in\n // different environment\n return new VarcharLiteral(new String(bytes, StandardCharsets.UTF_8));\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/doris/commit/d7b5411aeb5125c3aed727ec424916603d254063", "target_edit_idx": 4, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " stringBuilder.append(\"DECIMAL\").append(\"(\").append(precision)\n stringBuilder.append(\"DECIMALV2\").append(\"(\").append(precision)\n stringBuilder.append(\"DECIMAL\").append(\"(`\").append(precisionStr)\n stringBuilder.append(\"DECIMALV2\").append(\"(`\").append(precisionStr)\n stringBuilder.append(\"DECIMAL\").append(\"(`\").append(precisionStr).append(\"`)\");\n stringBuilder.append(\"DECIMALV2\").append(\"(`\").append(precisionStr).append(\"`)\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/apache/doris/commit/1537a05c0cbd901043421d019fdab201a486cfa3", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " Map nereidsExprIdToSlotRef;\n Map slotExprMap;\n RuntimeFilterExpressionTranslator(Map nereidsExprIdToSlotRef) {\n this.nereidsExprIdToSlotRef = nereidsExprIdToSlotRef;\n RuntimeFilterExpressionTranslator(Map slotExprMap) {\n this.slotExprMap = slotExprMap;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/3f12f7f93fba11ae82d34cb5ae6f63933a8f58d8", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "import com.google.common.collect.Queues;\nimport com.google.common.collect.Queues;\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/doris/commit/5fb98d3543d3add55a268511f5c0ef43913ae2d5", "target_edit_idx": 0, "propagatable_edit_idx": [ 7 ] }, { "input": " Deencapsulation.invoke(routineLoadJob, \"updateNumOfData\", 2L, 0L, 0L, 1L, 1L, false);\n Deencapsulation.invoke(routineLoadJob, \"updateNumOfData\", 2L, 0L, 0L, 1L, false);\n Deencapsulation.invoke(routineLoadJob, \"updateNumOfData\", 1L, 1L, 0L, 1L, 1L, false);\n Deencapsulation.invoke(routineLoadJob, \"updateNumOfData\", 1L, 1L, 0L, 1L, false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/doris/commit/20506a02667c67e1c4ca27d9745dccf672093b3f", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " public static TFileType getTFileType(String location) {\n public static TFileType getTFileTypeForBE(String location) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/823b19f4f63bf619a3cb8ff75fd42c3dac431df3", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 6, 7 ] }, { "input": " return Optional.ofNullable(LocationPath.getTFileType(location)).orElseThrow(() ->\n new DdlException(\"Unknown file location \" + location + \" for paimon table \"));\n return Optional.ofNullable(LocationPath.getTFileTypeForBE(location)).orElseThrow(() ->\n new DdlException(\"Unknown file location \" + location + \" for paimon table \"));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/doris/commit/823b19f4f63bf619a3cb8ff75fd42c3dac431df3", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 6, 7 ] }, { "input": " table.dropConstraint(name);\n table.dropConstraint(name, false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/doris/commit/c4e66697d2afce3b5d43d28491e47e80c433dd99", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 3 ] }, { "input": " // check auth\n if (!Env.getCurrentEnv().getAccessManager()\n .checkTblPriv(ConnectContext.get(), tableName.getDb(), tableName.getTbl(), PrivPredicate.ALTER)) {\n ErrorReport.reportAnalysisException(ErrorCode.ERR_TABLEACCESS_DENIED_ERROR, \"ALTER COLUMN STATS\",\n ConnectContext.get().getQualifiedUser(), ConnectContext.get().getRemoteIP(),\n tableName.getDb() + \": \" + tableName.getTbl());\n }\n\n if (!Env.getCurrentEnv().getAccessManager()\n .checkTblPriv(ConnectContext.get(), tableName.getDb(), tableName.getTbl(), PrivPredicate.ALTER)) {\n ErrorReport.reportAnalysisException(ErrorCode.ERR_TABLEACCESS_DENIED_ERROR, \"ALTER COLUMN STATS\",\n ConnectContext.get().getQualifiedUser(), ConnectContext.get().getRemoteIP(),\n tableName.getDb() + \": \" + tableName.getTbl());\n }\n\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/doris/commit/6e1a68bd694ac4c4c239d8eddd5ca5719666c2e4", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " if (list.size() > 0) {\n req.putToTopicMap(TTopicInfoType.WORKLOAD_GROUP, list);\n }\n req.putToTopicMap(TTopicInfoType.WORKLOAD_GROUP, list);\n if (list.size() > 0) {\n req.putToTopicMap(TTopicInfoType.WORKLOAD_SCHED_POLICY, list);\n }\n req.putToTopicMap(TTopicInfoType.WORKLOAD_SCHED_POLICY, list);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/03ece437f0690e0902f5fcd24bd5129aa2fb0fb1", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " public DruidDataSource getSource(String jdbcUrl) {\n return sourcesMap.get(jdbcUrl);\n public DruidDataSource getSource(String cacheKey) {\n return sourcesMap.get(cacheKey);\n public void putSource(String jdbcUrl, DruidDataSource ds) {\n sourcesMap.put(jdbcUrl, ds);\n public void putSource(String cacheKey, DruidDataSource ds) {\n sourcesMap.put(cacheKey, ds);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/doris/commit/10623ad67178421a6299f3351fa2813e7ff646a8", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " druidDataSource = JdbcDataSource.getDataSource().getSource(jdbcUrl + jdbcUser + jdbcPassword);\n druidDataSource = JdbcDataSource.getDataSource().getSource(druidDataSourceKey);\n druidDataSource = JdbcDataSource.getDataSource().getSource(jdbcUrl + jdbcUser + jdbcPassword);\n druidDataSource = JdbcDataSource.getDataSource().getSource(druidDataSourceKey);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/10623ad67178421a6299f3351fa2813e7ff646a8", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " removeZeroeCounter(childCounterSet, childCounterName, counter);\n removeCounter(childCounterSet, childCounterName, counter);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/b9f1ac153afc70c5032c3473c1702ed0590ee5a3", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " public void handleExplainStmt(String result) throws IOException {\n ShowResultSetMetaData metaData =\n ShowResultSetMetaData.builder()\n .addColumn(new Column(\"Explain String\", ScalarType.createVarchar(20)))\n .build();\n public void handleExplainStmt(String result, boolean isNereids) throws IOException {\n ShowResultSetMetaData metaData = ShowResultSetMetaData.builder()\n .addColumn(new Column(\"Explain String\" + (isNereids ? \"(Nereids Planner)\" : \"(Old Planner)\"),\n ScalarType.createVarchar(20)))\n .build();\n executor.handleExplainStmt(planner.getExplainString(new ExplainOptions(level)));\n executor.handleExplainStmt(planner.getExplainString(new ExplainOptions(level)), true);\n handleExplainStmt(explainString);\n handleExplainStmt(explainString, false);\n handleExplainStmt(explainString);\n handleExplainStmt(explainString, false);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/doris/commit/e0834b2f462fb5f6ec4130c5e5e30438cc9a096b", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " computeColumnFilter();\n computeColumnsFilter();\n computeColumnFilter();\n computeColumnsFilter();\n computeColumnFilter();\n computeColumnsFilter();\n computeColumnFilter();\n computeColumnsFilter();\n computeColumnFilter();\n computeColumnsFilter();\n computeColumnFilter();\n computeColumnsFilter();\n computeColumnFilter();\n computeColumnsFilter();\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/apache/doris/commit/5b2360e836fb3c6b953801f3296a0998b079864e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 9, 10, 11, 12, 13 ] }, { "input": " computeColumnFilter(olapTable.getBaseSchemaKeyColumns());\n computeColumnsFilter(olapTable.getBaseSchemaKeyColumns());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/5b2360e836fb3c6b953801f3296a0998b079864e", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 4, 7 ] }, { "input": " return Objects.hash(super.hashCode(), filePath, format, properties);\n return Objects.hash(filePath, format, properties);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/7cac36d9e835c6b4dcdfeb0241a77b811bf6cd6f", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " if (unixTime.getLongValue() < 0) {\n throw new AnalysisException(\"unixtime should larger than zero\");\n if (unixTime.getLongValue() < 0 || unixTime.getLongValue() >= Integer.MAX_VALUE) {\n throw new AnalysisException(\"unix timestamp out of range\");\n if (unixTime.getLongValue() < 0) {\n throw new AnalysisException(\"unixtime should larger than zero\");\n if (unixTime.getLongValue() < 0 || unixTime.getLongValue() >= Integer.MAX_VALUE) {\n throw new AnalysisException(\"unix timestamp out of range\");\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/e1a116af949797c80ff773c0161fcd48b891a767", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " List baseOutput = olapScan.getOutputByMvIndex(olapScan.getTable().getBaseIndexId());\n List baseOutput = olapScan.getOutputByIndex(olapScan.getTable().getBaseIndexId());\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/c6d78c2d7bd604d8f17b7849d56d18cf73e26201", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": " Slot countSlot = context.checkContext.scan.getOutputByMvIndex(context.checkContext.index)\n Slot countSlot = context.checkContext.scan.getOutputByIndex(context.checkContext.index)\n olapScan.getOutputByMvIndex(olapScan.getTable().getBaseIndexId()),\n olapScan.getOutputByIndex(olapScan.getTable().getBaseIndexId()),\n List baseOutput = olapScan.getOutputByMvIndex(olapScan.getTable().getBaseIndexId());\n List baseOutput = olapScan.getOutputByIndex(olapScan.getTable().getBaseIndexId());\n for (Slot mvSlot : mvPlan.getOutputByMvIndex(mvPlan.getSelectedIndexId())) {\n for (Slot mvSlot : mvPlan.getOutputByIndex(mvPlan.getSelectedIndexId())) {\n Slot bitmapUnionSlot = context.checkContext.scan.getOutputByMvIndex(context.checkContext.index)\n Slot bitmapUnionSlot = context.checkContext.scan.getOutputByIndex(context.checkContext.index)\n .getOutputByMvIndex(context.checkContext.index)\n .getOutputByIndex(context.checkContext.index)\n .getOutputByMvIndex(context.checkContext.index)\n .getOutputByIndex(context.checkContext.index)\n Slot hllUnionSlot = context.checkContext.scan.getOutputByMvIndex(context.checkContext.index)\n Slot hllUnionSlot = context.checkContext.scan.getOutputByIndex(context.checkContext.index)\n Slot hllUnionSlot = context.checkContext.scan.getOutputByMvIndex(context.checkContext.index)\n Slot hllUnionSlot = context.checkContext.scan.getOutputByIndex(context.checkContext.index)\n Slot hllUnionSlot = context.checkContext.scan.getOutputByMvIndex(context.checkContext.index)\n Slot hllUnionSlot = context.checkContext.scan.getOutputByIndex(context.checkContext.index)\n .addAll(mvPlan.getOutputByMvIndex(mvPlan.getSelectedIndexId()))\n .addAll(mvPlan.getOutputByIndex(mvPlan.getSelectedIndexId()))\n return getOutputByMvIndex(selectedIndexId);\n return getOutputByIndex(selectedIndexId);\n public List getOutputByMvIndex(long indexId) {\n public List getOutputByIndex(long indexId) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.9, "commit_url": "https://github.com/apache/doris/commit/c6d78c2d7bd604d8f17b7849d56d18cf73e26201", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": " Slot hllUnionSlot = context.checkContext.scan.getOutputByMvIndex(context.checkContext.index)\n Slot hllUnionSlot = context.checkContext.scan.getOutputByIndex(context.checkContext.index)\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.7, "commit_url": "https://github.com/apache/doris/commit/c6d78c2d7bd604d8f17b7849d56d18cf73e26201", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12 ] }, { "input": " .addAll(mvPlan.getOutputByMvIndex(mvPlan.getSelectedIndexId()))\n .addAll(mvPlan.getOutputByIndex(mvPlan.getSelectedIndexId()))\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/doris/commit/c6d78c2d7bd604d8f17b7849d56d18cf73e26201", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12 ] }, { "input": " private String labelValue;\n private String snapshotName;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/78cb4a8f56ba69f84022ef802122a6667ba06db8", "target_edit_idx": 0, "propagatable_edit_idx": [ 3, 6, 7 ] }, { "input": " ? label -> label.equals(labelValue) : label -> label.equalsIgnoreCase(labelValue);\n ? label -> label.equals(snapshotName) : label -> label.equalsIgnoreCase(snapshotName);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/apache/doris/commit/78cb4a8f56ba69f84022ef802122a6667ba06db8", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 3, 7 ] }, { "input": " MasterCatalogExecutor remoteExecutor = new MasterCatalogExecutor();\n int waitTimeOut = ConnectContext.get() == null ? 300 : ConnectContext.get().getExecTimeout();\n MasterCatalogExecutor remoteExecutor = new MasterCatalogExecutor(waitTimeOut * 1000);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/doris/commit/0ad459fea57845e0bd6856a3cde75ee539812861", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " if (dbName != null && mvName != null && !dbName.equals(mvName.getDb())) {\n if (dbName != null && mvName != null && mvName.getDb() != null && !dbName.equals(mvName.getDb())) {\n if (dbName != null && mvName != null && !dbName.equals(mvName.getDb())) {\n if (dbName != null && mvName != null && mvName.getDb() != null && !dbName.equals(mvName.getDb())) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/doris/commit/40fa5b4019b470a7a356096cda35756a0646e9ae", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " if (!olapTable.isPartitioned()) {\n if (olapTable.getPartitionInfo().getType().equals(PartitionType.UNPARTITIONED)) {\n if (olapTable.isPartitioned()) {\n if (!olapTable.getPartitionInfo().getType().equals(PartitionType.UNPARTITIONED)) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/doris/commit/f007e0aed0f830404f3066f94fe80fef046442ad", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " transform(logicalExpression, rule);\n transformApply(logicalExpression, rule);\n transform(physicalExpression, rule);\n transformApply(physicalExpression, rule);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/apache/doris/commit/8478efad4460965616da02c6e4aff25f03a16ff9", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " List> explorationRules = getRuleSet().getExplorationRules();\n // TODO: enable exploration job after we test it\n // List> explorationRules = getRuleSet().getExplorationRules();\n List> explorationRules = Lists.newArrayList();\n List> explorationRules = getRuleSet().getExplorationRules();\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/apache/doris/commit/8204b41d88db1f4906e082ccc60e560377ac53c9", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " // TODO: adapt situation when pattern arity smaller than group expression arity\n // TODO: adapt situation when pattern arity smaller than group expression arity\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/8204b41d88db1f4906e082ccc60e560377ac53c9", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " eraseTableWithSameName(dbId, table.getName());\n eraseTableWithSameName(dbId, table.getName(), isReplay);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/036276c1d3ff71d60c9fc6fe85becae5427023a6", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " private synchronized void eraseTableWithSameName(long dbId, String tableName) {\n private synchronized void eraseTableWithSameName(long dbId, String tableName, boolean isReplay) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/doris/commit/036276c1d3ff71d60c9fc6fe85becae5427023a6", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " InsertLoadJob insertLoadJob = new InsertLoadJob(\"label\", 1L, 1L, 1000, \"\", \"\");\n InsertLoadJob insertLoadJob = new InsertLoadJob(\"label\", 1L, 1L, 1L, 1000, \"\", \"\");\n LoadJob job1 = new InsertLoadJob(\"job1\", 1L, 1L, System.currentTimeMillis(), \"\", \"\");\n LoadJob job1 = new InsertLoadJob(\"job1\", 1L, 1L, 1L, System.currentTimeMillis(), \"\", \"\");\n LoadJob job1 = new InsertLoadJob(\"job1\", 1L, 1L, System.currentTimeMillis(), \"\", \"\");\n LoadJob job1 = new InsertLoadJob(\"job1\", 1L, 1L, 1L, System.currentTimeMillis(), \"\", \"\");\n loadJob = new InsertLoadJob(label, db.getId(), tableId, createTimestamp, failMsg, trackingUrl);\n loadJob = new InsertLoadJob(label, transactionId, db.getId(), tableId, createTimestamp, failMsg, trackingUrl);\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/doris/commit/9e67b3a3924d8916e44cd2a61ec19215ca15458a", "target_edit_idx": 9, "propagatable_edit_idx": [ 10, 11, 5 ] }, { "input": " LoadJob job1 = new InsertLoadJob(\"job1\", 1L, 1L, System.currentTimeMillis(), \"\", \"\");\n LoadJob job1 = new InsertLoadJob(\"job1\", 1L, 1L, 1L, System.currentTimeMillis(), \"\", \"\");\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/apache/doris/commit/9e67b3a3924d8916e44cd2a61ec19215ca15458a", "target_edit_idx": 10, "propagatable_edit_idx": [ 9, 11, 5 ] }, { "input": " Deencapsulation.setField(coordinator, \"bucketSeqToScanRange\", bucketSeqToScanRange);\n fragmentIdBucketSeqToScanRangeMap.put(planFragmentId, bucketSeqToScanRange);\n Deencapsulation.setField(coordinator, \"fragmentIdTobucketSeqToScanRangeMap\", fragmentIdBucketSeqToScanRangeMap);\n Deencapsulation.setField(coordinator, \"bucketSeqToScanRange\", bucketSeqToScanRange);\n fragmentIdBucketSeqToScanRangeMap.put(planFragmentId, bucketSeqToScanRange);\n Deencapsulation.setField(coordinator, \"fragmentIdTobucketSeqToScanRangeMap\", fragmentIdBucketSeqToScanRangeMap);\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/a5c35eb20f3a10834f2920bf45515b2f4e411edf", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": " public void finalize() throws UserException {\n public void complete() throws UserException {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/a88ae53326848af5580c54ce1ea9f63a25ad5b7a", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " olapTableSink.finalize();\n olapTableSink.complete();\n public void finalize() throws UserException {\n public void complete() throws UserException {\n ((OlapTableSink) dataSink).finalize();\n ((OlapTableSink) dataSink).complete();\n public void finalize() throws UserException {\n public void complete() throws UserException {\n insertStmt.finalize();\n insertStmt.complete();\n olapTableSink.finalize();\n olapTableSink.complete();\n sink.finalize();\n sink.complete();\n sink.finalize();\n sink.complete();\n sink.finalize();\n sink.complete();\n sink.finalize();\n sink.complete();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.8571428571428571, "commit_url": "https://github.com/apache/doris/commit/a88ae53326848af5580c54ce1ea9f63a25ad5b7a", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8, 9 ] }, { "input": " sink.finalize();\n sink.complete();\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5714285714285714, "commit_url": "https://github.com/apache/doris/commit/a88ae53326848af5580c54ce1ea9f63a25ad5b7a", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8, 9 ] }, { "input": " sql = \"select count(distinct id2) from test.bitmap_table having count(distinct id2) > 0\";\n sql = \"select count(distinct id2) from test.bitmap_table group by id order by count(distinct id2)\";\n sql = \"select count(distinct id2) from test.bitmap_table order by count(distinct id2) > 0\";\n sql = \"select count(distinct id2) from test.bitmap_table having count(distinct id2) > 0\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/apache/doris/commit/c9ff6f68d1a4cb9489880fa7678266af34bdf617", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " public List getBackendIdsList() {\n public Set getAvailableBackendIds() {\n Set beIds = Sets.newHashSet();\n for (Replica replica : replicas) {\n if (Catalog.getCurrentSystemInfo().checkBackendAvailable(replica.getBackendId())) {\n beIds.add(replica.getBackendId());\n }\n }\n return beIds;\n }\n\n public List getAvailableBackendIdsList() {\n List beIds = tablet.getBackendIdsList();\n List beIds = tablet.getAvailableBackendIdsList();\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/apache/doris/commit/566243c4e3a97d4a8b2c491d544fd599264fd860", "target_edit_idx": 0, "propagatable_edit_idx": [ 3 ] }, { "input": " List fileStatuses = fileSystemManager.listPath(request.path, request.properties);\n boolean fileNameOnly = false;\n if (request.isSetFileNameOnly()) {\n fileNameOnly = request.isFileNameOnly();\n }\n List fileStatuses = fileSystemManager.listPath(request.path, fileNameOnly,\n request.properties);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/apache/doris/commit/2622da1c5e658f16eda7e6d924d3de3027ec003d", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " analysisDone();\n analysisDone();\n analysisDone();\n analysisDone();\n analysisDone();\n analysisDone();\n analysisDone();\n analysisDone();\n analysisDone();\n", "class": "clone", "binary_label": 1, "regression_label": 0.875, "commit_url": "https://github.com/apache/doris/commit/a177a575d8048a48a68c3b21e732e844ee328aec", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 9 ] }, { "input": " MessageHandler.printToLogFile(\"IgnoredMatches: IgnoredMatches(1): spellLocales.size: \" + spellLocales.size());\n// MessageHandler.printToLogFile(\"IgnoredMatches: IgnoredMatches(1): spellLocales.size: \" + spellLocales.size());\n MessageHandler.printToLogFile(\"IgnoredMatches: IgnoredMatches(2): spellLocales.size: \" + spellLocales.size());\n// MessageHandler.printToLogFile(\"IgnoredMatches: IgnoredMatches(2): spellLocales.size: \" + spellLocales.size());\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/languagetool-org/languagetool/commit/fb472fed85bbee5707f28d3ba99c074cbf1f9cb9", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " MessageHandler.printToLogFile(\"SingleDocument: writeCaches: Copy DocumentCache\");\n if (debugMode > 0) {\n MessageHandler.printToLogFile(\"SingleDocument: writeCaches: Copy DocumentCache\");\n }\n MessageHandler.printToLogFile(\"SingleDocument: writeCaches: Copy ResultCache \" + i);\n if (debugMode > 0) {\n MessageHandler.printToLogFile(\"SingleDocument: writeCaches: Copy ResultCache \" + i);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/languagetool-org/languagetool/commit/fb472fed85bbee5707f28d3ba99c074cbf1f9cb9", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " callables.add(new CheckCallable(count, baseUrl, token, texts, langCode, user, password));\n callables.add(new CheckCallable(count, baseUrl, token, texts, langCode, user, password, parameters));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/languagetool-org/languagetool/commit/45432a2aa77812aa650cb7d93bde1f826ac5d856", "target_edit_idx": 6, "propagatable_edit_idx": [ 5 ] }, { "input": " config.ruleId, chars, () -> runPostprocessing(sentences, ruleMatches));\n config.ruleId, chars, () -> runPostprocessing(sentences, ruleMatches, textSessionID, inputLogging));\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/languagetool-org/languagetool/commit/f8021795c2b0f8cfb32af48f16697f866f847926", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " private List runPostprocessing(List sentences, List ruleMatches) {\n private List runPostprocessing(List sentences, List ruleMatches,\n Long textSessionID, boolean inputLogging) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/languagetool-org/languagetool/commit/f8021795c2b0f8cfb32af48f16697f866f847926", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": "\n private static final PreferredWordData data = new PreferredWordData(DESC);\n private static final String RULE_ID = \"NL_PREFERRED_WORD_RULE\";\n private static final PreferredWordData data = new PreferredWordData(DESC, \"/nl/preferredwords.csv\", RULE_ID);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/languagetool-org/languagetool/commit/5fa57f84be67ea66e9623a9f36f2d1c61ae6487d", "target_edit_idx": 2, "propagatable_edit_idx": [ 0 ] }, { "input": " int backslashPos = errorMessage.indexOf('\\\\');\n int backslashPos = errorMessage.indexOf('\\\\', errorMessageProcessed);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/languagetool-org/languagetool/commit/f30f205ea52d551ed8ab600f9318699017d3fce9", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 7 ] }, { "input": " errMarker = errorMessage.indexOf('\\\\');\n errMarker = errorMessage.indexOf('\\\\', errorMessageProcessed);\n int errMarker = errorMessage.indexOf('\\\\');\n /*\n track position of already replaced text to avoid recursion\n otherwise, if we insert user matches into text and these contain backslashes\n we will try to interpret these as well -> this can lead to array index violations, etc.\n */\n int errorMessageProcessed = 0;\n int errMarker = errorMessage.indexOf('\\\\', errorMessageProcessed);\n int backslashPos = errorMessage.indexOf('\\\\');\n int backslashPos = errorMessage.indexOf('\\\\', errorMessageProcessed);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/languagetool-org/languagetool/commit/f30f205ea52d551ed8ab600f9318699017d3fce9", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " requestEvents.add(new RequestEvent(ipAddress, new Date(), 0));\n requestEvents.add(new RequestEvent(ipAddress, new Date(), 0, JLanguageTool.Mode.ALL));\n RequestEvent(String ip, Date date, int sizeInBytes) {\n RequestEvent(String ip, Date date, int sizeInBytes, JLanguageTool.Mode mode) {\n requestEvents.add(new RequestEvent(ipAddress, new Date(), reqSize));\n checkLimit(ipAddress, ServerTools.getMode(parameters));\n requestEvents.add(new RequestEvent(ipAddress, new Date(), reqSize, ServerTools.getMode(params)));\n checkLimit(ipAddress);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/languagetool-org/languagetool/commit/8ed51da3dbdee32d51013b75052f04ea5d97d811", "target_edit_idx": 1, "propagatable_edit_idx": [ 10, 3 ] }, { "input": " requestEvents.add(new RequestEvent(ipAddress, new Date(), reqSize));\n checkLimit(ipAddress, ServerTools.getMode(parameters));\n requestEvents.add(new RequestEvent(ipAddress, new Date(), reqSize, ServerTools.getMode(params)));\n checkLimit(ipAddress);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/languagetool-org/languagetool/commit/8ed51da3dbdee32d51013b75052f04ea5d97d811", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 10 ] }, { "input": " void checkLimit(String ipAddress, JLanguageTool.Mode mode) {\n void checkLimit(String ipAddress) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/languagetool-org/languagetool/commit/8ed51da3dbdee32d51013b75052f04ea5d97d811", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " return getFallbackRegexQuery(str);\n return getFallbackRegexQuery(str, element);\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/languagetool-org/languagetool/commit/366924eb2849803963198e0336a821a6c508763b", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " private RegexQuery getFallbackRegexQuery(String str) {\n /** Return a query with the old (and slow, but more complete) way Lucene implements regular expressions. */\n private RegexQuery getFallbackRegexQuery(String str, Element element) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/languagetool-org/languagetool/commit/366924eb2849803963198e0336a821a6c508763b", "target_edit_idx": 9, "propagatable_edit_idx": [ 8, 7 ] }, { "input": " setCommonHeaders(httpExchange);\n httpExchange.getResponseHeaders().set(\"Content-Type\", CONTENT_TYPE_VALUE);\n setCommonHeaders(httpExchange);\n httpExchange.getResponseHeaders().set(\"Content-Type\", CONTENT_TYPE_VALUE);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/languagetool-org/languagetool/commit/bef69fe634643dde78faae21bfc9ed8a688a3b04", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": " protected static final int DEFAULT_MAX_REDIRECTIONS = 5;\n protected static final int DEFAULT_MAX_ATTEMPTS = 5;\n this(nodes, timeout, DEFAULT_MAX_REDIRECTIONS, new GenericObjectPoolConfig());\n this(nodes, timeout, DEFAULT_MAX_ATTEMPTS, new GenericObjectPoolConfig());\n this(Collections.singleton(node), timeout, DEFAULT_MAX_REDIRECTIONS);\n this(Collections.singleton(node), timeout, DEFAULT_MAX_ATTEMPTS);\n this(Collections.singleton(node), DEFAULT_TIMEOUT, DEFAULT_MAX_REDIRECTIONS, poolConfig);\n this(Collections.singleton(node), DEFAULT_TIMEOUT, DEFAULT_MAX_ATTEMPTS, poolConfig);\n this(Collections.singleton(node), timeout, DEFAULT_MAX_REDIRECTIONS, poolConfig);\n this(Collections.singleton(node), timeout, DEFAULT_MAX_ATTEMPTS, poolConfig);\n this(nodes, timeout, DEFAULT_MAX_REDIRECTIONS);\n this(nodes, timeout, DEFAULT_MAX_ATTEMPTS);\n this(nodes, DEFAULT_TIMEOUT, DEFAULT_MAX_REDIRECTIONS, poolConfig);\n this(nodes, DEFAULT_TIMEOUT, DEFAULT_MAX_ATTEMPTS, poolConfig);\n this(nodes, timeout, DEFAULT_MAX_REDIRECTIONS, poolConfig);\n this(nodes, timeout, DEFAULT_MAX_ATTEMPTS, poolConfig);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/redis/jedis/commit/dfc76427dd7fdb008da8e04f542d7da4944c5801", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7 ] }, { "input": " this(Collections.singleton(node), DEFAULT_TIMEOUT, DEFAULT_MAX_REDIRECTIONS, poolConfig);\n this(Collections.singleton(node), DEFAULT_TIMEOUT, DEFAULT_MAX_ATTEMPTS, poolConfig);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/redis/jedis/commit/dfc76427dd7fdb008da8e04f542d7da4944c5801", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7 ] }, { "input": " this(nodes, DEFAULT_TIMEOUT, DEFAULT_MAX_REDIRECTIONS, poolConfig);\n this(nodes, DEFAULT_TIMEOUT, DEFAULT_MAX_ATTEMPTS, poolConfig);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/redis/jedis/commit/dfc76427dd7fdb008da8e04f542d7da4944c5801", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7 ] }, { "input": "\tclient.eval(script, toByteArray(keys.size()), getParams(keys, args));\n\tclient.eval(script, toByteArray(keys.size()), getParamsWithBinary(keys, args));\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/redis/jedis/commit/1ac4edd4d05849f19267164c24101232501637eb", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": "\tbyte[][] argv = BinaryJedis.getParams(keys, args);\n\tbyte[][] argv = BinaryJedis.getParamsWithBinary(keys, args);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/redis/jedis/commit/1ac4edd4d05849f19267164c24101232501637eb", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " return client.getBinaryMultiBulkReply();\n final HashSet keySet = new HashSet(client.getBinaryMultiBulkReply());\n return keySet;\n return client.getMultiBulkReply();\n final HashSet keySet = new HashSet( client.getMultiBulkReply());\n return keySet;\n", "class": "clone", "binary_label": 1, "regression_label": 0.05555555555555555, "commit_url": "https://github.com/redis/jedis/commit/424512d4e655c72b7982d136e37df8c5b28dbded", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " private final TableQuery query;\n private final Table table;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/realm/realm-java/commit/d2a6667170baf1c51b9d1ba530848df2f373299d", "target_edit_idx": 3, "propagatable_edit_idx": [ 12, 5, 6 ] }, { "input": " return UncheckedRow.getByRowPointer(query.table, nativeGetRow(nativePtr, index));\n return UncheckedRow.getByRowPointer(table, nativeGetRow(nativePtr, index));\n return UncheckedRow.getByRowPointer(query.table, nativeFirstRow(nativePtr));\n return UncheckedRow.getByRowPointer(table, nativeFirstRow(nativePtr));\n return UncheckedRow.getByRowPointer(query.table, nativeLastRow(nativePtr));\n return UncheckedRow.getByRowPointer(table, nativeLastRow(nativePtr));\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/realm/realm-java/commit/d2a6667170baf1c51b9d1ba530848df2f373299d", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " return new Collection(sharedRealm, query, nativeSort(nativePtr, sortDescriptor));\n return new Collection(sharedRealm, table, nativeSort(nativePtr, sortDescriptor));\n private final TableQuery query;\n private final Table table;\n private Collection(SharedRealm sharedRealm, TableQuery query, long nativePtr) {\n query.validateQuery();\n private Collection(SharedRealm sharedRealm, Table table, long nativePtr) {\n this.query = query;\n this.table = table;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/realm/realm-java/commit/d2a6667170baf1c51b9d1ba530848df2f373299d", "target_edit_idx": 12, "propagatable_edit_idx": [ 3, 5, 6 ] }, { "input": " CacheData cachedObject = (CacheData) cache.get(realmObject);\n CacheData cachedObject = cache.get(realmObject);\n CacheData cachedObject = (CacheData) cache.get(realmObject);\n CacheData cachedObject = cache.get(realmObject);\n CacheData cachedObject = (CacheData) cache.get(realmObject);\n CacheData cachedObject = cache.get(realmObject);\n CacheData cachedObject = (CacheData) cache.get(realmObject);\n CacheData cachedObject = cache.get(realmObject);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/realm/realm-java/commit/59039f59f85d3d3c917a6961925b93a8ab128cdd", "target_edit_idx": 3, "propagatable_edit_idx": [ 9, 12, 6 ] }, { "input": " return cachedObject.object;\n return (AllTypes)cachedObject.object;\n return cachedObject.object;\n return (NullTypes)cachedObject.object;\n return cachedObject.object;\n return (Simple)cachedObject.object;\n return cachedObject.object;\n return (Booleans)cachedObject.object;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/realm/realm-java/commit/59039f59f85d3d3c917a6961925b93a8ab128cdd", "target_edit_idx": 4, "propagatable_edit_idx": [ 10, 13, 7 ] }, { "input": " standaloneObject = cachedObject.object;\n standaloneObject = (AllTypes)cachedObject.object;\n standaloneObject = cachedObject.object;\n standaloneObject = (Booleans)cachedObject.object;\n standaloneObject = cachedObject.object;\n standaloneObject = (NullTypes)cachedObject.object;\n standaloneObject = cachedObject.object;\n standaloneObject = (Simple)cachedObject.object;\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/realm/realm-java/commit/59039f59f85d3d3c917a6961925b93a8ab128cdd", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 11, 14 ] }, { "input": " .emitStatement(\"realmObject.%s(%s.copyOrUpdate(realm, %s, update, cache))\",\n .emitStatement(\"realmObject.%s(%s.copyOrUpdate(realm, %sObj, update, cache))\",\n .emitStatement(\"realmObject.%s(%s.copyOrUpdate(realm, %s, true, cache))\",\n .emitStatement(\"realmObject.%s(%s.copyOrUpdate(realm, %sObj, true, cache))\",\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/realm/realm-java/commit/8ddda247e3623b3cd5c392d013682834ff21ccee", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " verify(healthListeners.get(servers.get(0))).onSubchannelState(eq(\n ConnectivityStateInfo.forTransientFailure(Status.UNAVAILABLE)\n ));\n ArgumentCaptor csiCaptor = ArgumentCaptor.forClass(\n ConnectivityStateInfo.class);\n verify(healthListeners.get(servers.get(0)), times(2)).onSubchannelState(csiCaptor.capture());\n List connectivityStateInfos = csiCaptor.getAllValues();\n\n // The subchannel went through two state transitions...\n assertThat(connectivityStateInfos).hasSize(2);\n // ...it first went to the READY state...\n assertThat(connectivityStateInfos.get(0).getState()).isEqualTo(READY);\n\n // ...and then to TRANSIENT_FAILURE as outlier detection ejected it.\n assertThat(connectivityStateInfos.get(1).getState()).isEqualTo(TRANSIENT_FAILURE);\n assertThat(connectivityStateInfos.get(1).getStatus().getCode()).isEqualTo(Code.UNAVAILABLE);\n assertThat(connectivityStateInfos.get(1).getStatus().getDescription()).isEqualTo(\n \"The subchannel has been ejected by outlier detection\");\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grpc/grpc-java/commit/10cb4a3bed4631d4991a2dcbb263c53a6dc607c8", "target_edit_idx": 5, "propagatable_edit_idx": [ 4 ] }, { "input": " @androidx.annotation.RequiresApi(18)\n @RequiresApi(18)\n @androidx.annotation.RequiresApi(21)\n @RequiresApi(21)\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/grpc/grpc-java/commit/9947a257659d5a478cf29f55f32870c776342599", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": "import io.grpc.netty.NettyServerBuilder;\nimport io.grpc.netty.NettyServerBuilder;\nimport io.grpc.netty.NettyServerBuilder;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grpc/grpc-java/commit/33a402d924e851744128d786f319a4964d9da9f5", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 4 ] }, { "input": "@ExperimentalApi(\"https://github.com/grpc/grpc-java/issues/5279\")\n @ExperimentalApi(\"https://github.com/grpc/grpc-java/issues/5113\")\n@ExperimentalApi(\"https://github.com/grpc/grpc-java/issues/5279\")\n@ExperimentalApi(\"https://github.com/grpc/grpc-java/issues/5279\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.21428571428571427, "commit_url": "https://github.com/grpc/grpc-java/commit/3b2cba09c116957a7978c6b6291ef0f3b344d6cb", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " if (disabled || !MetricRecorderHelper.isUtilizationValid(value)) {\n if (disabled || !MetricRecorderHelper.isCpuUtilizationValid(value)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/grpc/grpc-java/commit/b249a5340e221360242fa140467d0ff4c8545237", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " @Nullable private final String grpcServerResourceId;\n @Nullable private final String serverListenerResourceNameTemplate;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grpc/grpc-java/commit/69587c52392ac42adecdba57e18f147b71094141", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " public String getGrpcServerResourceId() {\n return grpcServerResourceId;\n public String getServerListenerResourceNameTemplate() {\n return serverListenerResourceNameTemplate;\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grpc/grpc-java/commit/69587c52392ac42adecdba57e18f147b71094141", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " xdsClientWrapperForServerSds.start(mockXdsClient, \"grpc/server\");\n xdsClientWrapperForServerSds.start(\n mockXdsClient, \"grpc/server?udpa.resource.listening_address=%s\");\n xdsClientWrapperForServerSds.start(mockXdsClient, \"grpc/server\");\n xdsClientWrapperForServerSds.start(\n mockXdsClient, \"grpc/server?udpa.resource.listening_address=%s\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grpc/grpc-java/commit/69587c52392ac42adecdba57e18f147b71094141", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": " assertThat(serverInfoList.get(1).getChannelCredentials()).isEmpty();\n assertThat(serverInfoList.get(1).getChannelCredentials().get(0).getType())\n .isEqualTo(\"insecure\");\n assertThat(serverInfoList.get(0).getChannelCredentials().get(0).getConfig()).isNull();\n assertThat(serverInfo.getChannelCredentials()).isEmpty();\n assertThat(serverInfo.getChannelCredentials()).hasSize(1);\n ChannelCreds creds = Iterables.getOnlyElement(serverInfo.getChannelCredentials());\n assertThat(creds.getType()).isEqualTo(\"insecure\");\n assertThat(creds.getConfig()).isNull();\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grpc/grpc-java/commit/8ac63626c3a9221f142d58317d94835999ee1bae", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " private String serverId;\n private String hostname;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grpc/grpc-java/commit/e5745a514f25bad726176885d80388ee163a6b87", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 5, 6 ] }, { "input": " if (rpcRetryTimer != null) {\n if (rpcRetryTimer != null && rpcRetryTimer.isPending()) {\n if (rpcRetryTimer != null) {\n if (rpcRetryTimer != null && rpcRetryTimer.isPending()) {\n if (rpcRetryTimer != null) {\n if (rpcRetryTimer != null && rpcRetryTimer.isPending()) {\n if (rpcRetryTimer != null) {\n if (rpcRetryTimer != null && rpcRetryTimer.isPending()) {\n if (rpcRetryTimer != null) {\n if (rpcRetryTimer != null && rpcRetryTimer.isPending()) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/grpc/grpc-java/commit/d007af18e6d3fb18bd97f13ffa84e5467fbef879", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4 ] }, { "input": " .onNext(eq(buildDiscoveryRequest(NODE, \"\", \"cluster.googleapis.com\",\n .onNext(eq(buildDiscoveryRequest(NODE, \"\", \"cluster2.googleapis.com\",\n .onNext(eq(buildDiscoveryRequest(NODE, \"\", \"cluster.googleapis.com\",\n .onNext(eq(buildDiscoveryRequest(NODE, \"\", \"cluster2.googleapis.com\",\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/grpc/grpc-java/commit/d007af18e6d3fb18bd97f13ffa84e5467fbef879", "target_edit_idx": 6, "propagatable_edit_idx": [ 8 ] }, { "input": "import io.grpc.examples.helloworld.HelloWorldClient;\nimport io.grpc.examples.helloworld.HelloWorldServer;\n", "class": "clone", "binary_label": 1, "regression_label": 0.2, "commit_url": "https://github.com/grpc/grpc-java/commit/9c796ac23dceb41c87d8d4665ff921a35eb3d31d", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " TCNATIVE, JETTY, CONSCRYPT;\n TCNATIVE, JDK, CONSCRYPT;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grpc/grpc-java/commit/32d50eb3b3ed9d0701ad352dacc7d71e2d6425f1", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": "@ExperimentalApi(\"https://github.com/grpc/grpc-java/issues/28\")\n@ExperimentalApi(\"https://github.com/grpc/grpc-java/issues/4359\")\n @ExperimentalApi(\"https://github.com/grpc/grpc-java/issues/28\")\n @ExperimentalApi(\"https://github.com/grpc/grpc-java/issues/4359\")\n @ExperimentalApi(\"https://github.com/grpc/grpc-java/issues/28\")\n @ExperimentalApi(\"https://github.com/grpc/grpc-java/issues/4359\")\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grpc/grpc-java/commit/ddf77f59ccf2e7501fb0dcefbc30cef7b977b377", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " private static volatile Helper INSTANCE = new NettySocketHelperImpl();\n private static volatile Helper instance = new NettySocketHelperImpl();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/grpc/grpc-java/commit/c50a57cd528e2760075d14f885528b2a8346c6ab", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "import java.util.concurrent.ThreadFactory;\nimport java.util.concurrent.ThreadFactory;\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/grpc/grpc-java/commit/f641e081a09e6ea4edc43eeb73ea56d0a01fc9bb", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " return Executors.newSingleThreadScheduledExecutor(new ThreadFactory() {\n @Override\n public Thread newThread(Runnable r) {\n Thread thread = new Thread(r);\n thread.setDaemon(true);\n return thread;\n }\n });\n return Executors.newSingleThreadScheduledExecutor(new ThreadFactoryBuilder()\n .setDaemon(true)\n .setNameFormat(\"grpc-timer-%d\")\n .build());\n return Executors.newSingleThreadScheduledExecutor(new ThreadFactory() {\n @Override public Thread newThread(Runnable r) {\n Thread thread = new Thread(r);\n thread.setDaemon(true);\n return thread;\n }\n });\n return Executors.newSingleThreadScheduledExecutor(new ThreadFactoryBuilder()\n .setDaemon(true)\n .setNameFormat(\"grpc-shared-destroyer-%d\")\n .build());\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/grpc/grpc-java/commit/f641e081a09e6ea4edc43eeb73ea56d0a01fc9bb", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " /**\n * Adds interceptors that will be called before the channel performs its real work. This is\n * functionally equivalent to using {@link io.grpc.ClientInterceptors#intercept(io.grpc.Channel,\n * List)}, but while still having access to the original {@code ChannelImpl}.\n */\n @Override\n /**\n * Adds interceptors that will be called before the channel performs its real work. This is\n * functionally equivalent to using {@link io.grpc.ClientInterceptors#intercept(io.grpc.Channel,\n * ClientInterceptor...)}, but while still having access to the original {@code ChannelImpl}.\n */\n @Override\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/grpc/grpc-java/commit/6122dafee015675835518d4c3f62ba985954ef03", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " this.streamId = streamId;\n this.stream = stream;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8888888888888888, "commit_url": "https://github.com/grpc/grpc-java/commit/0d78268b830bf4ffb4d75f5fa5615fa016594e69", "target_edit_idx": 5, "propagatable_edit_idx": [ 8, 7 ] }, { "input": "\tpublic void showUpdateReminderWindow() {\n\t\tCompletableFuture.runAsync(() -> updateReminderWindowBuilder.create().showUpdateReminderWindow(), Platform::runLater);\n\tpublic void checkAndShowUpdateReminderWindow() {\n\t\tCompletableFuture.runAsync(() -> updateReminderWindowBuilder.create().checkAndShowUpdateReminderWindow(), Platform::runLater);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/cryptomator/cryptomator/commit/0a07103a4fa79af78388cebde6a96811c00c092b", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "\t\t\tWindow owner = window.getOwner();\n\t\t\tif (owner != null) {\n\t\t\t\twindow.setX(owner.getX() + (owner.getWidth() - window.getWidth()) / 2);\n\t\t\t\twindow.setY(owner.getY() + (owner.getHeight() - window.getHeight()) / 2);\n\t\t\t} else {\n\t\t\t\twindow.centerOnScreen();\n\t\t\t}\n\t\t\tWindow owner = window.getOwner();\n\t\t\tif (owner != null) {\n\t\t\t\twindow.setX(owner.getX() + (owner.getWidth() - window.getWidth()) / 2);\n\t\t\t\twindow.setY(owner.getY() + (owner.getHeight() - window.getHeight()) / 2);\n\t\t\t} else {\n\t\t\t\twindow.centerOnScreen();\n\t\t\t}\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/cryptomator/cryptomator/commit/bc83e23a3453dd959b75b05a870f06edb39f95ec", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "\t\tvalidatorHelper.typeHasAnnotation(Rest.class, element, validation);\n\t\tElement param = injectHelper.getParam(element);\n\t\tvalidatorHelper.typeHasAnnotation(Rest.class, param, validation);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/androidannotations/androidannotations/commit/40b6f7d66e7cfd902cb7ed67ed627bb14c7beb99", "target_edit_idx": 7, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\tvalidatorHelper.isDeclaredType(element, validation);\n\t\tElement param = injectHelper.getParam(element);\n\t\tvalidatorHelper.isDeclaredType(param, validation);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4, "commit_url": "https://github.com/androidannotations/androidannotations/commit/85197fdae8997e13b0e8d19a1f519455bbff98b6", "target_edit_idx": 8, "propagatable_edit_idx": [ 9 ] }, { "input": "\t\tvalidatorHelper.isDeclaredType(element, valid);\n\t\tElement param = injectHelper.getParam(element);\n\t\tvalidatorHelper.isDeclaredType(param, valid);\n\t\tvalidatorHelper.extendsMenu(element, valid);\n\t\tvalidatorHelper.extendsMenu(param, valid);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/androidannotations/androidannotations/commit/6c2765de5cfda8b89261888467d5cea7db83b8d1", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "\t\tonReceiveBody.assign(getContextField(), contextParam);\n\t\tonReceiveBody.assign(getContextField(), onReceiveContext);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/androidannotations/androidannotations/commit/bbed33f3057487137eaf2a6fa11becd85a31fd57", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\t\t\t\t\textraInvok = JExpr.cast(wrapperType, extras.invoke(\"get\").arg(paramName));\n\t\t\t\t\t\textraInvok = JExpr.cast(wrapperType, extras.invoke(\"get\").arg(extraKeyField));\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/androidannotations/androidannotations/commit/da07f1f174411b8541d8546dedf0c3a245fc62bd", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " mSpeedMonitor.end(this.mSoFarBytes);\n mSpeedMonitor.end(this.mSoFarBytes);\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/lingochamp/FileDownloader/commit/6160fa9c9fa21b3940e00f617dc4bfefb1f994ff", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " const hasThisExpr = stack.pop();\n const hasThisOrSuperExpr = stack.pop();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/eslint/eslint/commit/70118a5b11860fce364028d3c515393b6a586aae", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " if (!hasThisExpr && node.parent.type === \"VariableDeclarator\") {\n if (!hasThisOrSuperExpr && node.parent.type === \"VariableDeclarator\") {\n const hasThisExpr = stack.pop();\n const hasThisOrSuperExpr = stack.pop();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/eslint/eslint/commit/70118a5b11860fce364028d3c515393b6a586aae", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " results = ESLint.getErrorResults(results);\n resultsToPrint = ESLint.getErrorResults(resultsToPrint);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/eslint/eslint/commit/43f1685356b9840e09631843ad9ccf0440a498b0", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " if (await printResults(engine, results, options.format, options.outputFile)) {\n if (await printResults(engine, resultsToPrint, options.format, options.outputFile)) {\n\n // Errors and warnings from the original unfiltered results should determine the exit code\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.2857142857142857, "commit_url": "https://github.com/eslint/eslint/commit/43f1685356b9840e09631843ad9ccf0440a498b0", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " \"let abc = 5,\\n\" +\n \" c = 2,\\n\" +\n \" xyz = \\n\" +\n \"let abc2 = 5,\\n\" +\n \" c2 = 2,\\n\" +\n \" xyz2 = \\n\" +\n \"var abc = 5,\\n\" +\n \" c = 2,\\n\" +\n \" xyz = \\n\" +\n \"var abc3 = 5,\\n\" +\n \" c3 = 2,\\n\" +\n \" xyz3 = \\n\" +\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/eslint/eslint/commit/22d7fbf79a1c6f5bcdbb0582dc4cccaa19c0ecac", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " \"const a = new Test({\\n\" +\n \"const c = new Test({\\n\" +\n \"const a = new Test({\\n\" +\n \"const c = new Test({\\n\" +\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/eslint/eslint/commit/22d7fbf79a1c6f5bcdbb0582dc4cccaa19c0ecac", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " \" b = 4;\\n\",\n \" d = 4;\\n\",\n \" b = 4;\\n\",\n \" d = 4;\\n\",\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/eslint/eslint/commit/22d7fbf79a1c6f5bcdbb0582dc4cccaa19c0ecac", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " \"import b from 'bar.js';\"\n \"import c from 'bar.js';\"\n \"import {a, b} from 'bar.js';\",\n \"import {a, d} from 'bar.js';\",\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/eslint/eslint/commit/22d7fbf79a1c6f5bcdbb0582dc4cccaa19c0ecac", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " function getUselessReturns(uselessReturns, prevSegments) {\n function getUselessReturns(uselessReturns, prevSegments, traversedSegments) {\n if (!traversedSegments) {\n traversedSegments = new WeakSet();\n }\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/eslint/eslint/commit/ca1f8410fcb40a9bce286e22e23ee695159d15f7", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " getUselessReturns(\n uselessReturns,\n segment.allPrevSegments.filter(isReturned)\n );\n if (!traversedSegments.has(segment)) {\n traversedSegments.add(segment);\n getUselessReturns(\n uselessReturns,\n segment.allPrevSegments.filter(isReturned),\n traversedSegments\n );\n }\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/eslint/eslint/commit/ca1f8410fcb40a9bce286e22e23ee695159d15f7", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": " if (parent.type === \"MemberExpression\") {\n if (isNodeFirstInLine(parent)) {\n effectiveParent = parent.parent.parent;\n } else {\n effectiveParent = parent.parent;\n }\n }\n nodeIndent = getNodeIndent(effectiveParent).goodChar;\n nodeIndent = getNodeIndent(parent).goodChar;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/eslint/eslint/commit/2012258bf03620457b14d68e48c0e941e9a510d5", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " if (parent.type === \"VariableDeclarator\" && parentVarNode.loc.start.line === effectiveParent.loc.start.line) {\n if (parent.type === \"VariableDeclarator\" && parentVarNode.loc.start.line === parent.loc.start.line) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/eslint/eslint/commit/2012258bf03620457b14d68e48c0e941e9a510d5", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " } else if (!parentVarNode && !isFirstArrayElementOnSameLine(parent) && effectiveParent.type !== \"MemberExpression\" && effectiveParent.type !== \"ExpressionStatement\" && effectiveParent.type !== \"AssignmentExpression\" && effectiveParent.type !== \"Property\") {\n } else if (!parentVarNode && !isFirstArrayElementOnSameLine(parent) && parent.type !== \"MemberExpression\" && parent.type !== \"ExpressionStatement\" && parent.type !== \"AssignmentExpression\" && parent.type !== \"Property\") {\n if (parent.type === \"MemberExpression\") {\n if (isNodeFirstInLine(parent)) {\n effectiveParent = parent.parent.parent;\n } else {\n effectiveParent = parent.parent;\n }\n }\n nodeIndent = getNodeIndent(effectiveParent).goodChar;\n nodeIndent = getNodeIndent(parent).goodChar;\n if (parent.type === \"VariableDeclarator\" && parentVarNode.loc.start.line === effectiveParent.loc.start.line) {\n if (parent.type === \"VariableDeclarator\" && parentVarNode.loc.start.line === parent.loc.start.line) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.7142857142857143, "commit_url": "https://github.com/eslint/eslint/commit/2012258bf03620457b14d68e48c0e941e9a510d5", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " assert.throws(fn, \"tests:\\n\\tConfiguration for rule \\\"mock-rule\\\" is invalid:\\n\\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed \\\"3\\\").\\n\\tValue \\\"third\\\" must be an enum value.\\n\");\n assert.throws(fn, \"tests:\\n\\tConfiguration for rule \\\"mock-rule\\\" is invalid:\\n\\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed '3').\\n\\tValue \\\"third\\\" must be an enum value.\\n\");\n assert.throws(fn, \"tests:\\n\\tConfiguration for rule \\\"mock-rule\\\" is invalid:\\n\\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed \\\"3\\\").\\n\");\n assert.throws(fn, \"tests:\\n\\tConfiguration for rule \\\"mock-rule\\\" is invalid:\\n\\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed '3').\\n\");\n assert.throws(fn, \"tests:\\n\\tConfiguration for rule \\\"mock-rule\\\" is invalid:\\n\\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed \\\"booya\\\").\\n\");\n assert.throws(fn, \"tests:\\n\\tConfiguration for rule \\\"mock-rule\\\" is invalid:\\n\\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed '\\\"booya\\\"').\\n\");\n });\n\n it(\"should throw for invalid-type warning level\", function() {\n var fn = validator.validateRuleOptions.bind(null, \"mock-rule\", [[\"error\"]], \"tests\");\n\n assert.throws(fn, \"tests:\\n\\tConfiguration for rule \\\"mock-rule\\\" is invalid:\\n\\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed '[ \\\"error\\\" ]').\\n\");\n assert.throws(fn, \"tests:\\n\\tConfiguration for rule \\\"non-existent-rule\\\" is invalid:\\n\\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed \\\"3\\\").\\n\");\n assert.throws(fn, \"tests:\\n\\tConfiguration for rule \\\"non-existent-rule\\\" is invalid:\\n\\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed '3').\\n\");\n assert.throws(fn, \"tests:\\n\\tConfiguration for rule \\\"plugin/rule\\\" is invalid:\\n\\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed \\\"3\\\").\\n\");\n assert.throws(fn, \"tests:\\n\\tConfiguration for rule \\\"plugin/rule\\\" is invalid:\\n\\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed '3').\\n\");\n assert.throws(fn, \"filename.js line 1:\\n\\tConfiguration for rule \\\"no-alert\\\" is invalid:\\n\\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed \\\"true\\\").\\n\");\n assert.throws(fn, \"filename.js line 1:\\n\\tConfiguration for rule \\\"no-alert\\\" is invalid:\\n\\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed 'true').\\n\");\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/eslint/eslint/commit/641b3f784098d109f29eb7ca2c94db6c1a641fd7", "target_edit_idx": 3, "propagatable_edit_idx": [ 5, 7, 8, 9, 10 ] }, { "input": " it(\"should throw for incorrect warning level\", function() {\n it(\"should throw for incorrect warning level number\", function() {\n it(\"should throw for incorrect warning level\", function() {\n it(\"should throw for incorrect warning level string\", function() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/eslint/eslint/commit/641b3f784098d109f29eb7ca2c94db6c1a641fd7", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " function checkForBreakBefore(node, msg) {\n var tokens = context.getTokensBefore(node, 2);\n var paren = tokens[1];\n var before = tokens[0];\n if (paren.loc.start.line !== before.loc.end.line) {\n function checkForBreakAfter(node, msg) {\n var paren = context.getTokenAfter(node);\n while (paren.value === \")\") {\n paren = context.getTokenAfter(paren);\n }\n\n if (paren.loc.start.line !== node.loc.end.line) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/eslint/eslint/commit/acdda24120dddfbf98fbc304b8691e27e6743589", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": "\n checkForBreakBefore(node.property, PROPERTY_MESSAGE);\n checkForBreakAfter(node.object, PROPERTY_MESSAGE);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/eslint/eslint/commit/acdda24120dddfbf98fbc304b8691e27e6743589", "target_edit_idx": 2, "propagatable_edit_idx": [ 1 ] }, { "input": "/* global tempdir, mkdir, rm, cp */\n/* global mkdir, rm, cp */\n/* global tempdir, mkdir, rm, cp */\n/* global mkdir, rm, cp */\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/eslint/eslint/commit/f2aa424068b02ffbccf4bac940713357de9e4c28", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " fixtureDir = tempdir() + \"/eslint/fixtures\";\n fixtureDir = os.tmpdir() + \"/eslint/fixtures\";\n fixtureDir = tempdir() + \"/eslint/fixtures\";\n fixtureDir = os.tmpdir() + \"/eslint/fixtures\";\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/eslint/eslint/commit/f2aa424068b02ffbccf4bac940713357de9e4c28", "target_edit_idx": 2, "propagatable_edit_idx": [ 7 ] }, { "input": " * @param {string[]} files An array of file and directory names.\n * @param {string[]} patterns An array of file and directory names.\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/eslint/eslint/commit/e04b48d088c03a315829dedb67cf80cc5ce5e3a8", "target_edit_idx": 4, "propagatable_edit_idx": [ 12, 5 ] }, { "input": " executeOnFiles: function(files) {\n executeOnFiles: function(patterns) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/eslint/eslint/commit/e04b48d088c03a315829dedb67cf80cc5ce5e3a8", "target_edit_idx": 5, "propagatable_edit_idx": [ 12, 4 ] }, { "input": " files.forEach(function(file) {\n patterns.forEach(function(file) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.625, "commit_url": "https://github.com/eslint/eslint/commit/e04b48d088c03a315829dedb67cf80cc5ce5e3a8", "target_edit_idx": 12, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " nodeIndent = getNodeIndent(parent.parent);\n effectiveParent = parent.parent.parent;\n nodeIndent = getNodeIndent(parent);\n effectiveParent = parent.parent;\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/eslint/eslint/commit/cbb099e0969cd9af6eae653c7234ebdb86df3173", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " return parent && (parent.type === \"BlockStatement\" || (parent.body && parent.body.type === \"BlockStatement\")) &&\n\n return parent && (parent.type === \"ClassBody\" || parent.type === \"BlockStatement\" || (parent.body && parent.body.type === \"BlockStatement\")) &&\n return parent && (parent.type === \"BlockStatement\" || (parent.body && parent.body.type === \"BlockStatement\")) &&\n\n return parent && (parent.type === \"ClassBody\" || parent.type === \"BlockStatement\" || (parent.body && parent.body.type === \"BlockStatement\")) &&\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/eslint/eslint/commit/afedcb520373fbbf7d90ded1bb8661ab0055b7ab", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " assert.isTrue(console.log.calledOnce);\n assert.isTrue(console.log.calledWithExactly(\"\"));\n assert.isTrue(console.log.notCalled);\n assert.isTrue(console.log.calledOnce);\n assert.isTrue(console.log.calledWithExactly(\"\"));\n assert.isTrue(console.log.notCalled);\n assert.isTrue(console.log.calledOnce);\n assert.isTrue(console.log.calledWithExactly(\"\"));\n assert.isTrue(console.log.notCalled);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/eslint/eslint/commit/a30d28581f7f062a94d7838fb4344c56a1c14197", "target_edit_idx": 7, "propagatable_edit_idx": [ 8, 9 ] }, { "input": " if (typeof define === 'function' && define.amd) {\n if (typeof module !== 'undefined' && module.exports) {\n module.exports = asyncStorage;\n } else if (typeof define === 'function' && define.amd) {\n if (typeof define === 'function' && define.amd) {\n if (typeof module !== 'undefined' && module.exports) {\n module.exports = localforageSerializer;\n } else if (typeof define === 'function' && define.amd) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.8, "commit_url": "https://github.com/localForage/localForage/commit/b0992942bc88c901ed76a87e096b9aa8272a2ec6", "target_edit_idx": 0, "propagatable_edit_idx": [ 10 ] }, { "input": " } else if (typeof module !== 'undefined' && module.exports) {\n module.exports = asyncStorage;\n } else if (typeof module !== 'undefined' && module.exports) {\n module.exports = localforageSerializer;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localForage/localForage/commit/b0992942bc88c901ed76a87e096b9aa8272a2ec6", "target_edit_idx": 1, "propagatable_edit_idx": [ 11 ] }, { "input": " if (typeof define === 'function' && define.amd) {\n moduleType = ModuleType.DEFINE;\n } else if (typeof module !== 'undefined' && module.exports) {\n if (typeof module !== 'undefined' && module.exports) {\n if (typeof define === 'function' && define.amd) {\n moduleType = ModuleType.DEFINE;\n } else if (typeof module !== 'undefined' && module.exports) {\n if (typeof module !== 'undefined' && module.exports) {\n if (typeof define === 'function' && define.amd) {\n moduleType = ModuleType.DEFINE;\n } else if (typeof module !== 'undefined' && module.exports) {\n if (typeof module !== 'undefined' && module.exports) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/localForage/localForage/commit/b0992942bc88c901ed76a87e096b9aa8272a2ec6", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 6 ] }, { "input": " resolve(dbInfo);\n _this._dbInfo = dbInfo;\n resolve();\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/localForage/localForage/commit/d703f6e5d9ea255204d917eaacd699c3ea5e623b", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " RunPayload(IsWebhook=False, seconds=int(end_time - start_time), success=False, errorMessage=str(exc)),\n RunPayload(\n runIsWebhook=False, runSeconds=int(end_time - start_time), runSuccess=False, runErrorMessage=str(exc)\n ),\n RunPayload(IsWebhook=False, seconds=int(end_time - start_time), success=False, errorMessage=str(exc)),\n RunPayload(\n runIsWebhook=False, runSeconds=int(end_time - start_time), runSuccess=False, runErrorMessage=str(exc)\n ),\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/langflow-ai/langflow/commit/2020a356dd02f3a9a16a96f901ba8a16771101df", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": " let responseError = error as ResponseErrorTypeAPI;\n let responseError = error as ResponseErrorDetailAPI;\n\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/langflow-ai/langflow/commit/9cfbe0f2162643e69ada1960afe3df814af63cac", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " list: [responseError.response.data.detail.error ?? \"Unknown error\"],\n list: [responseError.response.data.detail ?? \"Unknown error\"],\n list: [responseError.response.data.detail.error ?? \"Unknown error\"],\n list: [responseError.response.data.detail ?? \"Unknown error\"],\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/langflow-ai/langflow/commit/9cfbe0f2162643e69ada1960afe3df814af63cac", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": " let responseError = error as ResponseErrorTypeAPI;\n let responseError = error as ResponseErrorDetailAPI;\n\n let responseError = error as ResponseErrorTypeAPI;\n let responseError = error as ResponseErrorDetailAPI;\n\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/langflow-ai/langflow/commit/9cfbe0f2162643e69ada1960afe3df814af63cac", "target_edit_idx": 5, "propagatable_edit_idx": [ 3 ] }, { "input": " addGlobalVariable: (name, id, provider) => {\n const data = { id, provider };\n addGlobalVariable: (name, id, type) => {\n const data = { id, type };\n [key: string]: { id: string; provider: string };\n [key: string]: { id: string; type: string };\n provider: element.provider,\n type: element.type,\n provider?: string;\n}): Promise> {\n type?: string;\n}): Promise> {\n globalVariables: { [name: string]: { id: string; provider?: string } };\n globalVariables: { [name: string]: { id: string; type?: string } };\n [name: string]: { id: string; provider?: string };\n [name: string]: { id: string; type?: string };\n addGlobalVariable: (name: string, id: string, provider?: string) => void;\n addGlobalVariable: (name: string, id: string, type?: string) => void;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/langflow-ai/langflow/commit/8292cb8cfa635cc3943202af33e3bacc5f05a8d2", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 3, 6, 7, 8 ] }, { "input": " {haveChat && (\n {\n event.stopPropagation();\n setSelectedViewField(input);\n }}\n >\n \n \n )}\n {\n event.stopPropagation();\n setSelectedViewField(input);\n }}\n >\n \n \n {haveChat && (\n {\n event.stopPropagation();\n setSelectedViewField(output);\n }}\n >\n \n \n )}\n {\n event.stopPropagation();\n setSelectedViewField(output);\n }}\n >\n \n \n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/langflow-ai/langflow/commit/725566d527cb1d847bc67f75f3604acaac5623db", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " self.vertex.graph.state_manager.update_state(key=name, new_state=value)\n self.vertex.graph.update_state(\n name=name, record=value, caller=self.vertex.id\n )\n self.vertex.graph.state_manager.append_state(key=name, new_state=value)\n self.vertex.graph.append_state(\n key=name, record=value, caller=self.vertex.id\n )\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/langflow-ai/langflow/commit/88b2ab328ff87f1ffde993aa2bbdd0a5f30ae3a8", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " flow: FlowType; // Assuming FlowType is the type for your flow\n flowId: string; // Assuming FlowType is the type for your flow\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/langflow-ai/langflow/commit/5f0cd43ec593de7e8cd551e46082c779b3f76074", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " const buildRes = await postBuildVertex(flow, id);\n const buildRes = await postBuildVertex(flowId, id);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/langflow-ai/langflow/commit/5f0cd43ec593de7e8cd551e46082c779b3f76074", "target_edit_idx": 9, "propagatable_edit_idx": [ 6 ] }, { "input": "var listner = function(event){\nvar listener = function(event){\n channel.port1.onmessage = listner;\n channel.port1.onmessage = listener;\n global.addEventListener('message', listner, false);\n global.addEventListener('message', listener, false);\nvar listner = function(event){\nvar listener = function(event){\n channel.port1.onmessage = listner;\n channel.port1.onmessage = listener;\n global.addEventListener('message', listner, false);\n global.addEventListener('message', listener, false);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zloirock/core-js/commit/23717a486a670eec0be01df37bc90a9f18c0b892", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5 ] }, { "input": " channel.port1.onmessage = listner;\n channel.port1.onmessage = listener;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zloirock/core-js/commit/23717a486a670eec0be01df37bc90a9f18c0b892", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5 ] }, { "input": " global.addEventListener('message', listner, false);\n global.addEventListener('message', listener, false);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zloirock/core-js/commit/23717a486a670eec0be01df37bc90a9f18c0b892", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5 ] }, { "input": "var listner = function(event){\nvar listener = function(event){\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/zloirock/core-js/commit/23717a486a670eec0be01df37bc90a9f18c0b892", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5 ] }, { "input": " , buffer, byteLength, length;\n , buffer, byteLength, length, klass;\n , buffer, byteLength, length;\n , buffer, byteLength, length, klass;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/zloirock/core-js/commit/16bed7671e1acd5dd16bac72b0dcaf8e57634450", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": " } else if(data instanceof $ArrayBuffer){\n } else if(data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER){\n } else if(data instanceof $ArrayBuffer){\n } else if(data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER){\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/zloirock/core-js/commit/16bed7671e1acd5dd16bac72b0dcaf8e57634450", "target_edit_idx": 3, "propagatable_edit_idx": [ 9 ] }, { "input": " if(data instanceof $ArrayBuffer)return $length !== undefined\n ? new Base(data, toOffset($offset, BYTES), $length)\n : $offset !== undefined\n ? new Base(data, toOffset($offset, BYTES))\n : new Base(data);\n if(data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER){\n return $length !== undefined\n ? new Base(data, toOffset($offset, BYTES), $length)\n : $offset !== undefined\n ? new Base(data, toOffset($offset, BYTES))\n : new Base(data);\n }\n if(data instanceof $ArrayBuffer)return $length !== undefined\n ? new Base(data, toOffset($offset, BYTES), $length)\n : $offset !== undefined\n ? new Base(data, toOffset($offset, BYTES))\n : new Base(data);\n if(data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER){\n return $length !== undefined\n ? new Base(data, toOffset($offset, BYTES), $length)\n : $offset !== undefined\n ? new Base(data, toOffset($offset, BYTES))\n : new Base(data);\n }\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/zloirock/core-js/commit/16bed7671e1acd5dd16bac72b0dcaf8e57634450", "target_edit_idx": 5, "propagatable_edit_idx": [ 11 ] }, { "input": " .map((item) => `${item.name}: ${item.value}`)\n .map((item) => `${item.name}: ${encodeURIComponent(item.value)}`)\n .map((item) => `~${item.name}: ${item.value}`)\n .map((item) => `~${item.name}: ${encodeURIComponent(item.value)}`)\n", "class": "clone", "binary_label": 1, "regression_label": 0.14285714285714285, "commit_url": "https://github.com/usebruno/bruno/commit/ddddab811290c82e15a7008c4027792fe7772bf7", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": "const useGraphqlSchema = (endpoint, environment, request, collectionVariables) => {\nconst useGraphqlSchema = (endpoint, environment, request, collection) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/usebruno/bruno/commit/3c0770b7928406b8003ead2abaea3cc1f7f79721", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 5 ] }, { "input": " fetchGqlSchema(endpoint, environment, request, collectionVariables)\n fetchGqlSchema(endpoint, environment, request, collection)\nconst useGraphqlSchema = (endpoint, environment, request, collectionVariables) => {\nconst useGraphqlSchema = (endpoint, environment, request, collection) => {\nexport const fetchGqlSchema = async (endpoint, environment, request, collectionVariables) => {\nexport const fetchGqlSchema = async (endpoint, environment, request, collection) => {\n ipcMain.handle('fetch-gql-schema', async (event, endpoint, environment, request, collectionVariables) => {\n ipcMain.handle('fetch-gql-schema', async (event, endpoint, environment, request, collection) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/usebruno/bruno/commit/3c0770b7928406b8003ead2abaea3cc1f7f79721", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": "export const fetchGqlSchema = async (endpoint, environment, request, collectionVariables) => {\nexport const fetchGqlSchema = async (endpoint, environment, request, collection) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/usebruno/bruno/commit/3c0770b7928406b8003ead2abaea3cc1f7f79721", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2, 5 ] }, { "input": " ipcMain.handle('fetch-gql-schema', async (event, endpoint, environment, request, collectionVariables) => {\n ipcMain.handle('fetch-gql-schema', async (event, endpoint, environment, request, collection) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/usebruno/bruno/commit/3c0770b7928406b8003ead2abaea3cc1f7f79721", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " * of the second function otherwise.\n *\n * `R.both` will work on all other applicatives as well.\n * of the second function otherwise. Note that this is short-circuited,\n * meaning that the second function will not be invoked if the first returns a\n * false-y value.\n * of the second function otherwise.\n *\n * `R.either` will work on all other applicatives as well.\n * of the second function otherwise. Note that this is short-circuited,\n * meaning that the second function will not be invoked if the first returns a\n * truth-y value.\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ramda/ramda/commit/bd5f65544c58924bea99cbe8d1c3e401f56be682", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": "module.exports = lift(and);\nmodule.exports = _curry2(function both(f, g) {\n return function _both() {\n return f.apply(this, arguments) && g.apply(this, arguments);\n };\n});module.exports = lift(or);\nmodule.exports = _curry2(function either(f, g) {\n return function _either() {\n return f.apply(this, arguments) || g.apply(this, arguments);\n };\n});", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/ramda/ramda/commit/bd5f65544c58924bea99cbe8d1c3e401f56be682", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " if (videoBeginTime < 1.0 && seconds < videoBeginTime) {\n if ((videoBeginTime < 1.0 && seconds < videoBeginTime) || Browser.safari) {\n if (videoBeginTime < 1.0 && target < videoBeginTime) {\n if ((videoBeginTime < 1.0 && target < videoBeginTime) || Browser.safari) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/bilibili/flv.js/commit/c7a0bb98d9e86f054aeca4d30d3261fdf8c68501", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": " el.rect = localHintDescriptor.rect;\n el.rect = localHint.rect;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/philc/vimium/commit/8b6221a4db21d12ee90012c999f895e655e2c709", "target_edit_idx": 4, "propagatable_edit_idx": [ 6, 8, 10, 11, 12, 14 ] }, { "input": " showLinkText: localHintDescriptor.showLinkText,\n showLinkText: localHint.showLinkText,\n el.rect = localHintDescriptor.rect;\n el.rect = localHint.rect;\n const localHintDescriptor = linkMatched.localHintDescriptor;\n clickEl = localHintDescriptor.element;\n const localHint = linkMatched.localHint;\n clickEl = localHint.element;\n if (localHintDescriptor.reason === \"Frame.\") {\n if (localHint.reason === \"Frame.\") {\n } else if (localHintDescriptor.reason === \"Scroll.\") {\n } else if (localHint.reason === \"Scroll.\") {\n } else if (localHintDescriptor.reason === \"Open.\") {\n } else if (localHint.reason === \"Open.\") {\n assert.equal(this.element, mode.hintMarkers[0].localHintDescriptor.element);\n assert.equal(this.element, mode.hintMarkers[0].localHint.element);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/philc/vimium/commit/8b6221a4db21d12ee90012c999f895e655e2c709", "target_edit_idx": 6, "propagatable_edit_idx": [ 4, 8, 10, 11, 12, 14 ] }, { "input": " const localHintDescriptor = linkMatched.localHintDescriptor;\n clickEl = localHintDescriptor.element;\n const localHint = linkMatched.localHint;\n clickEl = localHint.element;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/philc/vimium/commit/8b6221a4db21d12ee90012c999f895e655e2c709", "target_edit_idx": 8, "propagatable_edit_idx": [ 4, 6, 10, 11, 12, 14 ] }, { "input": " if (localHintDescriptor.reason === \"Frame.\") {\n if (localHint.reason === \"Frame.\") {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/philc/vimium/commit/8b6221a4db21d12ee90012c999f895e655e2c709", "target_edit_idx": 10, "propagatable_edit_idx": [ 4, 6, 8, 11, 12, 14 ] }, { "input": " async prepareToActivateMode(tabId, originatingFrameId, { modeIndex, isVimiumHelpDialog }) {\n const frameIds = await getFrameIdsForTab(tabId);\n async prepareToActivateLinkHintsMode(tabId, originatingFrameId, { modeIndex, isVimiumHelpDialog }) {\n // If link hints was triggered on the Vimium help dialog (which is shown inside an iframe), we\n // cannot directly retrieve that iFrame's frameId using the getFrameIdsForTab. However, we do\n // have that frameId on the message send by the help dialog page to activate link hints.\n const frameIds = isVimiumHelpDialog ? [originatingFrameId] : await getFrameIdsForTab(tabId);\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/philc/vimium/commit/44a28e9ea8736de4d2aa66e13ac89e5c0117672c", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " HintCoordinator.prepareToActivateMode(sender.tab.id, sender.frameId, request);\n HintCoordinator.prepareToActivateLinkHintsMode(sender.tab.id, sender.frameId, request);\n async prepareToActivateMode(tabId, originatingFrameId, { modeIndex, isVimiumHelpDialog }) {\n const frameIds = await getFrameIdsForTab(tabId);\n async prepareToActivateLinkHintsMode(tabId, originatingFrameId, { modeIndex, isVimiumHelpDialog }) {\n // If link hints was triggered on the Vimium help dialog (which is shown inside an iframe), we\n // cannot directly retrieve that iFrame's frameId using the getFrameIdsForTab. However, we do\n // have that frameId on the message send by the help dialog page to activate link hints.\n const frameIds = isVimiumHelpDialog ? [originatingFrameId] : await getFrameIdsForTab(tabId);\n await HintCoordinator.prepareToActivateMode(0, 0, {\n await HintCoordinator.prepareToActivateLinkHintsMode(0, 0, {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/philc/vimium/commit/44a28e9ea8736de4d2aa66e13ac89e5c0117672c", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "\t_.each(sails.routes, function(target, url) {\n\t_.each(sails.routes, function(target, urlExpr) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/balderdashy/sails/commit/649680d56547d2f459c7e58e3419890ad48d1ba4", "target_edit_idx": 4, "propagatable_edit_idx": [ 6 ] }, { "input": "\t\tbindRouteFn(url, handleRequest(route), route && route.verb);\n\t\t// This is where verb enforcement occurs\n\t\tbindRouteFn(urlExpr, handleRequest(actualTarget), actualTarget && actualTarget.verb);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/balderdashy/sails/commit/649680d56547d2f459c7e58e3419890ad48d1ba4", "target_edit_idx": 6, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\t\treturn _.extend({\n\t\t\t\tverb: verb\n\t\t\t}, target);\n\t\t\treturn routeObj;\n\t\t\treturn _.extend({\n\t\t\t\tverb: verb\n\t\t\t}, routeObj);\n\t\t\treturn routeObj;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/balderdashy/sails/commit/649680d56547d2f459c7e58e3419890ad48d1ba4", "target_edit_idx": 10, "propagatable_edit_idx": [ 11 ] }, { "input": " delegate.success = function(user, profile) {\n delegate.success = function(user, info) {\nactions.success = function(user, profile) {\nactions.success = function(user, info) {\n * passport.authenticate('local', function(err, user, profile) {\n * passport.authenticate('local', function(err, user, info) {\n return callback(null, user, profile);\n return callback(null, user, info);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jaredhanson/passport/commit/0ed083fc26943a09d4ecdfaa254da8fedf9a6cba", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 2, 4 ] }, { "input": " return callback(null, user, profile);\n return callback(null, user, info);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jaredhanson/passport/commit/0ed083fc26943a09d4ecdfaa254da8fedf9a6cba", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " delegate.success = function(user, extra) {\n delegate.success = function(user, profile) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jaredhanson/passport/commit/2f902806221ca9393e8819c57c4ed69c52d5eeaa", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " return callback(null, user, extra);\n return callback(null, user, profile);\n delegate.success = function(user, extra) {\n delegate.success = function(user, profile) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/jaredhanson/passport/commit/2f902806221ca9393e8819c57c4ed69c52d5eeaa", "target_edit_idx": 4, "propagatable_edit_idx": [ 3 ] }, { "input": "const {Map} = Immutable;\nconst {OrderedMap} = Immutable;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebookarchive/draft-js/commit/bb3ff2ef1e65c49dee9cee43499e06e88eb86417", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 4, 6, 7 ] }, { "input": " getAllEntities(): Map {\n getAllEntities(): OrderedMap {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebookarchive/draft-js/commit/bb3ff2ef1e65c49dee9cee43499e06e88eb86417", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 3, 4, 7 ] }, { "input": " loadWithEntities(entities: Map): void {\n loadWithEntities(entities: OrderedMap): void {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/facebookarchive/draft-js/commit/bb3ff2ef1e65c49dee9cee43499e06e88eb86417", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 3, 4, 6 ] }, { "input": " let config = blockConfigs[i];\n const config = blockConfigs[i];\n let config = blockConfigs[i];\n const config = blockConfigs[i];\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/facebookarchive/draft-js/commit/bf1a028aa55504832861c96f4c3eaaf25349aa07", "target_edit_idx": 8, "propagatable_edit_idx": [ 10 ] }, { "input": " winston = require('winston'),\n winston = require('../../winston'),\n winston = require('winston'),\n winston = require('../../winston'),\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/winstonjs/winston/commit/e603131d1642d2ece9f739d0eae5bb877d5e902b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " mixins = [].concat(mixins).concat(globalMixin);\n mixins = [globalMixin].concat(mixins);\n mixins = [].concat(mixins).concat(globalMixin);\n mixins = [globalMixin].concat(mixins);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/Tencent/wepy/commit/899b5f8dec7306211ebb1cfa93643e471679eabb", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " $global.mixin = options;\n if (isPlainObject(options)) {\n $global.mixin = options;\n } else {\n console.error(\n 'Mixin global api supports plain object only\\n\\n' +\n 'e.g: \\n\\n' +\n 'wepy.mixin({\\n' +\n ' created () {\\n' +\n ' console.log(\\'global mixin created\\')\\n' +\n ' }\\n' +\n '})'\n );\n }\n $global.mixin = options;\n if (isPlainObject(options)) {\n $global.mixin = options;\n } else {\n console.error(\n 'Mixin global api supports plain object only\\n\\n' +\n 'e.g: \\n\\n' +\n 'wepy.mixin({\\n' +\n ' created () {\\n' +\n ' console.log(\\'global mixin created\\')\\n' +\n ' }\\n' +\n '})'\n )\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/Tencent/wepy/commit/899b5f8dec7306211ebb1cfa93643e471679eabb", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " const { html } = markdown.render(excerpt)\n const { html } = markdown.render(excerpt, {\n frontmatter: this.frontmatter,\n relPath\n })\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vuejs/vuepress/commit/d560e224136b8754575cc556575c94eda6a51ba2", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " const { html, data: { hoistedTags, links }, dataBlockString } = markdown.render(content)\n const {\n html,\n data: { hoistedTags, links },\n dataBlockString\n } = markdown.render(content, {\n frontmatter: frontmatter.data,\n relPath: path.relative(sourceDir, file)\n })\n const { html } = markdown.render(excerpt)\n const { html } = markdown.render(excerpt, {\n frontmatter: this.frontmatter,\n relPath\n })\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vuejs/vuepress/commit/d560e224136b8754575cc556575c94eda6a51ba2", "target_edit_idx": 4, "propagatable_edit_idx": [ 2 ] }, { "input": " tokens[idx] = toRouterLink(token, link)\n tokens[idx] = toRouterLink(token, link, relPath)\n function toRouterLink (token, link) {\n function toRouterLink (token, link, relPath) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vuejs/vuepress/commit/d560e224136b8754575cc556575c94eda6a51ba2", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": " themeAgreement = this.getThemeAgreementFile(themeAgreement)\n themeAgreement = this.resolveThemeAgreementFile(themeAgreement)\n", "class": "function_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vuejs/vuepress/commit/94dab125caeaeed692ea5eba69e98271f2159965", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " getThemeAgreementFile (filepath) {\n /**\n * Resolve the absolute path of a theme-level agreement file,\n * return `undefined` when it doesn't exists.\n *\n * @param {string} filepath\n * @returns {string|undefined}\n */\n\n resolveThemeAgreementFile (filepath) {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/vuejs/vuepress/commit/94dab125caeaeed692ea5eba69e98271f2159965", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " let themeEntryFile = null // Optional\n let themeEntryFile = {} // Optional\n let parentThemeEntryFile = null // Optional\n let parentThemeEntryFile = {} // Optional\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/vuejs/vuepress/commit/94dab125caeaeed692ea5eba69e98271f2159965", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " template: _options.template,\n resolveableTemplate: _options.resolveableTemplate,\n template: '[child: {{this.bar}}]{{yield}}',\n resolveableTemplate: '[child: {{this.bar}}]{{yield}}',\n template: '[child: {{this.bar}}]{{yield}}',\n resolveableTemplate: '[child: {{this.bar}}]{{yield}}',\n template: 'x-first {{this.foo}}!',\n resolveableTemplate: 'x-first {{this.foo}}!',\n template: 'x-second {{this.bar}}!',\n resolveableTemplate: 'x-second {{this.bar}}!',\n template: 'FOO BAR!',\n resolveableTemplate: 'FOO BAR!',\n template: 'this should not be rendered',\n resolveableTemplate: 'this should not be rendered',\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/c7508cc64fdd416962aa47cb963ed36d033eb8cf", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 6, 7, 8, 9, 10 ] }, { "input": " template: '[child: {{this.bar}}]{{yield}}',\n resolveableTemplate: '[child: {{this.bar}}]{{yield}}',\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/c7508cc64fdd416962aa47cb963ed36d033eb8cf", "target_edit_idx": 4, "propagatable_edit_idx": [ 2, 6, 7, 8, 9, 10 ] }, { "input": " template: 'x-first {{this.foo}}!',\n resolveableTemplate: 'x-first {{this.foo}}!',\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/c7508cc64fdd416962aa47cb963ed36d033eb8cf", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 4, 6, 8, 9, 10 ] }, { "input": " template: 'FOO BAR!',\n resolveableTemplate: 'FOO BAR!',\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/c7508cc64fdd416962aa47cb963ed36d033eb8cf", "target_edit_idx": 9, "propagatable_edit_idx": [ 2, 4, 6, 7, 8, 10 ] }, { "input": " template: 'this should not be rendered',\n resolveableTemplate: 'this should not be rendered',\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/c7508cc64fdd416962aa47cb963ed36d033eb8cf", "target_edit_idx": 10, "propagatable_edit_idx": [ 2, 4, 6, 7, 8, 9 ] }, { "input": " this.compile(template, {\n this.compile(resolveableTemplate, {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/emberjs/ember.js/commit/2ab758fb0060ff25e41783ae537fe6c46c4a01b0", "target_edit_idx": 11, "propagatable_edit_idx": [ 14 ] }, { "input": "class LinkTo extends InternalComponent {\nclass _LinkTo extends InternalComponent {\nlet { prototype } = LinkTo;\nlet { prototype } = _LinkTo;\n value: function onUnsupportedArgument(this: LinkTo, name: string): void {\n value: function onUnsupportedArgument(this: _LinkTo, name: string): void {\n let superModelsGetter = superModelsDescriptor.get as (this: LinkTo) => {}[];\n let superModelsGetter = superModelsDescriptor.get as (this: _LinkTo) => {}[];\n get: function models(this: LinkTo): {}[] {\n get: function models(this: _LinkTo): {}[] {\n let superQueryGetter = superQueryDescriptor.get as (this: LinkTo) => {};\n let superQueryGetter = superQueryDescriptor.get as (this: _LinkTo) => {};\n get: function query(this: LinkTo): {} {\n get: function query(this: _LinkTo): {} {\n value: function onUnsupportedArgument(this: LinkTo, name: string): void {\n value: function onUnsupportedArgument(this: _LinkTo, name: string): void {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/2fd539afa8d6f6c6a8d8adb9778d39d8d15981e6", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7 ] }, { "input": "let { prototype } = LinkTo;\nlet { prototype } = _LinkTo;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/2fd539afa8d6f6c6a8d8adb9778d39d8d15981e6", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7 ] }, { "input": " value: function onUnsupportedArgument(this: LinkTo, name: string): void {\n value: function onUnsupportedArgument(this: _LinkTo, name: string): void {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/2fd539afa8d6f6c6a8d8adb9778d39d8d15981e6", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7 ] }, { "input": " let superModelsGetter = superModelsDescriptor.get as (this: LinkTo) => {}[];\n let superModelsGetter = superModelsDescriptor.get as (this: _LinkTo) => {}[];\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/2fd539afa8d6f6c6a8d8adb9778d39d8d15981e6", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7 ] }, { "input": " get: function models(this: LinkTo): {}[] {\n get: function models(this: _LinkTo): {}[] {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/2fd539afa8d6f6c6a8d8adb9778d39d8d15981e6", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7 ] }, { "input": " get: function query(this: LinkTo): {} {\n get: function query(this: _LinkTo): {} {\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/2fd539afa8d6f6c6a8d8adb9778d39d8d15981e6", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7 ] }, { "input": " 'Using class based template compilation plugins is deprecated, please update to the functional style',\n `Using class based template compilation plugins is deprecated, please update to the functional style: ${Plugin.name}`,\n 'Using class based template compilation plugins is deprecated, please update to the functional style'\n `Using class based template compilation plugins is deprecated, please update to the functional style: ${LegacyCustomTransform.name}`\n 'Using class based template compilation plugins is deprecated, please update to the functional style'\n `Using class based template compilation plugins is deprecated, please update to the functional style: ${LegacyCustomTransform.name}`\n 'Using class based template compilation plugins is deprecated, please update to the functional style'\n 'Using class based template compilation plugins is deprecated, please update to the functional style: LegacyCustomTransform'\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/emberjs/ember.js/commit/e28a201b9ccfb16f93089cea9207fca9b552d98c", "target_edit_idx": 1, "propagatable_edit_idx": [ 8, 9, 10 ] }, { "input": " plugin.syntax = env.syntax;\n instance.syntax = env.syntax;\n return plugin.transform(node);\n return instance.transform(node);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/e28a201b9ccfb16f93089cea9207fca9b552d98c", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " this._setupEventHandler = null;\n this.__dispatcher = null;\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/229e3cb3b8fa634b4d48d3237ca3c36b4d7e5d7c", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " }, 'The use of `{{partial}}` is deprecated, please refactor the \"outer-partial\" partial to a component');\n }, /The use of `{{partial}}` is deprecated, please refactor the \"(inner|outer)-partial\" partial to a component/);\n }, 'The use of `{{partial}}` is deprecated, please refactor the \"outer-partial\" partial to a component');\n }, /The use of `{{partial}}` is deprecated, please refactor the \"(inner|outer)-partial\" partial to a component/);\n }, 'The use of `{{partial}}` is deprecated, please refactor the \"person2-partial\" partial to a component');\n }, /The use of `{{partial}}` is deprecated, please refactor the \"person(2|3|4)-partial\" partial to a component/);\n }, 'The use of `{{partial}}` is deprecated, please refactor the \"odd\" partial to a component');\n }, /The use of `{{partial}}` is deprecated, please refactor the \"(odd|even)\" partial to a component/);\n", "class": "clone", "binary_label": 1, "regression_label": 0.1111111111111111, "commit_url": "https://github.com/emberjs/ember.js/commit/1f92f8d6d238df1820771f37227a3cc9d6dd2acd", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3, 4 ] }, { "input": " if (value === null || value === undefined || isSafeString(value)) {\n if (value === null || value === undefined || isHTMLSafe(value)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/188631ab04d1f7a363c70bdf410068ff9bea3191", "target_edit_idx": 4, "propagatable_edit_idx": [ 7 ] }, { "input": "\n super.set(dom, value, _env);\n super.set(dom, value, env);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/188631ab04d1f7a363c70bdf410068ff9bea3191", "target_edit_idx": 5, "propagatable_edit_idx": [ 8 ] }, { "input": "\n super.update(value, _env);\n super.update(value, env);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/188631ab04d1f7a363c70bdf410068ff9bea3191", "target_edit_idx": 8, "propagatable_edit_idx": [ 5 ] }, { "input": " assertHTMLMatches(html, '

    Hello World

    The files are *inside* the computer?!

    ');\n
    assertHTMLMatches(assert, html, '

    Hello World

    The files are *inside* the computer?!

    ');\n
    ", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/emberjs/ember.js/commit/b5cfcf55875770c4d917854459e753c134332e5f", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5, 7, 8, 9, 10 ] }, { "input": " assertHTMLMatches(html, '');\n assertHTMLMatches(assert, html, '');\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/emberjs/ember.js/commit/b5cfcf55875770c4d917854459e753c134332e5f", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 5, 7, 8, 9, 10 ] }, { "input": " assertHTMLMatches(html, '

    Hello world

    ');\n
    assertHTMLMatches(assert, html, '

    Hello world

    ');\n
    ", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/emberjs/ember.js/commit/b5cfcf55875770c4d917854459e753c134332e5f", "target_edit_idx": 5, "propagatable_edit_idx": [ 1, 3, 7, 8, 9, 10 ] }, { "input": " assertHTMLMatches(html, '

    index

    ');\n
    assertHTMLMatches(assert, html, '

    index

    ');\n
    assertHTMLMatches(html, '

    Hello World

    The files are *inside* the computer?!

    ');\n
    assertHTMLMatches(assert, html, '

    Hello World

    The files are *inside* the computer?!

    ');\n
    assertHTMLMatches(html, '');\n assertHTMLMatches(assert, html, '');\n assertHTMLMatches(html, '

    Hello world

    ');\n
    assertHTMLMatches(assert, html, '

    Hello world

    ');\n
    assertHTMLMatches(html, '

    photos

    ');\n
    assertHTMLMatches(assert, html, '

    photos

    ');\n
    assertHTMLMatches(html, '
    ');\n
    assertHTMLMatches(assert, html, '
    ');\n
    function assertHTMLMatches(actual, expected, message) {\nfunction assertHTMLMatches(assert, actual, expected, message) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/emberjs/ember.js/commit/b5cfcf55875770c4d917854459e753c134332e5f", "target_edit_idx": 7, "propagatable_edit_idx": [ 1, 3, 5, 8, 9, 10 ] }, { "input": " assertHTMLMatches(html, '

    photos

    ');\n
    assertHTMLMatches(assert, html, '

    photos

    ');\n
    ", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/emberjs/ember.js/commit/b5cfcf55875770c4d917854459e753c134332e5f", "target_edit_idx": 8, "propagatable_edit_idx": [ 1, 3, 5, 7, 9, 10 ] }, { "input": " assertHTMLMatches(html, '
    ');\n
    assertHTMLMatches(assert, html, '
    ');\n
    ", "class": "def&ref", "binary_label": 1, "regression_label": 0.8333333333333334, "commit_url": "https://github.com/emberjs/ember.js/commit/b5cfcf55875770c4d917854459e753c134332e5f", "target_edit_idx": 9, "propagatable_edit_idx": [ 1, 3, 5, 7, 8, 10 ] }, { "input": "function assertHTMLMatches(actual, expected, message) {\nfunction assertHTMLMatches(assert, actual, expected, message) {\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/b5cfcf55875770c4d917854459e753c134332e5f", "target_edit_idx": 10, "propagatable_edit_idx": [ 1, 3, 5, 7, 8, 9 ] }, { "input": " let expandedProperties = expandPropertiesToArray(name, properties);\n let dependentKeys = expandPropertiesToArray(name, properties);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/0b751758b364d78eff04646f5e4a67077376740e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3 ] }, { "input": " let lastIdx = expandedProperties.length - 1;\n let lastIdx = dependentKeys.length - 1;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/0b751758b364d78eff04646f5e4a67077376740e", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3 ] }, { "input": " let value = get(this, expandedProperties[i]);\n let value = get(this, dependentKeys[i]);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/0b751758b364d78eff04646f5e4a67077376740e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3 ] }, { "input": " return get(this, expandedProperties[lastIdx]);\n }, { dependentKeys: expandedProperties });\n return get(this, dependentKeys[lastIdx]);\n }, { dependentKeys });\n let expandedProperties = expandPropertiesToArray(name, properties);\n let dependentKeys = expandPropertiesToArray(name, properties);\n let lastIdx = expandedProperties.length - 1;\n let lastIdx = dependentKeys.length - 1;\n let value = get(this, expandedProperties[i]);\n let value = get(this, dependentKeys[i]);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/emberjs/ember.js/commit/0b751758b364d78eff04646f5e4a67077376740e", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2 ] }, { "input": " return computed(`${dependentKey}.[]`, function() {\n let cp = new ComputedProperty(function() {\n return computed(dependentKey, function() {\n let cp = new ComputedProperty(function() {\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/0b751758b364d78eff04646f5e4a67077376740e", "target_edit_idx": 4, "propagatable_edit_idx": [ 8 ] }, { "input": " ['the-bottom', 'willDestroyElement']\n ['the-middle', 'willClearRender'],\n ['the-bottom', 'willDestroyElement'],\n ['the-bottom', 'willClearRender']\n ['the-bottom', 'willDestroyElement']\n ['the-middle', 'willClearRender'],\n ['the-bottom', 'willDestroyElement'],\n ['the-bottom', 'willClearRender']\n", "class": "clone", "binary_label": 1, "regression_label": 0.16666666666666666, "commit_url": "https://github.com/emberjs/ember.js/commit/e3aa15c0e2d584a2da4a51bfc5eb2725bbca9560", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "import Object from 'ember-runtime/system/object';\nimport EmberObject from 'ember-runtime/system/object';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/be8fae5845e6097650c2044eeee1ea4ebbafd2a5", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": "var Helper = Object.extend({\nvar Helper = EmberObject.extend({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/be8fae5845e6097650c2044eeee1ea4ebbafd2a5", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": "const Helper = Object.extend({\nconst Helper = EmberObject.extend({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/be8fae5845e6097650c2044eeee1ea4ebbafd2a5", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": "const Service = Object.extend();\nconst Service = EmberObject.extend();\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/be8fae5845e6097650c2044eeee1ea4ebbafd2a5", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13 ] }, { "input": " let AnObject = Object.extend({\n let AnObject = EmberObject.extend({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/be8fae5845e6097650c2044eeee1ea4ebbafd2a5", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13 ] }, { "input": "import Object from 'ember-runtime/system/object';\nimport EmberObject from 'ember-runtime/system/object';\nimport Object from 'ember-runtime/system/object';\nimport EmberObject from 'ember-runtime/system/object';\nvar Helper = Object.extend({\nvar Helper = EmberObject.extend({\nimport Object from 'ember-runtime/system/object';\nimport EmberObject from 'ember-runtime/system/object';\nconst Helper = Object.extend({\nconst Helper = EmberObject.extend({\nimport Object from 'ember-runtime/system/object';\nimport EmberObject from 'ember-runtime/system/object';\nconst Service = Object.extend();\nconst Service = EmberObject.extend();\nimport Object from 'ember-runtime/system/object';\nimport EmberObject from 'ember-runtime/system/object';\n let AnObject = Object.extend({\n let AnObject = EmberObject.extend({\n let AnObject = Object.extend({\n let AnObject = EmberObject.extend({\n let AnObject = Object.extend({\n let AnObject = EmberObject.extend({\n let AnObject = Object.extend({\n let AnObject = EmberObject.extend({\nimport Object from 'ember-runtime/system/object';\nimport EmberObject from 'ember-runtime/system/object';\n let obj = Object.extend({\n let obj = EmberObject.extend({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/be8fae5845e6097650c2044eeee1ea4ebbafd2a5", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13 ] }, { "input": " let obj = Object.extend({\n let obj = EmberObject.extend({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/be8fae5845e6097650c2044eeee1ea4ebbafd2a5", "target_edit_idx": 13, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ] }, { "input": "ComponentNodeManager.prototype.render = function(_env, visitor) {\nComponentNodeManager.prototype.render = function ComponentNodeManager_render(_env, visitor) {\nViewNodeManager.prototype.rerender = function(env, attrs, visitor) {\nViewNodeManager.prototype.rerender = function ViewNodeManager_rerender(env, attrs, visitor) {\nComponentNodeManager.prototype.rerender = function(_env, attrs, visitor) {\nComponentNodeManager.prototype.rerender = function ComponentNodeManager_rerender(_env, attrs, visitor) {\nViewNodeManager.prototype.render = function(env, attrs, visitor) {\nViewNodeManager.prototype.render = function ViewNodeManager_render(env, attrs, visitor) {\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/cdc496a0fcc9a7cafc01eca7943b59ab59a42081", "target_edit_idx": 1, "propagatable_edit_idx": [ 9, 3, 7 ] }, { "input": " return instrument(component, function() {\n return instrument(component, function ComponentNodeManager_render_instrument() {\n return instrument(component, function() {\n return instrument(component, function ViewNodeManager_render_instrument() {\n return instrument(component, function() {\n return instrument(component, function ViewNodeManager_rerender_instrument() {\n return instrument(component, function() {\n return instrument(component, function ComponentNodeManager_rerender_instrument() {\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/emberjs/ember.js/commit/cdc496a0fcc9a7cafc01eca7943b59ab59a42081", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 10, 4 ] }, { "input": " var helperStream = buildHelperStream(helper, params, hash, { element: morph.element }, env, scope);\n var helperStream = buildHelperStream(helper, params, hash, { element: morph.element }, env, scope, null, path);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/81a44e964a165a427fb76c14ae59b244e9253869", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " var helperStream = buildHelperStream(helper, params, hash, { template: {}, inverse: {} }, env, scope, label);\n var helperStream = buildHelperStream(helper, params, hash, { template: {}, inverse: {} }, env, scope, null, label);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/81a44e964a165a427fb76c14ae59b244e9253869", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " if (isBindAttrModifier(modifier)) {\n if (isBindAttrModifier(modifier, moduleName)) {\nfunction isBindAttrModifier(modifier) {\nfunction isBindAttrModifier(modifier, moduleName) {\n", "class": "def&ref", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/196b290a5a2955f7f1058c12c70ea42154667091", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " expectDeprecation(/You tried to look up an attribute directly on the component/);\n\n expectDeprecation(/You tried to look up an attribute directly on the component/);\n\n expectDeprecation(/You tried to look up an attribute directly on the component/);\n\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/emberjs/ember.js/commit/b01031305fc5f8c2cdb307bcda6d70465d1d8a5b", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 5 ] }, { "input": "Renderer.prototype.renderTopLevelView =\n function Renderer_renderTopLevelView(view, renderNode) {\nRenderer.prototype.prerenderTopLevelView =\n function Renderer_prerenderTopLevelView(view, renderNode) {\n this.renderTopLevelView(view, morph);\n this.prerenderTopLevelView(view, morph);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/emberjs/ember.js/commit/011b876be624f6bebfebef92c026edca0045d6d2", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": " this.renderTopLevelView(view, morph);\n this.prerenderTopLevelView(view, morph);\n", "class": "function_rename", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/emberjs/ember.js/commit/011b876be624f6bebfebef92c026edca0045d6d2", "target_edit_idx": 4, "propagatable_edit_idx": [ 0 ] }, { "input": " render(buffer) { buffer.push('hello'); }\n didInsertElement() {\n hasCalledInsertElement = true;\n }\n render(buffer) { buffer.push('hello'); }\n didInsertElement() {\n hasCalledInsertElement = true;\n }\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/011b876be624f6bebfebef92c026edca0045d6d2", "target_edit_idx": 6, "propagatable_edit_idx": [ 9 ] }, { "input": " equal(view.currentState, view._states.hasElement, \"the view is in the hasElement state\");\n ok(!hasCalledInsertElement, 'didInsertElement is not called');\n equal(view.element.tagName, 'DIV', 'content is rendered');\n equal(view.currentState, view._states.hasElement, \"the view is still in the hasElement state\");\n ok(!hasCalledInsertElement, 'didInsertElement is not called');\n equal(view.element.tagName, 'DIV', 'content is rendered');\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/011b876be624f6bebfebef92c026edca0045d6d2", "target_edit_idx": 7, "propagatable_edit_idx": [ 10 ] }, { "input": " run(function() {\n view.destroy();\n });\n runDestroy(view);\n run(function() {\n view.destroy();\n });\n runDestroy(view);\n", "class": "clone", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/871aa642ccbc54e8e9b61133b9b5d6e5463a7d8a", "target_edit_idx": 4, "propagatable_edit_idx": [ 5 ] }, { "input": " createChildView: function(view, attrs) {\n view = this._super(view, attrs);\n createChildView: function(_view, attrs) {\n var view = this._super(_view, attrs);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/d1207f0f606e799e3c821285c0661475e5ca0b9e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " createChildView: function(view, attrs) {\n if (!view) {\n createChildView: function(maybeViewClass, _attrs) {\n if (!maybeViewClass) {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4444444444444444, "commit_url": "https://github.com/emberjs/ember.js/commit/d1207f0f606e799e3c821285c0661475e5ca0b9e", "target_edit_idx": 2, "propagatable_edit_idx": [ 3, 5, 6, 7 ] }, { "input": " if (view.isView && view._parentView === this && view.container === this.container) {\n return view;\n if (maybeViewClass.isView && maybeViewClass._parentView === this && maybeViewClass.container === this.container) {\n return maybeViewClass;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.4375, "commit_url": "https://github.com/emberjs/ember.js/commit/d1207f0f606e799e3c821285c0661475e5ca0b9e", "target_edit_idx": 3, "propagatable_edit_idx": [ 2, 5, 6, 7 ] }, { "input": " if (CoreView.detect(view)) {\n if (CoreView.detect(maybeViewClass)) {\n createChildView: function(view, attrs) {\n if (!view) {\n createChildView: function(maybeViewClass, _attrs) {\n if (!maybeViewClass) {\n if (view.isView && view._parentView === this && view.container === this.container) {\n return view;\n if (maybeViewClass.isView && maybeViewClass._parentView === this && maybeViewClass.container === this.container) {\n return maybeViewClass;\n view = view.create(attrs);\n view = maybeViewClass.create(attrs);\n } else if ('string' === typeof view) {\n var fullName = 'view:' + view;\n } else if ('string' === typeof maybeViewClass) {\n var fullName = 'view:' + maybeViewClass;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5882352941176471, "commit_url": "https://github.com/emberjs/ember.js/commit/d1207f0f606e799e3c821285c0661475e5ca0b9e", "target_edit_idx": 5, "propagatable_edit_idx": [ 2, 3, 6, 7 ] }, { "input": " view = view.create(attrs);\n view = maybeViewClass.create(attrs);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5294117647058824, "commit_url": "https://github.com/emberjs/ember.js/commit/d1207f0f606e799e3c821285c0661475e5ca0b9e", "target_edit_idx": 6, "propagatable_edit_idx": [ 2, 3, 5, 7 ] }, { "input": " } else if ('string' === typeof view) {\n var fullName = 'view:' + view;\n } else if ('string' === typeof maybeViewClass) {\n var fullName = 'view:' + maybeViewClass;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5294117647058824, "commit_url": "https://github.com/emberjs/ember.js/commit/d1207f0f606e799e3c821285c0661475e5ca0b9e", "target_edit_idx": 7, "propagatable_edit_idx": [ 2, 3, 5, 6 ] }, { "input": " [target, method, onceFlag, suspendedFlag]\n [target, method, flags]\n [target, method, onceFlag, suspendedFlag]\n [target, method, flags]\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/a7d295ad3a3af4b722372b8672334f29432e7441", "target_edit_idx": 1, "propagatable_edit_idx": [ 14 ] }, { "input": " once = actions[i][2],\n suspended = actions[i][3],\n flags = actions[i][2],\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/emberjs/ember.js/commit/a7d295ad3a3af4b722372b8672334f29432e7441", "target_edit_idx": 2, "propagatable_edit_idx": [ 4 ] }, { "input": " container.register('controller', 'post', PostController);\n container.register('controller:post', PostController);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/a4dc9fa8a529c533bea29cb4c03193eac75c0e2e", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8 ] }, { "input": " container.register('controller', 'post', PostController);\n container.register('controller:post', PostController);\n container.register('controller', 'post', PostController);\n container.register('controller:post', PostController);\n container.register('controller', 'post', PostController);\n container.register('controller:post', PostController);\n container.register('controller', 'post', PostController);\n container.register('store', 'main', Store);\n container.register('controller:post', PostController);\n container.register('store:main', Store);\n container.register('controller', 'post', PostController);\n container.register('store', 'main', Store);\n container.register('controller:post', PostController);\n container.register('store:main', Store);\n container.register('controller', 'post', PostController);\n container.register('store', 'main', Store);\n container.register('router', 'main', Router);\n container.register('controller:post', PostController);\n container.register('store:main', Store);\n container.register('router:main', Router);\n container.register('view', 'post', PostView, { singleton: false });\n container.register('view:post', PostView, { singleton: false });\n container.register('template', 'foo', template, { instantiate: false });\n container.register('template:foo', template, { instantiate: false });\n container.register('controller', 'post', PostController);\n container.register('view', 'post', PostView, { singleton: false });\n container.register('template', 'post', template, { instantiate: false });\n container.register('controller:post', PostController);\n container.register('view:post', PostView, { singleton: false });\n container.register('template:post', template, { instantiate: false });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/a4dc9fa8a529c533bea29cb4c03193eac75c0e2e", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 5, 6, 7, 8 ] }, { "input": " container.register('controller', 'post', PostController);\n container.register('store', 'main', Store);\n container.register('controller:post', PostController);\n container.register('store:main', Store);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/a4dc9fa8a529c533bea29cb4c03193eac75c0e2e", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 5, 6, 7, 8 ] }, { "input": " container.register('controller', 'post', PostController);\n container.register('store', 'main', Store);\n container.register('router', 'main', Router);\n container.register('controller:post', PostController);\n container.register('store:main', Store);\n container.register('router:main', Router);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/a4dc9fa8a529c533bea29cb4c03193eac75c0e2e", "target_edit_idx": 5, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 6, 7, 8 ] }, { "input": " container.register('view', 'post', PostView, { singleton: false });\n container.register('view:post', PostView, { singleton: false });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/a4dc9fa8a529c533bea29cb4c03193eac75c0e2e", "target_edit_idx": 6, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 7, 8 ] }, { "input": " container.register('template', 'foo', template, { instantiate: false });\n container.register('template:foo', template, { instantiate: false });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/a4dc9fa8a529c533bea29cb4c03193eac75c0e2e", "target_edit_idx": 7, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 8 ] }, { "input": " container.register('controller', 'post', PostController);\n container.register('view', 'post', PostView, { singleton: false });\n container.register('template', 'post', template, { instantiate: false });\n container.register('controller:post', PostController);\n container.register('view:post', PostView, { singleton: false });\n container.register('template:post', template, { instantiate: false });\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/emberjs/ember.js/commit/a4dc9fa8a529c533bea29cb4c03193eac75c0e2e", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 5, 6, 7 ] }, { "input": " expect(count).toEqual([0]);\n expect(count).toEqual([{a: 0}]);\n expect(count).toEqual([0]);\n expect(count).toEqual([{a: 0}]);\n", "class": "clone", "binary_label": 1, "regression_label": 0.07142857142857142, "commit_url": "https://github.com/chenglou/react-motion/commit/3fc2ce7ecb38df19bcfa3b381bab364134c001c2", "target_edit_idx": 1, "propagatable_edit_idx": [ 4 ] }, { "input": " 0,\n 0, // this new 0 comes from owner update, causing Motion to re-render\n 400,\n 385.8333333333333,\n 364.3078703703703,\n 364.3078703703703,\n 353.79556970164606,\n 350.02047519790233,\n {a: 0},\n {a: 0}, // this new 0 comes from owner update, causing Motion to re-render\n {a: 400},\n {a: 385.8333333333333},\n {a: 364.3078703703703},\n {a: 364.3078703703703},\n {a: 353.79556970164606},\n {a: 350.02047519790233},\n 0,\n 0, // this new 0 comes from owner update, causing StaggeredMotion to re-render\n 400,\n 385.8333333333333,\n 364.3078703703703,\n 364.3078703703703,\n 353.79556970164606,\n 350.02047519790233,\n {a: 0},\n {a: 0}, // this new 0 comes from owner update, causing StaggeredMotion to re-render\n {a: 400},\n {a: 385.8333333333333},\n {a: 364.3078703703703},\n {a: 364.3078703703703},\n {a: 353.79556970164606},\n {a: 350.02047519790233},\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/chenglou/react-motion/commit/3fc2ce7ecb38df19bcfa3b381bab364134c001c2", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "import {default as defaultNow} from 'performance-now';\nimport {default as defaultRaf} from 'raf';\nimport defaultNow from 'performance-now';\nimport defaultRaf from 'raf';\nimport {default as defaultNow} from 'performance-now';\nimport {default as defaultRaf} from 'raf';\nimport defaultNow from 'performance-now';\nimport defaultRaf from 'raf';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/chenglou/react-motion/commit/e7cc374cb31b970804d33d96e5a7eb3b628ada8f", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": "import {default as TestUtils} from 'react-addons-test-utils';\nimport TestUtils from 'react-addons-test-utils';\nimport {default as TestUtils} from 'react-addons-test-utils';\nimport TestUtils from 'react-addons-test-utils';\nimport {default as TestUtils} from 'react-addons-test-utils';\nimport TestUtils from 'react-addons-test-utils';\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/chenglou/react-motion/commit/e7cc374cb31b970804d33d96e5a7eb3b628ada8f", "target_edit_idx": 4, "propagatable_edit_idx": [ 5, 6 ] }, { "input": "var Lexer = module.exports = function Lexer(str) {\nvar Lexer = module.exports = function Lexer(str, filename) {\nvar Lexer = module.exports = function Lexer(str) {\nvar Lexer = module.exports = function Lexer(str, filename) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/pugjs/pug/commit/40d2dea0ac4f798ae4d5a4f224dfe9ba61b036f2", "target_edit_idx": 1, "propagatable_edit_idx": [ 6 ] }, { "input": " console.warn('Warning: missing space before text for line ' + this.lineno + ' of jade file.');\n console.warn('Warning: missing space before text for line ' + this.lineno + \n ' of jade file \"' + this.filename + '\"');\n console.warn('Warning: missing space before text for line ' + this.lineno + ' of jade file.');\n console.warn('Warning: missing space before text for line ' + this.lineno + \n ' of jade file \"' + this.filename + '\"');\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/pugjs/pug/commit/40d2dea0ac4f798ae4d5a4f224dfe9ba61b036f2", "target_edit_idx": 3, "propagatable_edit_idx": [ 8 ] }, { "input": " this.lexer = new Lexer(this.input);\n this.lexer = new Lexer(this.input, filename);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/pugjs/pug/commit/40d2dea0ac4f798ae4d5a4f224dfe9ba61b036f2", "target_edit_idx": 4, "propagatable_edit_idx": [ 9 ] }, { "input": " text.push('\\\\n');\n //text.push('\\\\n');\n text.push('\\\\n');\n //text.push('\\\\n');\n text.push('\\\\n');\n //text.push('\\\\n');\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/pugjs/pug/commit/2adcadbf05ad47600014658a07a650f6b69c0e59", "target_edit_idx": 1, "propagatable_edit_idx": [ 2, 3 ] }, { "input": " const performanceMeasures = [];\n const durations = [];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/necolas/react-native-web/commit/267c5aab7e7efe011f636930913b14c1000ca920", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " const mean = performanceMeasures.reduce((sum, performanceMeasure) => {\n return sum + performanceMeasure.duration;\n const mean = durations.reduce((sum, duration) => {\n return sum + duration;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/necolas/react-native-web/commit/267c5aab7e7efe011f636930913b14c1000ca920", "target_edit_idx": 3, "propagatable_edit_idx": [ 1 ] }, { "input": " invalidatesTags: ['Model'],\n invalidatesTags: [{ type: 'ModelConfig', id: LIST_TAG }],\n invalidatesTags: ['Model'],\n invalidatesTags: [{ type: 'ModelConfig', id: LIST_TAG }],\n invalidatesTags: ['Model'],\n invalidatesTags: [{ type: 'ModelConfig', id: LIST_TAG }],\n invalidatesTags: ['Model'],\n invalidatesTags: [{ type: 'ModelConfig', id: LIST_TAG }],\n invalidatesTags: ['ModelConfig'],\n invalidatesTags: [{ type: 'ModelConfig', id: LIST_TAG }],\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/3f61c51c3a7f3bab659f979d0c330ed8f449013a", "target_edit_idx": 2, "propagatable_edit_idx": [ 9, 4, 5, 6 ] }, { "input": " const tags: ApiTagDescription[] = ['Model'];\n const tags: ApiTagDescription[] = [];\n const tags: ApiTagDescription[] = ['Model'];\n const tags: ApiTagDescription[] = [];\n", "class": "clone", "binary_label": 1, "regression_label": 0.3333333333333333, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/3f61c51c3a7f3bab659f979d0c330ed8f449013a", "target_edit_idx": 7, "propagatable_edit_idx": [ 8 ] }, { "input": "config = get_config()\n\nconfig = get_config()\n\nconfig = get_config()\n\nconfig = get_config()\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/982b513af3d2491dcec0cb9417d1f5fbc4497dc0", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3, 5 ] }, { "input": " node_id: LATENTS_TO_IMAGE,\n node_id: INPAINT_IMAGE_RESIZE_DOWN,\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/cc82ce820aacf3d9eb49491a79ccf54cc71b3b73", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "from typing import Iterator\nfrom typing import ContextManager\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/763debdeebeb80133cb1be79fb57f279d5513292", "target_edit_idx": 0, "propagatable_edit_idx": [ 1 ] }, { "input": " ) -> Iterator[None]:\n ) -> ContextManager[None]:\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/763debdeebeb80133cb1be79fb57f279d5513292", "target_edit_idx": 1, "propagatable_edit_idx": [ 0 ] }, { "input": " source_node_id=source_node_id,\n source_node_id=source_invocation_id,\n source_node_id=source_node_id,\n source_node_id=source_invocation_id,\n source_node_id=source_node_id,\n source_node_id=source_invocation_id,\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/18adcc1dd26804e5b6e73a5b19fcbd25d81bf52e", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 4 ] }, { "input": " node_id: isAutoVae ? MAIN_MODEL_LOADER : isSeamlessEnabled ? SEAMLESS : VAE_LOADER,\n node_id: isSeamlessEnabled ? SEAMLESS : isAutoVae ? MAIN_MODEL_LOADER : VAE_LOADER,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/d7f6af1f070764ece52fc936b72ec625d465a3cc", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": " node_id: isAutoVae ? MAIN_MODEL_LOADER : isSeamlessEnabled ? SEAMLESS : VAE_LOADER,\n node_id: isSeamlessEnabled ? SEAMLESS : isAutoVae ? MAIN_MODEL_LOADER : VAE_LOADER,\n node_id: isAutoVae ? MAIN_MODEL_LOADER : isSeamlessEnabled ? SEAMLESS : VAE_LOADER,\n node_id: isSeamlessEnabled ? SEAMLESS : isAutoVae ? MAIN_MODEL_LOADER : VAE_LOADER,\n node_id: isAutoVae ? MAIN_MODEL_LOADER : isSeamlessEnabled ? SEAMLESS : VAE_LOADER,\n node_id: isSeamlessEnabled ? SEAMLESS : isAutoVae ? MAIN_MODEL_LOADER : VAE_LOADER,\n node_id: isAutoVae ? modelLoaderNodeId : isSeamlessEnabled ? SEAMLESS : VAE_LOADER,\n node_id: isSeamlessEnabled ? SEAMLESS : isAutoVae ? modelLoaderNodeId : VAE_LOADER,\n node_id: isAutoVae ? modelLoaderNodeId : isSeamlessEnabled ? SEAMLESS : VAE_LOADER,\n node_id: isSeamlessEnabled ? SEAMLESS : isAutoVae ? modelLoaderNodeId : VAE_LOADER,\n node_id: isAutoVae ? modelLoaderNodeId : isSeamlessEnabled ? SEAMLESS : VAE_LOADER,\n node_id: isSeamlessEnabled ? SEAMLESS : isAutoVae ? modelLoaderNodeId : VAE_LOADER,\n node_id: isAutoVae ? modelLoaderNodeId : isSeamlessEnabled ? SEAMLESS : VAE_LOADER,\n node_id: isSeamlessEnabled ? SEAMLESS : isAutoVae ? modelLoaderNodeId : VAE_LOADER,\n node_id: isAutoVae ? modelLoaderNodeId : isSeamlessEnabled ? SEAMLESS : VAE_LOADER,\n node_id: isSeamlessEnabled ? SEAMLESS : isAutoVae ? modelLoaderNodeId : VAE_LOADER,\n node_id: isAutoVae ? modelLoaderNodeId : isSeamlessEnabled ? SEAMLESS : VAE_LOADER,\n node_id: isSeamlessEnabled ? SEAMLESS : isAutoVae ? modelLoaderNodeId : VAE_LOADER,\n node_id: isAutoVae ? modelLoaderNodeId : isSeamlessEnabled ? SEAMLESS : VAE_LOADER,\n node_id: isSeamlessEnabled ? SEAMLESS : isAutoVae ? modelLoaderNodeId : VAE_LOADER,\n node_id: isAutoVae ? modelLoaderNodeId : isSeamlessEnabled ? SEAMLESS : VAE_LOADER,\n node_id: isSeamlessEnabled ? SEAMLESS : isAutoVae ? modelLoaderNodeId : VAE_LOADER,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/d7f6af1f070764ece52fc936b72ec625d465a3cc", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }, { "input": " node_id: isAutoVae ? modelLoaderNodeId : isSeamlessEnabled ? SEAMLESS : VAE_LOADER,\n node_id: isSeamlessEnabled ? SEAMLESS : isAutoVae ? modelLoaderNodeId : VAE_LOADER,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.8235294117647058, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/d7f6af1f070764ece52fc936b72ec625d465a3cc", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10 ] }, { "input": " dispatch(widthChanged(width));\n dispatch(widthRecalled(width));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/52b51a608864477f52b0eccce3ee07f65ad56210", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": " dispatch(heightChanged(height));\n dispatch(heightRecalled(height));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/52b51a608864477f52b0eccce3ee07f65ad56210", "target_edit_idx": 3, "propagatable_edit_idx": [ 4, 6 ] }, { "input": " dispatch(heightChanged(height));\n dispatch(widthChanged(width));\n dispatch(heightRecalled(height));\n dispatch(widthRecalled(width));\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/52b51a608864477f52b0eccce3ee07f65ad56210", "target_edit_idx": 4, "propagatable_edit_idx": [ 3, 6 ] }, { "input": "\n if (CANVAS_COHERENCE_DENOISE_LATENTS in graph.nodes) {\n graph.edges.push({\n source: { node_id: controlNetNode.id, field: 'control' },\n destination: {\n node_id: CANVAS_COHERENCE_DENOISE_LATENTS,\n field: 'control',\n },\n });\n }\n\n if (CANVAS_COHERENCE_DENOISE_LATENTS in graph.nodes) {\n graph.edges.push({\n source: { node_id: ipAdapterNode.id, field: 'ip_adapter' },\n destination: {\n node_id: CANVAS_COHERENCE_DENOISE_LATENTS,\n field: 'ip_adapter',\n },\n });\n }\n\n if (CANVAS_COHERENCE_DENOISE_LATENTS in graph.nodes) {\n graph.edges.push({\n source: { node_id: t2iAdapterNode.id, field: 't2i_adapter' },\n destination: {\n node_id: CANVAS_COHERENCE_DENOISE_LATENTS,\n field: 't2i_adapter',\n },\n });\n }\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/0a01d86ab13293a0f2ac4d83d40fb93ebd85c6f8", "target_edit_idx": 1, "propagatable_edit_idx": [ 5, 7 ] }, { "input": " return IPAdapterPlus(ip_adapter_ckpt_path=self.model_path, device=\"cpu\", dtype=torch_dtype)\n return IPAdapterPlus(\n ip_adapter_ckpt_path=os.path.join(self.model_path, \"ip_adapter.bin\"), device=\"cpu\", dtype=torch_dtype\n )\n return IPAdapter(ip_adapter_ckpt_path=self.model_path, device=\"cpu\", dtype=torch_dtype)\n return IPAdapter(\n ip_adapter_ckpt_path=os.path.join(self.model_path, \"ip_adapter.bin\"), device=\"cpu\", dtype=torch_dtype\n )\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/d5160648d07cfbb8b6b0999e326ec600a4931b47", "target_edit_idx": 11, "propagatable_edit_idx": [ 12 ] }, { "input": "@title(\"Main Model Loader\")\n@title(\"Main Model\")\n@title(\"SDXL Main Model Loader\")\n@title(\"SDXL Main Model\")\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/5292eda0e4fb538821aebf5a327487830781812c", "target_edit_idx": 0, "propagatable_edit_idx": [ 5 ] }, { "input": " img2imgStrength: strength,\n img2imgStrength: strength,\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/58d5c61c79d34098810a09f1f4b7126afe183198", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": " const { shouldUseSDXLRefiner, refinerStart, shouldConcatSDXLStylePrompt } =\n state.sdxl;\n const {\n sdxlImg2ImgDenoisingStrength: strength,\n shouldUseSDXLRefiner,\n refinerStart,\n shouldConcatSDXLStylePrompt,\n } = state.sdxl;\n const { shouldUseSDXLRefiner, refinerStart, shouldConcatSDXLStylePrompt } =\n state.sdxl;\n const {\n sdxlImg2ImgDenoisingStrength: strength,\n shouldUseSDXLRefiner,\n refinerStart,\n shouldConcatSDXLStylePrompt,\n } = state.sdxl;\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/58d5c61c79d34098810a09f1f4b7126afe183198", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " e.target.value = String(min);\n e.target.value = String(numberInputMin);\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/397604a0942a3b708d1fffb6ce6d19d450b8271f", "target_edit_idx": 1, "propagatable_edit_idx": [ 3, 5 ] }, { "input": " [isInteger, localInputValue, min, numberInputMax, onChange, step]\n [isInteger, localInputValue, numberInputMin, numberInputMax, onChange, step]\n e.target.value = String(min);\n e.target.value = String(numberInputMin);\n min={min}\n min={numberInputMin}\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/397604a0942a3b708d1fffb6ce6d19d450b8271f", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 5 ] }, { "input": " **clip_field.tokenizer.dict(),\n **clip_field.tokenizer.dict(), context=context,\n **clip_field.tokenizer.dict(),\n **clip_field.tokenizer.dict(), context=context,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/840205496a5f7250df4bbc405091af4a0213cf36", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " **clip_field.text_encoder.dict(),\n **clip_field.text_encoder.dict(), context=context,\n **clip_field.text_encoder.dict(),\n **clip_field.text_encoder.dict(), context=context,\n", "class": "clone", "binary_label": 1, "regression_label": 0.6, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/840205496a5f7250df4bbc405091af4a0213cf36", "target_edit_idx": 2, "propagatable_edit_idx": [ 6 ] }, { "input": " **self.unet.unet.dict()\n **self.unet.unet.dict(), context=context\n **self.unet.unet.dict()\n **self.unet.unet.dict(), context=context,\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/840205496a5f7250df4bbc405091af4a0213cf36", "target_edit_idx": 9, "propagatable_edit_idx": [ 10 ] }, { "input": " const { image_name } = action.payload;\n const { imageName } = action.payload;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/a6c615a98cf70d206dfcacce57230a2169b8fca8", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " action.meta.arg.imageName === image_name\n action.meta.arg.image_name === imageName\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/a6c615a98cf70d206dfcacce57230a2169b8fca8", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1 ] }, { "input": "const { get, post, patch, del } = $client.get();\n\nconst { get, post, put, patch, del } = $client.get();\n\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/8bacee115a4757dfeaf3c8869f589c4a798ddf10", "target_edit_idx": 0, "propagatable_edit_idx": [ 8 ] }, { "input": "import { ImageDTO } from 'services/api/types';\nimport { ImageField } from 'services/api/types';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/e0762313989ce6abd8b70a198b5680696abb286f", "target_edit_idx": 3, "propagatable_edit_idx": [ 6 ] }, { "input": " value: string | number | boolean | ImageDTO | RgbaColor | undefined;\n value: string | number | boolean | ImageField | RgbaColor | undefined;\nimport { ImageDTO } from 'services/api/types';\nimport { ImageField } from 'services/api/types';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/e0762313989ce6abd8b70a198b5680696abb286f", "target_edit_idx": 6, "propagatable_edit_idx": [ 3 ] }, { "input": " cover_image_url = (\n self._services.urls.get_image_url(board_record.cover_image_name, True)\n if board_record.cover_image_name\n else None\n )\n cover_image = self._services.image_records.get_most_recent_image_for_board(board_recordboard_id)\n if (cover_image):\n cover_image_name = cover_image.image_name\n else:\n cover_image_name = None\n cover_image_url = (\n self._services.urls.get_image_url(board_record.cover_image_name, True)\n if board_record.cover_image_name\n else None\n )\n cover_image = self._services.image_records.get_most_recent_image_for_board(board_record.board_id)\n if (cover_image):\n cover_image_name = cover_image.image_name\n else:\n cover_image_name = None\n \n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/95b9c8e505534ff065ed9660c0459b5cba724bd1", "target_edit_idx": 3, "propagatable_edit_idx": [ 5 ] }, { "input": "import { BoardRecord } from 'services/api';\nimport { BoardDTO } from 'services/api';\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/163ef2c941f36778ebcf518c38bda2882cef3f7b", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 2, 3, 4, 7, 8, 9, 10 ] }, { "input": " board: BoardRecord;\n board: BoardDTO;\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/163ef2c941f36778ebcf518c38bda2882cef3f7b", "target_edit_idx": 1, "propagatable_edit_idx": [ 0, 2, 3, 4, 7, 8, 9, 10 ] }, { "input": "import { BoardRecord, ImageDTO } from '../../../services/api';\nimport { isBoardRecord, isImageDTO } from '../../../services/types/guards';\nimport { BoardDTO, ImageDTO } from '../../../services/api';\nimport { isBoardDTO, isImageDTO } from '../../../services/types/guards';\nimport { BoardRecord } from 'services/api';\nimport { BoardDTO } from 'services/api';\n board: BoardRecord;\n board: BoardDTO;\n let items: Array = [];\n let items: Array = [];\n items = Object.values(boards.entities) as BoardRecord[];\n items = Object.values(boards.entities) as BoardDTO[];\nimport { BoardRecord } from 'services/api';\nimport { BoardDTO } from 'services/api';\nexport const boardsAdapter = createEntityAdapter({\nexport const boardsAdapter = createEntityAdapter({\n boardUpserted: (state, action: PayloadAction) => {\n boardUpserted: (state, action: PayloadAction) => {\n boardUpdatedOne: (state, action: PayloadAction>) => {\n boardUpdatedOne: (state, action: PayloadAction>) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/163ef2c941f36778ebcf518c38bda2882cef3f7b", "target_edit_idx": 2, "propagatable_edit_idx": [ 0, 1, 3, 4, 7, 8, 9, 10 ] }, { "input": " let items: Array = [];\n let items: Array = [];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/163ef2c941f36778ebcf518c38bda2882cef3f7b", "target_edit_idx": 3, "propagatable_edit_idx": [ 0, 1, 2, 4, 7, 8, 9, 10 ] }, { "input": " items = Object.values(boards.entities) as BoardRecord[];\n items = Object.values(boards.entities) as BoardDTO[];\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/163ef2c941f36778ebcf518c38bda2882cef3f7b", "target_edit_idx": 4, "propagatable_edit_idx": [ 0, 1, 2, 3, 7, 8, 9, 10 ] }, { "input": " } else if (isBoardRecord(item)) {\n } else if (isBoardDTO(item)) {\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/163ef2c941f36778ebcf518c38bda2882cef3f7b", "target_edit_idx": 5, "propagatable_edit_idx": [ 6 ] }, { "input": "export const boardsAdapter = createEntityAdapter({\nexport const boardsAdapter = createEntityAdapter({\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/163ef2c941f36778ebcf518c38bda2882cef3f7b", "target_edit_idx": 8, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 7, 9, 10 ] }, { "input": " boardUpdatedOne: (state, action: PayloadAction>) => {\n boardUpdatedOne: (state, action: PayloadAction>) => {\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/163ef2c941f36778ebcf518c38bda2882cef3f7b", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1, 2, 3, 4, 7, 8, 9 ] }, { "input": " const { isProcessingControlImage } = controlNet;\n return { isProcessingControlImage };\n const { pendingControlImages } = controlNet;\n return { pendingControlImages };\n const { isProcessingControlImage } = useAppSelector(selector);\n const { pendingControlImages } = useAppSelector(selector);\n", "class": "variable_rename", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/f223ad7776e656490bc89caee0e57851776ce40a", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " !isProcessingControlImage &&\n !pendingControlImages.includes(controlNetId) &&\n {isProcessingControlImage && (\n {pendingControlImages.includes(controlNetId) && (\n", "class": "clone", "binary_label": 1, "regression_label": 0.7, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/f223ad7776e656490bc89caee0e57851776ce40a", "target_edit_idx": 3, "propagatable_edit_idx": [ 4 ] }, { "input": " state.isProcessingControlImage = true;\n state.pendingControlImages.push(controlNetId);\n state.isProcessingControlImage = false;\n state.pendingControlImages = state.pendingControlImages.filter(\n (id) => id !== controlNetId\n );\n state.isProcessingControlImage = true;\n state.pendingControlImages.push(action.payload.controlNetId);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/f223ad7776e656490bc89caee0e57851776ce40a", "target_edit_idx": 8, "propagatable_edit_idx": [ 9, 10 ] }, { "input": "const InvokeAIUI = ({ apiUrl, token, config, children }: Props) => {\nconst InvokeAIUI = ({ apiUrl, token, config, headerComponent }: Props) => {\nconst App = ({ config = DEFAULT_CONFIG, children }: Props) => {\nconst App = ({ config = DEFAULT_CONFIG, headerComponent }: Props) => {\n {children || }\n {headerComponent || }\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/108ce06c623ea6e16d05e652577f4be7b25a5cb7", "target_edit_idx": 8, "propagatable_edit_idx": [ 4, 5 ] }, { "input": "from .cli.completer import get_completer\nfrom .cli.completer import set_autocompleter\ndef get_completer(model_manager: ModelManager) -> Completer:\ndef set_autocompleter(model_manager: ModelManager) -> Completer:\n completer = get_completer(model_manager)\n\n # This initializes the autocompleter and returns it.\n # Currently nothing is done with the returned Completer\n # object, but the object can be used to change autocompletion\n # behavior on the fly, if desired.\n completer = set_autocompleter(model_manager)\n", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/019a9f03292176401c1925a87f58358c5211fb28", "target_edit_idx": 2, "propagatable_edit_idx": [ 1, 3 ] }, { "input": " completer = get_completer(model_manager)\n\n # This initializes the autocompleter and returns it.\n # Currently nothing is done with the returned Completer\n # object, but the object can be used to change autocompletion\n # behavior on the fly, if desired.\n completer = set_autocompleter(model_manager)\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/019a9f03292176401c1925a87f58358c5211fb28", "target_edit_idx": 3, "propagatable_edit_idx": [ 1, 2 ] }, { "input": " document.addEventListener('mousedown', handleClickOutside);\n if (req) {\n document.addEventListener('mousedown', handleClickOutside);\n }\n document.removeEventListener('mousedown', handleClickOutside);\n if (req) {\n document.removeEventListener('mousedown', handleClickOutside);\n }\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/f60d22b29bf92d1a150d34a23860f8b42bc9b685", "target_edit_idx": 1, "propagatable_edit_idx": [ 2 ] }, { "input": " useClickOutsideWatcher(galleryRef, handleCloseGallery);\n useClickOutsideWatcher(galleryRef, handleCloseGallery, !shouldPinGallery);\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/f60d22b29bf92d1a150d34a23860f8b42bc9b685", "target_edit_idx": 6, "propagatable_edit_idx": [ 7 ] }, { "input": " useClickOutsideWatcher(optionsPanelRef, handleCloseOptionsPanel);\n useClickOutsideWatcher(\n optionsPanelRef,\n handleCloseOptionsPanel,\n !shouldPinOptionsPanel\n );\n", "class": "def&ref", "binary_label": 0, "regression_label": 0.0, "commit_url": "https://github.com/invoke-ai/InvokeAI/commit/f60d22b29bf92d1a150d34a23860f8b42bc9b685", "target_edit_idx": 7, "propagatable_edit_idx": [ 6 ] }, { "input": " TreeviewFeature,\n TreeViewFeature,\n TreeviewFeature,\n TreeViewFeature,\n TreeviewFeature,\n TreeViewFeature,\n", "class": "clone", "binary_label": 1, "regression_label": 0.21052631578947367, "commit_url": "https://github.com/payloadcms/payload/commit/c49fd6692231b68ca61b079103a0fd7aa4673be1", "target_edit_idx": 2, "propagatable_edit_idx": [ 8, 5 ] }, { "input": " features: ({ defaultFeatures }) => [...defaultFeatures, TreeviewFeature()],\n features: ({ defaultFeatures }) => [...defaultFeatures, TreeViewFeature()],\n", "class": "function_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/payloadcms/payload/commit/c49fd6692231b68ca61b079103a0fd7aa4673be1", "target_edit_idx": 10, "propagatable_edit_idx": [ 0, 1 ] }, { "input": " version: data,\n version: dataAsDraft,\n", "class": "variable_rename", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/payloadcms/payload/commit/fc16ffefdb354ea023462d784cdac7ab6fcc26d3", "target_edit_idx": 2, "propagatable_edit_idx": [ 3 ] }, { "input": " const [disableFormData, setDisableFormData] = useState(false);\n const [disableFormData, setDisableFormData] = useState(true);\n const [disableFormData, setDisableFormData] = useState(false);\n const [disableFormData, setDisableFormData] = useState(true);\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/payloadcms/payload/commit/5ca5abab422ad1cdb1b449a8298f439c57dda464", "target_edit_idx": 0, "propagatable_edit_idx": [ 2 ] }, { "input": "const Index: React.FC = (props) => {\nconst BlocksField: React.FC = (props) => {\nexport default withCondition(Index);\nexport default withCondition(BlocksField);", "class": "variable_rename", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/payloadcms/payload/commit/5ca5abab422ad1cdb1b449a8298f439c57dda464", "target_edit_idx": 1, "propagatable_edit_idx": [ 3 ] }, { "input": " if (!ctx.config.local) {\n if (!ctx.local) {\n if (!ctx.config.local) {\n if (!ctx.local) {\n if (!this.config.local) {\n if (!this.local) {\n", "class": "clone", "binary_label": 1, "regression_label": 0.6666666666666666, "commit_url": "https://github.com/payloadcms/payload/commit/0c03c2e3af34657e3dde1c3f2b675840147f78ec", "target_edit_idx": 2, "propagatable_edit_idx": [ 4, 5 ] }, { "input": " {rows.length < minRows && (\n {(rows.length < minRows || (required && rows.length === 0)) && (\n {rows.length < minRows && (\n {(rows.length < minRows || (required && rows.length === 0)) && (\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/payloadcms/payload/commit/c5aba71aa772869cb34b9fae69853a2ae950d6e0", "target_edit_idx": 2, "propagatable_edit_idx": [ 8 ] }, { "input": "const { NotFound } = require('../../errors');\nconst { Unauthorized, NotFound } = require('../../errors');\nconst { NotFound } = require('../../errors');\nconst { NotFound, Unauthorized } = require('../../errors');\n", "class": "clone", "binary_label": 1, "regression_label": 0.5, "commit_url": "https://github.com/payloadcms/payload/commit/6e8d168ce25c37d02a9579535d91a30397ea9949", "target_edit_idx": 3, "propagatable_edit_idx": [ 7 ] }, { "input": " if (!result) throw new NotFound();\n if (!result && !hasWherePolicy) throw new NotFound();\n if (!result && hasWherePolicy) throw new Unauthorized();\n if (!result) throw new NotFound();\n if (hasWherePolicy) {\n query = {\n ...query,\n ...policyResults,\n };\n }\n\n let result = await Model.findOne(query);\n\n if (!result && !hasWherePolicy) throw new NotFound();\n if (!result && hasWherePolicy) throw new Unauthorized();\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/payloadcms/payload/commit/6e8d168ce25c37d02a9579535d91a30397ea9949", "target_edit_idx": 6, "propagatable_edit_idx": [ 10 ] }, { "input": "const formatErrorResponse = require('../responses/formatError');\nconst formatErrorResponse = require('../express/responses/formatError');\nconst formatErrorResponse = require('../responses/formatError');\nconst formatErrorResponse = require('../express/responses/formatError');\nconst formatErrorResponse = require('../responses/formatError');\nconst formatErrorResponse = require('../express/responses/formatError');\n", "class": "clone", "binary_label": 1, "regression_label": 0.75, "commit_url": "https://github.com/payloadcms/payload/commit/e05dba1d2f7fe3048a43cce86a50bec6bf1bae83", "target_edit_idx": 0, "propagatable_edit_idx": [ 1, 3 ] }, { "input": "\t\tthis.name = name;\n\t\tthis.name = name ?? uniqueKeyName(this.table, this.columns.map((column) => column.name));\n\t\tthis.name = name;\n\t\tthis.name = name ?? uniqueKeyName(this.table, this.columns.map((column) => column.name));\n", "class": "clone", "binary_label": 1, "regression_label": 0.25, "commit_url": "https://github.com/drizzle-team/drizzle-orm/commit/e9da18b69c56b751c5dcdfcc364d9c9f47584f52", "target_edit_idx": 0, "propagatable_edit_idx": [ 4 ] }, { "input": "\t\treturn this.name ?? uniqueKeyName(this.table, this.columns.map((column) => column.name));\n\t\treturn this.name;\n\t\treturn this.name ?? uniqueKeyName(this.table, this.columns.map((column) => column.name));\n\t\treturn this.name;\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/drizzle-team/drizzle-orm/commit/e9da18b69c56b751c5dcdfcc364d9c9f47584f52", "target_edit_idx": 1, "propagatable_edit_idx": [ 5 ] }, { "input": " const [target, setTarget] = useState(null);\n\n const attachRef = targ => setTarget(targ);\n const target = useRef(null);\n const [target, setTarget] = useState(null);\n\n const attachRef = targ => setTarget(targ);\n const target = useRef(null);\n", "class": "clone", "binary_label": 1, "regression_label": 1.0, "commit_url": "https://github.com/react-bootstrap/react-bootstrap/commit/1877431d85cb974f03906b6a857c5cd2f9e28783", "target_edit_idx": 2, "propagatable_edit_idx": [ 5 ] }, { "input": "